  * { margin: 0; padding: 0; box-sizing: border-box; }

  /* ── Version Banner ── */
  .beta-banner {
    background: #4a3800;
    color: #ffd866;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-bottom: 2px solid #ffd866;
    position: relative;
    z-index: 60;
  }
  .beta-banner a {
    color: #88c0ff;
    text-decoration: underline;
  }
  .stable-banner {
    background: #141a2a;
    color: #8ab4d6;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.9rem;
    border-bottom: 2px solid #2a4060;
    position: relative;
    z-index: 60;
  }
  .stable-banner a {
    color: #6db3f2;
    text-decoration: underline;
  }

  html {
    scrollbar-gutter: stable;
  }
  body {
    background: #0a0a12;
    color: #e0ddd4;
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── Header ── */
  header {
    text-align: center;
    padding: 24px 16px 8px;
    border-bottom: 1px solid #2a2a3a;
  }
  header h1 {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #c8b06a;
    text-transform: uppercase;
  }
  header p { font-size: 0.8rem; color: #666; margin-top: 4px; }

  /* ── Act Selector ── */
  .act-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 16px 12px;
    flex-wrap: wrap;
  }
  .act-card {
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    z-index: 60;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.2s;
  }
  .act-card:hover { transform: translateY(-3px); filter: brightness(1.15); }
  .act-card.selected { border-color: #c8b06a; box-shadow: 0 0 20px rgba(200,176,106,0.25); }
  .act-card img {
    display: block;
    width: 200px;
    height: 141px;
    object-fit: cover;
    border-radius: 10px;
  }
  .act-card .act-text {
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(60,60,70,0.55);
    padding: 8px 0;
  }
  .act-card .act-label {
    font-size: 0.7rem;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0.5px;
    color: #8ab4d6;
  }
  .act-card .act-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-style: italic;
    color: #e8c84a;
    margin-top: -1px;
    font-family: Georgia, 'Times New Roman', serif;
  }
  .act-overgrowth { border-color: #2a5a2a; }
  .act-underdocks { border-color: #1a3a5a; }
  .act-hive { border-color: #5a3a1a; }
  .act-glory { border-color: #3a1a5a; }
  .act-events { border-color: #1a4a5a; }

  /* ── Category Tabs ── */
  .category-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 8px 16px;
    border-bottom: 1px solid #1a1a2a;
    flex-wrap: wrap;
  }
  .cat-tab {
    padding: 10px 28px;
    cursor: pointer;
    z-index: 60;
    position: relative;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
  }
  .cat-tab:hover { color: #aaa; }
  .cat-tab.active { color: #c8b06a; border-bottom-color: #c8b06a; }
  .cat-tab[data-cat="easy"].active { color: #6abf69; border-bottom-color: #6abf69; }
  .cat-tab[data-cat="hard"].active { color: #d4a843; border-bottom-color: #d4a843; }
  .cat-tab[data-cat="elite"].active { color: #d46a6a; border-bottom-color: #d46a6a; }
  .cat-tab[data-cat="boss"].active { color: #b06ad4; border-bottom-color: #b06ad4; }
  .cat-tab[data-cat="ev_overgrowth"].active { color: #6abf69; border-bottom-color: #6abf69; }
  .cat-tab[data-cat="ev_underdocks"].active { color: #6ab0d4; border-bottom-color: #6ab0d4; }
  .cat-tab[data-cat="ev_hive"].active { color: #d4a843; border-bottom-color: #d4a843; }
  .cat-tab[data-cat="ev_glory"].active { color: #b06ad4; border-bottom-color: #b06ad4; }
  .cat-tab[data-cat="ev_shared"].active { color: #999; border-bottom-color: #999; }

  /* ── Enemy Grid ── */
  .enemy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    padding: 24px 32px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .enemy-card {
    background: #14141f;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #1e1e2e;
    transition: all 0.2s;
    position: relative;
    z-index: 60;
  }
  .enemy-card:hover {
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  }
  .enemy-thumb {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    position: relative;
  }
  .enemy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .enemy-thumb img.img-top {
    object-position: top;
  }
  .enemy-thumb.multi-img {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px;
  }
  .enemy-thumb.multi-img img {
    width: auto;
    height: auto;
    border-radius: 4px;
    object-fit: contain;
  }
  .enemy-thumb.multi-img.count-2 img { width: 48%; height: 48%; }
  .enemy-thumb.multi-img.count-3 img { width: 45%; height: 45%; }
  .enemy-thumb.multi-img.count-4 img { width: 46%; height: 46%; }
  .enemy-thumb.multi-img.count-5 img { width: 30%; height: 30%; }
  .enemy-thumb.multi-img.count-6 img { width: 30%; height: 30%; }
  .enemy-card[data-cat="easy"] .enemy-thumb { background: linear-gradient(135deg, #1a2e1a, #0f1a0f); }
  .enemy-card[data-cat="hard"] .enemy-thumb { background: linear-gradient(135deg, #2e2a1a, #1a150d); }
  .enemy-card[data-cat="elite"] .enemy-thumb { background: linear-gradient(135deg, #2e1a1a, #1a0d0d); }
  .enemy-card[data-cat="boss"] .enemy-thumb { background: linear-gradient(135deg, #251a2e, #150d1a); }
  .enemy-card[data-cat="events"] .enemy-thumb { background: linear-gradient(135deg, #1a2a2e, #0d1a1e); }
  .enemy-name {
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .enemy-card .multi-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.65);
    color: #c8b06a;
    padding: 4px 0;
    z-index: 2;
  }

  /* ── Detail Panel ── */
  .detail-overlay {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 520px;
    max-width: 92vw;
    background: #12121c;
    border-left: 1px solid #2a2a3a;
    z-index: 100;
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    animation: slideIn 0.2s ease-out;
    transition: transform 0.2s ease-out;
  }
  .detail-overlay.open { display: block; }
  @media (min-width: 1100px) and (max-width: 2040px) {
    body.panel-open { padding-right: 520px; }
  }
  @media (max-width: 1099px) {
    body.panel-open { overflow: hidden; }
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.15s;
  }
  @keyframes slideIn {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #1e1e2e;
    position: sticky;
    top: 0;
    background: #12121c;
    z-index: 1;
  }
  .detail-header h2 { font-size: 1.5rem; color: #c8b06a; }
  .detail-close {
    background: none;
    border: none;
    color: #666;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
  }
  .detail-close:hover { color: #fff; }
  .detail-body { padding: 20px 24px; }
  .encounter-composition {
    background: linear-gradient(135deg, #1a1a2e 0%, #1e1e30 100%);
    border: 1px solid #2a2a3e;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 12px;
  }
  .composition-label {
    color: #c8b06a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
  }
  .composition-text {
    color: #ccc;
    font-size: 0.9rem;
  }
  .hp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
  }
  .detail-body .hp-bar {
    display: inline-block;
    background: #2a1a1a;
    border: 1px solid #5a2a2a;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 1rem;
    color: #e66;
  }
  .detail-body h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin: 16px 0 8px;
  }
  .detail-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
  }
  .detail-body th {
    text-align: left;
    padding: 8px 12px;
    background: #1a1a28;
    color: #999;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .detail-body td {
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a28;
    vertical-align: top;
  }
  .detail-body tr:hover td { background: #161620; }
  .detail-body .pattern-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #aaa;
    background: #16161f;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #c8b06a;
  }
  /* ── Beta Patch Badge ── */
  .beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #5a4400, #3a2d00);
    color: #ffd866;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid #ffd866;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 8px;
    cursor: default;
    position: relative;
  }
  .beta-badge .beta-tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    border: 1px solid #ffd866;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccc;
    text-transform: none;
    letter-spacing: normal;
    width: max-content;
    max-width: 320px;
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    white-space: normal;
    line-height: 1.5;
  }
  .beta-badge .beta-tooltip strong {
    color: #ffd866;
  }
  .beta-badge:hover .beta-tooltip {
    display: block;
  }

  /* ── Note Tags ── */
  .note-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
  }
  .note-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.3px;
  }
  .note-coop {
    background: #1a2a1a;
    color: #7ac07a;
    border: 1px solid #2a4a2a;
  }
  .note-reqs {
    margin-top: 10px;
  }
  .note-req {
    font-size: 0.82rem;
    color: #8a8a9a;
    padding: 2px 0;
    line-height: 1.6;
  }
  .note-req::first-letter {
    color: #c8b06a;
  }
  .note-infos {
    margin-top: 10px;
  }
  .note-info {
    font-size: 0.85rem;
    color: #7a9ab0;
    padding: 2px 0;
    line-height: 1.6;
  }
  .note-bugs {
    margin-top: 10px;
  }
  .note-bug {
    font-size: 0.85rem;
    color: #c8a84e;
    padding: 2px 0;
    line-height: 1.6;
  }
  .note-sub {
    margin-left: 20px;
    padding: 1px 0;
    color: #7a9ab0;
    font-size: 0.82rem;
  }
  .note-sub::before {
    content: '• ';
  }
  .event-lore {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
    margin: 12px 0;
    padding: 12px 14px;
    background: #14141c;
    border-radius: 6px;
    border-left: 3px solid #555;
  }
  .event-lore p { margin: 0 0 10px 0; }
  .event-lore p:last-child { margin-bottom: 0; }

  /* ── Lore text effects ── */
  /* Jitter: subtle shiver, like text is shaking from cold */
  @keyframes jitter {
    0%, 100% { transform: translate(0, 0); }
    10%  { transform: translate(0.4px, -0.3px); }
    20%  { transform: translate(-0.3px, 0.4px); }
    30%  { transform: translate(0.5px, 0.2px); }
    40%  { transform: translate(-0.2px, -0.5px); }
    50%  { transform: translate(0.3px, 0.4px); }
    60%  { transform: translate(-0.5px, -0.1px); }
    70%  { transform: translate(0.2px, -0.4px); }
    80%  { transform: translate(-0.4px, 0.3px); }
    90%  { transform: translate(0.3px, -0.2px); }
  }
  /* Sine: gentle vertical bob */
  @keyframes sine {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.8px); }
  }
  .lore-jitter { display: inline-block; animation: jitter 0.8s linear infinite; }
  .lore-sine { display: inline-block; animation: sine 1.33s ease-in-out infinite; }
  /* Fade-in: characters fade in sequentially */
  @keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  .lore-fade-in { display: inline-block; opacity: 0; animation: fadeIn 0.5s ease-out forwards; }
  /* Thinky dots: bounce up then pause */
  @keyframes thinkyDots {
    0%, 9%, 100% { transform: translateY(0); }
    4.5% { transform: translateY(-1.5px); }
  }
  .lore-thinky-dots { display: inline-block; animation: thinkyDots 4.4s ease-in-out infinite; }
  /* Rainbow: cycling hue shift */
  @keyframes rainbow {
    0% { color: #ff6666; }
    16% { color: #ffaa33; }
    33% { color: #ffff66; }
    50% { color: #66ff66; }
    66% { color: #6699ff; }
    83% { color: #cc66ff; }
    100% { color: #ff6666; }
  }
  .lore-rainbow { display: inline-block; animation: rainbow 3s linear infinite; }

  /* ── Powers Section ── */
  .starts-with-section {
    margin: 12px 0;
    font-size: 1.05em;
    line-height: 1.6;
  }
  .starts-with-section strong {
    color: #aaa;
    font-size: 0.85em;
    letter-spacing: 0.05em;
  }
  .power-ref {
    position: relative;
    display: inline;
    cursor: default;
  }
  .power-icon-inline {
    height: 22px;
    width: 22px;
    vertical-align: middle;
    margin-right: 3px;
  }
  .starts-with-power {
    color: #f0c040;
    font-weight: bold;
  }
  .power-ref .power-tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccc;
    width: max-content;
    max-width: 300px;
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 4px;
  }
  .power-ref:hover .power-tooltip {
    display: block;
  }

  .powers-section {
    margin-top: 16px;
  }
  .powers-section h3 {
    margin-bottom: 8px;
  }
  .power-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #14141c;
    border-radius: 6px;
    margin-bottom: 6px;
  }
  .power-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .power-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .power-name {
    color: #f0c040;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .power-desc {
    color: #999;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* ── Intent Icons ── */
  .intent-icons {
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
    cursor: default;
  }
  .intent-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    cursor: default;
    user-select: none;
  }
  .intent-icon img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
  }

  .move-ref {
    position: relative;
    display: inline;
    cursor: default;
    color: #e0ddd4;
    font-weight: bold;
  }
  .move-ref .move-tooltip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: normal;
    color: #ccc;
    width: max-content;
    max-width: 300px;
    z-index: 200;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: left;
  }
  .move-ref:hover .move-tooltip {
    display: block;
  }
  .move-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px solid #333;
    color: #e0ddd4;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .move-tooltip-header .intent-icons {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    flex-shrink: 0;
  }
  .move-tooltip-header .intent-icon {
    width: 22px;
    height: 22px;
    line-height: 0;
  }
  .move-tooltip-header .intent-icons img {
    width: 22px;
    height: 22px;
    vertical-align: middle;
  }
  .move-tooltip-effect {
    display: block;
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .move-note {
    color: #f0c040;
    font-size: 0.85em;
  }

  /* ── Enemy separator in detail panel ── */
  .enemy-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #2a2a3a;
  }
  .enemy-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .enemy-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }
  .collapse-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid #444;
    color: #aaa;
    font-size: 1rem;
    font-weight: bold;
    padding: 0;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
  }
  .collapse-toggle:hover {
    background: rgba(255,255,255,0.1);
    border-color: #777;
    color: #fff;
  }
  .enemy-section.collapsed .enemy-section-body {
    display: none;
  }
  .enemy-section-info { flex: 1; }
  .minion-badge {
    width: 28px;
    height: 28px;
    align-self: center;
    flex-shrink: 0;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(200,176,106,0.4));
  }
  .enemy-section-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
    flex-shrink: 0;
  }
  .enemy-section-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #c8b06a;
    margin-bottom: 8px;
  }

  /* ── Backdrop ── */
  .backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 50;
  }
  .backdrop.open { display: block; }
  @media (min-width: 1100px) {
    .backdrop.open { background: transparent; }
  }

  .section-label {
    text-align: center;
    padding: 16px;
    color: #555;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
  }

  /* ── Search Bar ── */
  .search-bar {
    margin-top: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 60;
  }
  .search-clear {
    display: none;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #6a2020;
    border: none;
    border-radius: 6px;
    color: #ff8888;
    font-size: 1.1rem;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
  }
  .search-clear:hover { background: #8b2020; color: #ffaaaa; }
  .search-clear.visible { display: block; }
  .search-bar input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid #2a2a3a;
    background: #14141f;
    color: #e0ddd4;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
  }
  .search-bar input:focus {
    border-color: #c8b06a;
  }
  .search-bar input::placeholder {
    color: #555;
  }
  .search-results {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px 24px;
  }
  .search-results .search-zone-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    padding: 16px 0 8px;
    border-bottom: 1px solid #1a1a2a;
    margin-bottom: 12px;
  }
  .search-results .search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 8px;
  }

  /* ── Category Group Headers ── */
  .cat-group-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    padding: 16px 0 8px;
    border-bottom: 1px solid #1a1a2a;
    margin-bottom: 12px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
  .cat-group-label.cat-easy { color: #6abf69; border-bottom-color: #2a4a2a; }
  .cat-group-label.cat-hard { color: #d4a843; border-bottom-color: #4a3a1a; }
  .cat-group-label.cat-elite { color: #d46a6a; border-bottom-color: #4a1a1a; }
  .cat-group-label.cat-boss { color: #b06ad4; border-bottom-color: #3a1a4a; }
  .cat-group-label.cat-events { color: #6ab0d4; border-bottom-color: #1a3a4a; }

  /* ── Loading state ── */
  .loading {
    text-align: center;
    padding: 60px;
    color: #666;
    font-size: 1rem;
  }

  /* ── Footer / Credits ── */
  .site-footer {
    text-align: center;
    padding: 32px 16px 24px;
    margin-top: 40px;
    border-top: 1px solid #1a1a2a;
    color: #555;
    font-size: 0.75rem;
    line-height: 1.6;
    position: relative;
    z-index: 60;
  }
  .site-footer a {
    color: #8a7a4a;
    text-decoration: none;
  }
  .site-footer a:hover {
    color: #c8b06a;
    text-decoration: underline;
  }
  .site-footer .credit-names {
    color: #777;
  }

  /* ── Feedback link ── */
  .feedback-link {
    text-align: center;
    margin-top: 6px;
    position: relative;
    z-index: 60;
  }
  .feedback-link a {
    color: #666;
    font-size: 0.72rem;
    text-decoration: none;
    transition: color 0.2s;
  }
  .feedback-link a:hover {
    color: #c8b06a;
  }

  @media (max-width: 600px) {
    .act-bar { gap: 6px; padding: 12px 8px 8px; }
    .act-card img { width: 90px; height: 63px; }
    .act-card .act-name { font-size: 0.85rem; }
    .act-card .act-label { font-size: 0.55rem; }
    .act-card .act-text { padding: 4px 0; }
    .enemy-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; padding: 16px; }
    .detail-overlay { width: 100vw; }
    .cat-tab { padding: 8px 14px; font-size: 0.75rem; }
    header h1 { font-size: 1.2rem; }
    .feedback-link a { font-size: 0.65rem; }
    .search-bar { padding-left: 0; padding-right: 0; }
  }
