:root{
    color-scheme: dark;
    --bg: #0b0b0b;
    --bezel: #121212;
    --screen: #101010;
    --panel: #171717;
    --panel-2: #202020;
    --border: #383838;
    --border-soft: #292929;
    --text: #f5f5f5;
    --text-dim: #b3b3b3;
    --text-faint: #777777;
    --accent: #e50914;
    --accent-dim: #970009;
    --accent-2: #f0f0f0;
    --font-display: 'Oswald', Impact, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
  }

  *{ box-sizing: border-box; }
  html{ width: 100%; }
  body{
    width: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  .stage{
    width: 100%;
    max-width: 1200px;
    padding: 18px 14px 0;
    position: relative;
    overflow: hidden;
    background: var(--bg);
  }

  .bottom-space{
    height: max(28px, env(safe-area-inset-bottom, 0px) + 20px);
  }

  /* ambient glow layers, colored by current selection */
  .glow{
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0;
    pointer-events: none;
    transition: background-color .5s ease, opacity .6s ease;
    z-index: 0;
  }
  .glow-a{ top: -60px; left: -60px; background-color: var(--accent); }
  .glow-b{ bottom: 120px; right: -80px; background-color: var(--accent); }
  .glow.on{ opacity: .22; }

  .scanlines{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    opacity: .5;
    mix-blend-mode: overlay;
    background: repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.035) 0px,
      rgba(255,255,255,0.035) 1px,
      transparent 1px,
      transparent 3px
    );
  }

  .content{ position: relative; z-index: 2; }

  /* ---------- header ---------- */
  .header{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px 18px;
  }
  .header-top{
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .dex-lamp{
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ff6970, var(--accent) 55%, #720008 100%);
    box-shadow: 0 0 10px rgba(229,9,20,.65), inset 0 0 3px rgba(0,0,0,.3);
    flex: none;
    animation: lamp-pulse 2.6s ease-in-out infinite;
  }
  @keyframes lamp-pulse{
    0%, 100%{ box-shadow: 0 0 8px rgba(229,9,20,.55), inset 0 0 3px rgba(0,0,0,.3); }
    50%{ box-shadow: 0 0 16px rgba(229,9,20,.82), inset 0 0 3px rgba(0,0,0,.3); }
  }
  .title{
    font-family: var(--font-display);
    font-size: 17px;
    letter-spacing: 1.4px;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
    text-shadow: 0 0 18px rgba(229,9,20,.35);
  }
  .subtitle{
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-dim);
    max-width: 34ch;
  }

  /* ---------- type grid ---------- */
  .grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 2px;
  }

  .type-btn{
    --c: #888;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 4px 9px;
    min-height: 72px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--panel);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 10.5px;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s cubic-bezier(.34,1.56,.64,1), background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease, opacity .25s ease, filter .25s ease;
  }
  .type-btn:active{ transform: scale(.92); }
  .type-btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }

  .type-btn .icon{
    width: 22px;
    height: 22px;
    color: var(--c);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .25s ease;
  }

  .type-btn:disabled{
    color: var(--text-faint);
    border-color: var(--border-soft);
    background: var(--screen);
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .45;
  }
  .type-btn:disabled .icon{ color: var(--text-faint); }
  .type-btn:disabled:active{ transform: none; }

  .type-btn.viable{
    box-shadow: 0 0 11px -1px color-mix(in srgb, var(--c) 45%, transparent);
  }

  .type-btn.selected{
    color: var(--text);
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 20%, var(--panel-2));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--c) 70%, transparent);
    animation: pop-select .38s cubic-bezier(.34,1.56,.64,1);
  }
  .type-btn.selected .icon{ transform: scale(1.12); }
  @keyframes pop-select{
    0%{ transform: scale(1); }
    45%{ transform: scale(1.14); }
    100%{ transform: scale(1); }
  }

  .type-btn .order-tag{
    position: absolute;
    top: -6px;
    right: -6px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--c);
    color: var(--bg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px var(--screen);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
  }
  .type-btn.selected .order-tag{ opacity: 1; transform: scale(1); }

  /* ---------- result panel ---------- */
  .result-panel{
    margin-top: 18px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: linear-gradient(180deg, var(--panel) 0%, var(--screen) 100%);
    overflow: hidden;
  }

  .result-head{
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border-soft);
    min-height: 30px;
    transition: padding .2s ease;
  }
  .result-head.empty{
    padding: 0;
    border-bottom-color: transparent;
    min-height: 0;
  }

  .head-chip{
    --c: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px 5px 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 24%, var(--panel-2));
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    animation: chip-in .3s cubic-bezier(.34,1.56,.64,1) both;
  }
  .head-chip .icon{ width: 15px; height: 15px; color: var(--c); }

  .head-join{
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
  }

  .clear-btn{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--panel-2);
    color: var(--text-dim);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .clear-btn:hover{ color: var(--text); background: var(--accent-dim); box-shadow: 0 0 16px rgba(229,9,20,.24); }
  .clear-btn:active{ transform: scale(.88); }

  .result-caption{
    padding: 10px 14px 0;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .3px;
    color: var(--text-faint);
    text-transform: uppercase;
  }

  .result-body{
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 12px 14px 16px;
    min-height: 54px;
    align-content: flex-start;
  }

  .result-chip{
    --c: #888;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 16%, var(--panel-2));
    border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0;
    transform: translateY(6px) scale(.94);
    animation: chip-in .34s cubic-bezier(.2,.8,.3,1.2) forwards;
    animation-delay: calc(var(--i) * 45ms);
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
  }
  .result-chip .icon{ width: 15px; height: 15px; color: var(--c); }
  .result-chip:hover{ background: color-mix(in srgb, var(--c) 30%, var(--panel-2)); }
  .result-chip:active{ transform: translateY(6px) scale(.9); }

  @keyframes chip-in{
    from{ opacity: 0; transform: translateY(6px) scale(.94); }
    to{ opacity: 1; transform: translateY(0) scale(1); }
  }

  .result-body.empty{
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
    font-size: 13px;
    animation: shake-once .5s ease;
  }
  .result-body.empty .icon{ width: 18px; height: 18px; flex: none; }
  @keyframes shake-once{
    0%, 100%{ transform: translateX(0); }
    20%{ transform: translateX(-4px); }
    40%{ transform: translateX(4px); }
    60%{ transform: translateX(-2px); }
    80%{ transform: translateX(2px); }
  }

  .hint{
    margin-top: 12px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-faint);
    letter-spacing: .2px;
  }
  .hint b{ color: var(--text-dim); }

  @media (prefers-reduced-motion: reduce){
    *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  }

/* Acabado Akatsuki: acento carmesí y estados de interacción sobrios. */
.title-mark{ color: var(--accent); }
.type-btn:hover:not(:disabled){ border-color: color-mix(in srgb, var(--accent) 65%, var(--border)); transform: translateY(-2px); }
.type-btn.selected{ border-color: var(--accent); background: color-mix(in srgb, var(--accent) 19%, var(--panel)); box-shadow: 0 0 0 1px rgba(229,9,20,.36), 0 0 18px rgba(229,9,20,.18); }
.head-chip{ background: color-mix(in srgb, var(--accent) 16%, var(--panel-2)); border-color: color-mix(in srgb, var(--accent) 48%, transparent); }
.result-chip:hover{ border-color: var(--accent); box-shadow: 0 0 12px rgba(229,9,20,.18); }


/* Cabecera e identidad visual */
.logo-container{ display:flex; justify-content:center; margin:0 0 14px; }
.site-logo{ display:block; width:min(220px, 62vw); height:auto; object-fit:contain; }
.header{ padding-top:4px; }
.header-top{ justify-content:center; }
.title{ text-align:center; font-size:clamp(16px, 4.4vw, 20px); }
.subtitle{ margin:0 auto; text-align:center; white-space:normal; }
.stage{ max-width:1200px; }

/* Navegación entre herramientas */
.page-panel[hidden]{ display:none !important; }
.stage[data-view="hunts"]{ max-width:1200px; }
.stage[data-view="calculator"]{ max-width:1200px; }
.stage[data-view="guild-bosses"]{ max-width:1200px; }
.section-tabs{ display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; padding:6px; margin:0 0 22px; border:1px solid var(--border); border-radius:14px; background:var(--panel); }
.section-tab{ min-width:0; min-height:48px; padding:8px 9px; border:1px solid transparent; border-radius:10px; background:transparent; color:var(--text-dim); font:700 12px/1.25 var(--font-body); text-align:center; white-space:normal; cursor:pointer; transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease; }
.section-tab:hover{ color:var(--text); border-color:var(--border); }
.section-tab.active{ color:var(--text); background:color-mix(in srgb,var(--accent) 18%,var(--panel-2)); border-color:color-mix(in srgb,var(--accent) 60%,transparent); box-shadow:0 0 16px rgba(229,9,20,.16); }
.section-menu{position:relative;min-width:0;z-index:5}.section-menu>summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:5px}.section-menu>summary::-webkit-details-marker{display:none}.section-menu-list{position:absolute;top:calc(100% + 6px);left:0;right:0;display:grid;gap:4px;padding:6px;border:1px solid var(--border);border-radius:12px;background:#141414;box-shadow:0 12px 30px rgba(0,0,0,.45)}.section-subtab{min-height:40px;text-align:left}.section-menu:not([open]) .section-menu-list{display:none}
.gym-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.gym-card{min-width:0;padding:17px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(150deg,var(--panel),#111);box-shadow:0 8px 28px rgba(0,0,0,.16)}.gym-card>header{display:flex;align-items:center;gap:12px;padding-bottom:11px;margin-bottom:11px;border-bottom:1px solid var(--border)}.gym-card h2{margin:0;color:var(--text);font:700 18px var(--font-display)}.gym-city{display:block;margin-top:3px;color:var(--text-faint);font-size:10px}.gym-leader-sprite{display:block;width:54px;height:64px;flex:none;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 5px rgba(0,0,0,.55))}.gym-row{margin:8px 0;color:var(--text-dim);font-size:11px;line-height:1.55}.gym-row strong{color:var(--text)}.gym-task-list,.gym-team{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.gym-pokemon{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--border-soft);border-radius:8px;background:#0c0c0c;color:var(--text-dim);font-size:10px}.gym-pokemon img{width:30px;height:30px;object-fit:contain;image-rendering:pixelated}.gym-team-title{margin-top:12px!important;padding-top:10px;border-top:1px solid var(--border)}.gym-badge-row{display:flex;align-items:center;gap:7px}.gym-badge-icon{width:28px;height:28px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45))}
.gym-map-trigger{display:flex;width:100%;flex-direction:column;align-items:stretch;gap:0;overflow:hidden;margin:9px 0 12px;padding:0;border:1px solid var(--border);border-radius:10px;background:#090b0e;color:var(--text-dim);cursor:zoom-in;text-align:left;transition:border-color .2s ease,transform .2s ease}.gym-map-trigger:hover{border-color:var(--accent);transform:translateY(-1px)}.gym-map-trigger img{display:block;width:100%;height:138px;object-fit:contain;background:#080a0c}.gym-map-trigger span{padding:6px 9px;border-top:1px solid var(--border);font-size:10px;font-weight:700;letter-spacing:.04em}.gym-map-dialog{position:fixed;max-width:min(94vw,1200px);max-height:94vh;overflow:auto;padding:18px;border:1px solid var(--border);border-radius:16px;background:#101114;color:var(--text);box-shadow:0 24px 80px rgba(0,0,0,.72)}.gym-map-dialog::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(3px)}.gym-map-dialog h2{margin:0 44px 12px 0;font:700 20px var(--font-display)}.gym-map-dialog>img{display:block;max-width:90vw;max-height:78vh;width:auto;height:auto;margin:auto;object-fit:contain}.gym-map-close{position:absolute;top:10px;right:10px;width:34px;height:34px;border:1px solid var(--border);border-radius:50%;background:#1a1a1d;color:var(--text);font-size:23px;line-height:1;cursor:pointer}.gym-map-close:hover{border-color:var(--accent);color:#fff}
.page-header{ display:block; padding:0 2px 16px; }
.page-header .title{ text-align:left; }
.page-header .subtitle{ margin:5px 0 0; text-align:left; }

/* Búsqueda y tabla de localizaciones */
.hunt-toolbar{ display:flex; align-items:end; gap:10px; flex-wrap:wrap; padding:12px; margin-bottom:12px; border:1px solid var(--border); border-radius:14px; background:var(--panel); }
.hunt-search{ display:flex; align-items:center; gap:9px; flex:1 1 250px; min-height:42px; padding:0 12px; border:1px solid var(--border); border-radius:9px; background:var(--screen); color:var(--text-dim); }
.hunt-search span{ color:var(--accent); font-size:22px; line-height:1; }
.hunt-search input{ width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font:500 13px var(--font-body); }
.hunt-search input::placeholder{ color:var(--text-faint); }
.filter-label{ display:flex; flex-direction:column; gap:5px; color:var(--text-dim); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.filter-select{ min-width:145px; min-height:42px; padding:0 30px 0 10px; border:1px solid var(--border); border-radius:9px; background:var(--screen); color:var(--text); font:500 12px var(--font-body); }
.hunt-count{ margin:0 2px 12px auto; color:var(--text-dim); font:11px var(--font-mono); white-space:nowrap; }
.hunt-table-wrap{ overflow:auto; border:1px solid var(--border); border-radius:14px; background:linear-gradient(180deg,var(--panel),var(--screen)); }
.hunt-table{ width:100%; min-width:760px; border-collapse:collapse; text-align:left; }
.hunt-table th{ position:sticky; top:0; z-index:1; padding:12px 14px; border-bottom:1px solid var(--border); background:#171717; color:var(--text-dim); font-size:10px; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }
.hunt-table td{ padding:9px 14px; border-bottom:1px solid var(--border-soft); color:var(--text); font-size:12px; vertical-align:middle; }
.hunt-table tbody tr:last-child td{ border-bottom:0; }
.hunt-table tbody tr:hover{ background:rgba(229,9,20,.055); }
.pokemon-cell{ display:flex; align-items:center; gap:9px; min-width:155px; }
.pokemon-sprite{ width:38px; height:38px; object-fit:contain; border-radius:9px; background:#101010; image-rendering:pixelated; }
.pokemon-name{ display:block; font-weight:700; }
.pokemon-number{ display:block; margin-top:2px; color:var(--text-faint); font:9px var(--font-mono); }
.tier-badge{ display:inline-flex; min-width:38px; justify-content:center; padding:4px 7px; border:1px solid rgba(255,255,255,.12); border-radius:6px; background:var(--panel-2); color:#f2f2f2; font:700 10px var(--font-mono); }
.tier-t1,.tier-mythic{ border-color:rgba(229,9,20,.6); background:rgba(201,0,0,.24); }
.tier-t2,.tier-legendary{ border-color:rgba(230,125,54,.45); background:rgba(142,69,23,.24); }
.map-links{ display:flex; flex-wrap:wrap; gap:6px; }
.map-link{ display:block; width:72px; height:42px; overflow:hidden; border:1px solid var(--border); border-radius:7px; background:#090909; transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease; }
.map-link:hover{ transform:translateY(-2px); border-color:var(--accent); box-shadow:0 0 12px rgba(229,9,20,.22); }
.map-link img{ display:block; width:100%; height:100%; object-fit:cover; }
.location-note{ display:inline-block; max-width:170px; color:var(--text-dim); font-size:11px; line-height:1.4; }
.unavailable{ color:#666; }
.empty-results{ padding:24px; margin:0; color:var(--text-dim); text-align:center; }
.data-credit{ margin:12px 2px 0; color:var(--text-faint); font-size:10px; line-height:1.6; }
.data-credit a{ color:var(--text-dim); text-decoration-color:var(--accent-dim); text-underline-offset:3px; }
.data-credit a:hover{ color:var(--text); }
@media(max-width:620px){
  .section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .section-tab{ padding:9px 7px; font-size:11px; }
  .hunt-toolbar{ align-items:stretch; }
  .filter-label{ flex:1 1 130px; }
  .filter-select{ width:100%; min-width:0; }
  .hunt-count{ margin:0 0 2px auto; }
  .page-header .title{ font-size:18px; }
}
@media(min-width:621px) and (max-width:980px){.section-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Guild Bosses: equipos sugeridos por debilidad elemental */
.guild-boss-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.guild-boss-card{min-width:0;padding:18px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(150deg,var(--panel),#111);box-shadow:0 8px 28px rgba(0,0,0,.16)}
.guild-boss-card header{display:flex;align-items:center;gap:12px;padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid var(--border)}
.guild-boss-card header img{display:block;flex:none;width:68px;height:68px;object-fit:contain;image-rendering:pixelated}
.guild-boss-card h2{margin:0;color:var(--text);font:700 19px var(--font-display);letter-spacing:.03em}
.guild-boss-card p{margin:8px 0 0;color:var(--text-dim);font-size:12px;line-height:1.65}
.guild-boss-card p strong{color:var(--text)}
.guild-boss-card p:first-of-type{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.boss-weakness-types{display:flex;flex-wrap:wrap;gap:7px}
.boss-type-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid color-mix(in srgb,var(--type-color) 48%,var(--border));border-radius:999px;background:color-mix(in srgb,var(--type-color) 12%,var(--screen));color:var(--text);font-size:11px;font-weight:700;line-height:1.2}
.boss-type-chip .icon{width:16px;height:16px;flex:none;color:var(--type-color)}
.site-footer{max-width:1200px;margin:0 auto;padding:18px 16px 24px;border-top:1px solid var(--border);color:var(--text-faint);font-size:11px;line-height:1.6;text-align:center}
.site-footer strong{display:block;margin-bottom:3px;color:var(--text-dim);font-size:12px;letter-spacing:.06em}
.site-footer p{margin:0}
@media(max-width:680px){.guild-boss-grid{grid-template-columns:1fr}.guild-boss-card{padding:15px}}
@media(max-width:680px){.gym-grid{grid-template-columns:1fr}.section-menu-list{min-width:165px}}

.gym-material-sprite>.gym-material-viewport{position:relative;right:auto;bottom:auto;display:block;width:32px;height:32px;flex:none;overflow:hidden;color:inherit;font-size:initial;font-weight:400;line-height:normal;text-shadow:none}.gym-material-viewport img{display:block;width:32px;height:32px;object-fit:none;image-rendering:pixelated}.gym-material-sprite>.gym-material-sprite-quantity{position:absolute;right:-2px;bottom:-1px;color:#fff;font-size:11px;font-weight:800;line-height:1;text-shadow:0 1px 3px #000,1px 0 2px #000,-1px 0 2px #000}.gym-material-viewport--animated img{width:256px;height:32px;max-width:none;object-fit:none;animation:gym-stone-frames 1.2s steps(8,end) infinite}@keyframes gym-stone-frames{to{transform:translateX(-256px)}}

.gym-materials{margin-top:28px}.gym-materials>h2{margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border);color:var(--text);font:700 21px var(--font-display)}.gym-materials-list{display:grid;gap:0}.gym-talent{overflow:hidden;border:1px solid var(--border);background:#111317}.gym-talent+.gym-talent{border-top:0}.gym-talent:first-child{border-radius:10px 10px 0 0}.gym-talent:last-child{border-radius:0 0 10px 10px}.gym-talent>summary{display:flex;min-height:40px;align-items:center;gap:10px;padding:0 14px;cursor:pointer;color:var(--text-dim);font-size:13px;font-weight:700;list-style:none}.gym-talent>summary::-webkit-details-marker{display:none}.gym-talent>summary>img{width:16px;height:16px;object-fit:contain;image-rendering:pixelated}.gym-talent[open]>summary{background:#202229;color:var(--text)}.gym-talent-chevron{margin-left:auto;color:var(--text-faint);font-size:17px;font-weight:400;transition:transform .16s ease}.gym-talent[open] .gym-talent-chevron{transform:rotate(180deg)}.gym-talent-items{display:flex;flex-wrap:wrap;gap:8px;padding:12px 16px 14px;background:#0b0d10}.gym-material{display:flex;width:88px;min-height:78px;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;padding:0 3px;color:#d5d7dc;text-align:center;text-decoration:none;font-size:11px;line-height:1.25}.gym-material-sprite{position:relative;display:grid;width:40px;height:40px;place-items:center;border:1px solid #25282e;border-radius:8px;background:#0c0e11}.gym-material-sprite img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.gym-material-sprite>span{position:absolute;right:-2px;bottom:-1px;color:#fff;font-size:11px;font-weight:800;line-height:1;text-shadow:0 1px 3px #000,1px 0 2px #000,-1px 0 2px #000}.gym-material-name{max-width:100%;overflow-wrap:anywhere}.gym-material:hover .gym-material-name{color:#fff;text-decoration:underline;text-decoration-color:var(--accent-dim);text-underline-offset:2px}

/* Inicio del clan */
.stage[data-view="home"]{ max-width:1200px; }

.home-panel{min-height:clamp(500px,68vh,660px);display:grid;grid-template-rows:minmax(0,1fr) auto;justify-items:center;align-items:center;gap:0;padding:0 0 10px;text-align:center}
.about-panel,.rotations-panel,.guild-bosses-panel,.pokedex-panel,.calculator-panel{min-height:clamp(500px,68vh,660px)}
.home-alliance-logo{display:block;width:min(190px,38vw);height:auto;object-fit:contain;filter:drop-shadow(0 0 18px rgba(42,126,220,.18))}
.home-signature{display:grid;justify-items:center;gap:2px}
.home-starters{display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 2px}
.home-starters img{display:block;width:42px;height:42px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 5px rgba(0,0,0,.45))}

/* Vista ampliada del mapa dentro del sitio */
.map-dialog{ width:min(1000px,94vw); max-width:94vw; max-height:92vh; margin:auto; padding:0; overflow:hidden; border:1px solid #4a3030; border-radius:16px; background:#111; color:var(--text); box-shadow:0 24px 90px rgba(0,0,0,.75),0 0 28px rgba(229,9,20,.12); }
.map-dialog[open]{ display:flex; flex-direction:column; }
.map-dialog::backdrop{ background:rgba(0,0,0,.84); backdrop-filter:blur(5px); }
.map-dialog-header{ display:flex; align-items:center; justify-content:space-between; gap:16px; padding:12px 16px; border-bottom:1px solid var(--border); }
.map-dialog-header h2{ margin:0; color:var(--text); font:600 15px var(--font-body); }
.map-dialog-close{ display:grid; place-items:center; flex:none; width:34px; height:34px; border:1px solid var(--border); border-radius:9px; background:var(--panel-2); color:var(--text); font-size:24px; line-height:1; cursor:pointer; }
.map-dialog-close:hover{ border-color:var(--accent); background:var(--accent-dim); }
.map-dialog-image-wrap{ display:grid; place-items:center; min-height:100px; padding:12px; overflow:auto; }
.map-dialog-image-wrap img{ display:block; max-width:100%; max-height:calc(92vh - 78px); width:auto; height:auto; object-fit:contain; }
@media(max-width:620px){
  .section-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .section-tab{padding:9px 7px;font-size:11px}
  .home-panel{min-height:clamp(440px,68svh,660px)}
  .about-panel,.rotations-panel,.guild-bosses-panel,.pokedex-panel,.calculator-panel{min-height:clamp(440px,68svh,660px)}
  .map-dialog{ width:96vw; max-width:96vw; border-radius:12px; }
  .map-dialog-image-wrap{ padding:8px; }
  .map-dialog-image-wrap img{ max-height:calc(88vh - 72px); }
}

/* Pokédex visual */
.stage[data-view="pokedex"]{ max-width:1200px; }
.dex-toolbar{ display:grid; grid-template-columns:minmax(220px,1.6fr) minmax(145px,.8fr) minmax(145px,.8fr) auto auto; align-items:end; gap:10px; padding:12px; margin-bottom:8px; border:1px solid var(--border); border-radius:14px; background:var(--panel); }
.dex-search{ display:flex; flex-direction:column; gap:5px; color:var(--text-dim); font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.dex-search input{ min-height:42px; padding:0 11px; border:1px solid var(--border); border-radius:9px; background:var(--screen); color:var(--text); font:500 12px var(--font-body); }
.dex-search input::placeholder{ color:var(--text-faint); }
.dex-clear{ min-height:42px; padding:0 12px; border:1px solid var(--border); border-radius:9px; background:var(--screen); color:var(--text-dim); font:600 11px var(--font-body); cursor:pointer; }
.dex-clear:hover{ border-color:var(--accent); color:var(--text); }
.dex-count{ align-self:center; color:var(--text-dim); font:10px var(--font-mono); white-space:nowrap; }
.dex-data-note{ margin:7px 2px 12px; color:var(--text-faint); font-size:10px; }
.pokedex-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); gap:10px; }
.dex-card{ display:flex; min-width:0; align-items:center; gap:10px; padding:10px; border:1px solid var(--border); border-radius:12px; background:linear-gradient(150deg,var(--panel),#111); color:var(--text); text-align:left; font:inherit; cursor:pointer; transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.dex-card:hover,.dex-card:focus-visible{ transform:translateY(-2px); border-color:var(--accent); background:linear-gradient(150deg,#261416,#121212); box-shadow:0 5px 18px rgba(0,0,0,.28),0 0 12px rgba(229,9,20,.12); outline:none; }
.dex-sprite-wrap{ display:grid; place-items:center; flex:none; width:52px; height:52px; overflow:hidden; border:1px solid var(--border-soft); border-radius:10px; background:#0b0b0b; }
.dex-sprite{ width:48px; height:48px; object-fit:contain; image-rendering:pixelated; }
.dex-sprite.sprite-missing{ visibility:hidden; }
.dex-info{ display:flex; min-width:0; flex-direction:column; gap:7px; }
.dex-name{ overflow:hidden; color:var(--text); font-size:11px; font-weight:800; text-overflow:ellipsis; white-space:nowrap; }
.dex-meta{ display:flex; flex-wrap:wrap; gap:5px; }
.dex-type,.dex-tier{ padding:3px 6px; border:1px solid rgba(229,9,20,.3); border-radius:999px; background:rgba(201,0,0,.12); color:#e6b7b9; font:700 9px var(--font-mono); }
.dex-tier{ border-color:var(--border); background:#222; color:var(--text-dim); }
.pokemon-dialog{ position:relative; width:min(360px,90vw); margin:auto; padding:30px 24px 22px; border:1px solid #4a3030; border-radius:16px; background:#111; color:var(--text); text-align:center; box-shadow:0 24px 90px rgba(0,0,0,.75),0 0 28px rgba(229,9,20,.12); }
.pokemon-dialog::backdrop{ background:rgba(0,0,0,.84); backdrop-filter:blur(5px); }
.pokemon-dialog-close{ position:absolute; top:10px; right:10px; width:32px; height:32px; border:1px solid var(--border); border-radius:8px; background:var(--panel-2); color:var(--text); font-size:22px; cursor:pointer; }
.pokemon-dialog-sprite{ display:block; width:112px; height:112px; margin:0 auto 8px; object-fit:contain; image-rendering:pixelated; }
.pokemon-dialog h2{ margin:5px 0; font:700 22px var(--font-display); }
.pokemon-dialog p{ margin:0 0 18px; color:var(--text-dim); font:11px var(--font-mono); }
.pokemon-dialog-hunt{ width:100%; }
.pokemon-dialog-hunt:disabled{ opacity:.5; cursor:not-allowed; }
@media(max-width:820px){ .dex-toolbar{ grid-template-columns:repeat(2,minmax(0,1fr)); } .dex-search{ grid-column:1/-1; } .dex-count{ justify-self:end; } }
@media(max-width:620px){ .pokedex-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; } .dex-card{ gap:7px; padding:8px; } .dex-sprite-wrap{ width:44px; height:44px; } .dex-sprite{ width:42px; height:42px; } }

.pokemon-dialog{width:min(520px,92vw);max-height:90vh;overflow-y:auto}
.pokemon-dialog-locations{margin:14px 0 18px;text-align:left}
.pokemon-dialog-locations h3{margin:0 0 9px;color:var(--text);font:700 12px var(--font-body);letter-spacing:.04em;text-transform:uppercase}
.pokemon-location-row{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:8px;min-height:47px;padding:7px 0;border-top:1px solid var(--border)}
.pokemon-location-row>strong{color:var(--text-dim);font-size:11px}
.pokemon-location-row .map-links{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pokemon-location-row .map-link img{display:block;width:70px;height:42px;object-fit:cover;border:1px solid var(--border);border-radius:6px}
.pokemon-location-row .map-link:hover img{border-color:var(--accent);box-shadow:0 0 10px rgba(229,9,20,.25)}
.location-empty{color:var(--text-faint);font-size:11px}

/* Vistas de ancho uniforme y descripciones en una sola linea. */
.stage[data-view="home"],
.stage[data-view="pokedex"],
.stage[data-view="hunts"],
.stage[data-view="calculator"],
.stage[data-view="about"],
.stage[data-view="rotations"]{max-width:1200px}
.page-header .subtitle{max-width:none;white-space:nowrap;font-size:clamp(10px,1.9vw,13.5px);line-height:1.45}
.calculator-panel .grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
@media(max-width:620px){
  .home-alliance-logo{width:150px}
  .page-header .subtitle{font-size:clamp(9px,2.55vw,12px)}
  .calculator-panel .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
}

/* Guía de combates Rocket semanales */
.stage[data-view="rockets"]{max-width:1200px}
.rocket-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.rocket-card{display:flex;align-items:center;gap:14px;width:100%;min-width:0;min-height:102px;padding:16px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(145deg,var(--panel),#09111b);color:var(--text);text-align:left;cursor:pointer;transition:border-color .18s ease,transform .18s ease,box-shadow .18s ease}
.rocket-final-card{grid-column:2}
.rocket-card:hover,.rocket-card:focus-visible{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 22px rgba(0,0,0,.22),0 0 14px rgba(229,9,20,.1);outline:none}
.rocket-number{flex:none;color:#78899a;font:800 25px var(--font-display)}
.rocket-card-info{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:4px}
.rocket-card-kicker{color:var(--text-faint);font-size:9px;font-weight:700;letter-spacing:.045em}
.rocket-card-name{color:var(--text);font:700 17px var(--font-display)}
.rocket-card-hint{color:var(--text-dim);font-size:10px}
.rocket-card-hint span{margin-left:3px;color:var(--accent)}
.rocket-label{display:block;margin:0 0 5px 2px;color:var(--text-faint);font-size:9px;font-weight:700;letter-spacing:.045em}
.rocket-final-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 22px;padding:12px 17px 12px 32px;margin:0;color:var(--text-dim);font-size:12px;line-height:1.6}
.rocket-matchup{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;gap:5px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.055)}
.rocket-matchup:last-child{border-bottom:0}
.rocket-label{margin:0 0 5px 2px}
.rocket-pokemon-main{display:flex;align-items:center;gap:6px;min-height:34px}
.rocket-pokemon-main img{width:34px;height:34px;object-fit:contain;image-rendering:pixelated;flex:none}
.rocket-pokemon-main strong{color:#f2f5fa;font-size:11px;line-height:1.3}
.rocket-arrow{align-self:center;color:#607080;text-align:center;font-size:15px}
.rocket-counters{padding:2px 0 0 40px}
.rocket-counters>span{display:block;margin-bottom:3px;color:var(--text-faint);font-size:8px}
.rocket-counters>.boss-weakness-types{display:flex;flex-wrap:wrap;gap:3px}
.rocket-counters .boss-type-chip{gap:3px;padding:2px 5px;font-size:8px}
.rocket-counters .boss-type-chip .icon{width:12px;height:12px}
.rocket-type{padding:2px 5px;border:1px solid rgba(119,164,204,.2);border-radius:999px;background:rgba(71,119,166,.12);color:#b9d4ec;font:700 8px var(--font-body)}
.rocket-dialog{width:min(540px,94vw);max-height:88vh;overflow:hidden}
.rocket-dialog .map-dialog-header{flex:none}
.rocket-dialog-body{padding:6px 14px 10px;overflow-y:auto}
.rocket-dialog .rocket-matchups{display:grid;grid-template-columns:1fr;gap:0;padding:0}
@media(max-width:920px){.rocket-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rocket-final-card{grid-column:1/-1;width:calc((100% - 12px)/2);justify-self:center}}
@media(max-width:600px){.rocket-grid{grid-template-columns:1fr}.rocket-final-card{grid-column:auto;width:100%}.rocket-final-facts{grid-template-columns:1fr}}

@media(max-width:360px){.page-header .subtitle{white-space:normal}}

/* Presentación del clan */
.about-intro{margin:-3px 2px 16px;color:var(--text-dim);font-size:13px;line-height:1.6}
.about-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.about-card{padding:18px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(150deg,var(--panel),#111);box-shadow:0 8px 28px rgba(0,0,0,.16)}
.about-card h2{margin:0 0 12px;color:var(--text);font:700 17px var(--font-display);letter-spacing:.04em}
.about-card p{margin:0 0 11px;color:var(--text-dim);font-size:12px;line-height:1.75}
.about-card p:last-child{margin-bottom:0}
.about-card-structure{grid-column:1/-1}
.about-roles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.about-role{position:relative;min-height:152px;padding:13px;border:1px solid var(--border-soft);border-radius:10px;background:rgba(0,0,0,.18)}
.about-role h3{margin:0 0 7px;color:var(--accent);font:700 11px var(--font-body);letter-spacing:.08em;text-transform:uppercase}
.about-role p{margin:0;color:var(--text);font-weight:600}
.about-role:not(.about-role-trainers) p{max-width:56%}
.about-role-sprite{position:absolute;top:50%;right:18%;display:block;width:60px;height:60px;margin:0;object-fit:contain;image-rendering:pixelated;transform:translate(50%,-50%);filter:drop-shadow(0 0 7px rgba(229,9,20,.18))}
@media(max-width:680px){.about-grid{grid-template-columns:1fr}.about-roles{grid-template-columns:1fr 1fr}.about-role-trainers{grid-column:1/-1}}
@media(max-width:420px){.about-roles{grid-template-columns:1fr}}
@media(max-width:680px){.about-role{min-height:132px}.about-role-sprite{right:14%;width:56px;height:56px}.about-role:not(.about-role-trainers) p{max-width:54%}}

/* Rotaciones por elemento */
.rotation-callout,.rotation-guide-card,.rotation-card{border:1px solid var(--border);border-radius:14px;background:linear-gradient(150deg,var(--panel),#111)}
.rotation-callout{padding:14px 16px;margin:0 0 14px;color:var(--text-dim);font-size:12px;line-height:1.7}
.rotation-callout strong{color:var(--accent)}
.rotation-guide-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-bottom:14px}
.rotation-guide-card{padding:16px;color:var(--text-dim);font-size:11px;line-height:1.7}
.rotation-guide-card h2,.rotation-guide-card h3{margin:0 0 8px;color:var(--text);font:700 15px var(--font-display);letter-spacing:.04em}
.rotation-guide-card p{margin:0 0 8px}.rotation-guide-card ul{padding-left:19px;margin:8px 0}
.rotation-guide-card li{margin:3px 0}.rotation-guide-card .rotation-note{padding-top:8px;border-top:1px solid var(--border);color:var(--text-faint);font-size:10px}
#rotationTips article+article{padding-top:10px;margin-top:10px;border-top:1px solid var(--border)}
.rotation-type-nav{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 14px;padding:10px;border:1px solid var(--border);border-radius:12px;background:var(--panel)}
.rotation-jump,.rotation-tags span{padding:6px 10px;border:1px solid var(--border);border-radius:999px;background:var(--screen);color:var(--text-dim);font:700 10px var(--font-body)}
.rotation-jump{cursor:pointer;transition:color .15s ease,border-color .15s ease,background .15s ease}
.rotation-jump:hover{color:var(--text);border-color:var(--accent);background:var(--accent-dim)}
.rotation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:12px}
.rotation-card{min-width:0;padding:15px;scroll-margin-top:16px}
.rotation-card>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:9px;margin-bottom:9px;border-bottom:1px solid var(--border)}
.rotation-card>header h2{margin:0;color:var(--text);font:700 17px var(--font-display);letter-spacing:.05em}
.rotation-status{padding:4px 7px;border:1px solid rgba(229,9,20,.35);border-radius:999px;background:rgba(229,9,20,.12);color:#f08a90;font-size:9px;font-weight:700;white-space:nowrap}
.rotation-intro{margin:0 0 9px;color:var(--text-dim);font-size:11px;line-height:1.6}
.rotation-group{margin-top:9px}.rotation-group h3,.rotation-proscons h3{margin:0 0 6px;color:var(--text-faint);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.rotation-roster{display:flex;flex-wrap:wrap;gap:5px}
.rotation-pokemon{display:flex;align-items:center;gap:5px;max-width:100%;padding:4px 6px;border:1px solid var(--border-soft);border-radius:8px;background:rgba(0,0,0,.2);color:var(--text-dim);font-size:9px;line-height:1.35}
.rotation-sprite{width:26px;height:26px;flex:none;object-fit:contain;image-rendering:pixelated}.rotation-sprite.sprite-missing{display:none}
.rotation-upgrades{padding-top:9px;border-top:1px solid var(--border)}.rotation-tags{display:flex;flex-wrap:wrap;gap:5px}.rotation-tags span{font-size:9px;padding:4px 7px}
.rotation-proscons{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px;padding-top:10px;border-top:1px solid var(--border)}
.rotation-proscons>div{min-width:0}.rotation-proscons h3{color:#eaa0a3}.rotation-proscons p{margin:0;color:var(--text-dim);font-size:10px;line-height:1.55}
.rotation-source{margin:12px 2px 0;color:var(--text-faint);font-size:10px}
@media(max-width:900px){.rotation-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.rotation-guide-grid,.rotation-grid{grid-template-columns:1fr}.rotation-card{padding:13px}.section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Rotations: improve hierarchy and readability on desktop and mobile. */
.rotations-panel{max-width:1180px;margin-inline:auto}
.rotations-panel>.page-header{margin-bottom:18px}
.rotations-panel .subtitle{max-width:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rotation-callout{padding:15px 18px;margin-bottom:16px;font-size:13px;line-height:1.65}
.rotation-guide-grid{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:16px;margin-bottom:16px}
.rotation-guide-card{padding:20px;font-size:12px;line-height:1.7}
.rotation-guide-card h2,.rotation-guide-card h3{font-size:17px}
#rotationTips{display:grid;align-content:start;gap:14px}
#rotationTips article+article{padding-top:14px;border-top:1px solid var(--border)}
.rotation-type-nav{position:sticky;top:10px;z-index:3;gap:8px;margin-bottom:18px;padding:12px;box-shadow:0 8px 24px rgba(0,0,0,.24)}
.rotation-jump{padding:8px 12px;font-size:11px}
.rotation-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.rotation-card{padding:19px;scroll-margin-top:76px}
.rotation-card>header{min-height:38px;margin-bottom:14px}
.rotation-card>header h2{font-size:19px;letter-spacing:.025em}
.rotation-group{margin-top:14px}
.rotation-group h3,.rotation-proscons h3{font-size:10px}
.rotation-roster{gap:7px}
.rotation-pokemon{gap:8px;padding:6px 9px;font-size:11px;line-height:1.4}
.rotation-sprite{width:32px;height:32px}
.rotation-tags{gap:7px}
.rotation-tags span{padding:6px 9px;font-size:10px}
.rotation-proscons{gap:14px;margin-top:14px;padding-top:13px}
.rotation-proscons p{font-size:11px;line-height:1.6}
.rotation-source{margin-top:16px;font-size:11px}
@media(max-width:800px){
  .rotations-panel .subtitle{white-space:normal;overflow:visible}
  .rotation-guide-grid{grid-template-columns:1fr}
  .rotation-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .rotation-card{padding:15px}
  .rotation-type-nav{position:static}
  .rotation-proscons{grid-template-columns:1fr}
}
.rotations-panel>.page-header{margin-bottom:16px}
.rotation-callout{display:none}
.rotation-jump[aria-expanded="true"]{border-color:var(--accent);background:var(--accent-dim);color:var(--text);box-shadow:0 0 16px rgba(229,9,20,.16)}
.rotation-card[hidden]{display:none}
.rotation-pokemon{font:inherit;text-align:left;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.rotation-pokemon:hover{border-color:var(--accent);background:rgba(201,0,0,.13);transform:translateY(-1px)}
.rotation-improvement{color:var(--text-dim)}
.rotation-tags .rotation-improvement{border-radius:9px}
.rotation-tip{display:flex;align-items:flex-start;gap:12px}
.rotation-tip .rotation-sprite{width:42px;height:42px;padding:4px;border:1px solid var(--border);border-radius:10px;background:var(--screen)}
.rotation-tip>div{min-width:0}
.rotation-tip h3{margin-bottom:5px}
.rotation-tip p{line-height:1.6}
.rotation-card .rotation-roster .rotation-pokemon{min-height:43px}
.rotation-dialog{width:min(880px,94vw)}
.rotation-dialog-content{padding:16px;overflow:auto}
.rotation-dialog-card{max-width:none;margin:0;background:transparent}
@media(max-width:620px){.rotation-dialog{width:96vw}.rotation-dialog-content{padding:10px}}

/* Hazard guide */
.stage[data-view="hazard"]{max-width:1200px}
.hazard-guide{margin:0 auto;max-width:1000px;padding:0;text-align:center}
.hazard-guide img{display:block;width:100%;height:auto;object-fit:contain;border:1px solid var(--border);border-radius:12px}
.hazard-guide figcaption{margin-top:10px;color:var(--text-faint);font-size:12px}
.gym-row .gym-dungeon-label{color:#ff626c;text-shadow:0 0 4px rgba(255,35,48,.78),0 0 12px rgba(255,15,30,.46);font-weight:800}

/* GYMs: leader selection, detail dialog, and site color tokens */
.gym-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.gym-leader-card{display:flex;min-width:0;min-height:190px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:12px 8px;border:1px solid var(--border);border-radius:14px;background:linear-gradient(155deg,var(--panel),var(--panel-2));color:var(--text);cursor:pointer;text-align:center;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.gym-leader-card:hover{transform:translateY(-3px);border-color:var(--accent);background:linear-gradient(155deg,var(--panel-2),color-mix(in srgb,var(--accent) 10%,var(--panel)));box-shadow:0 8px 24px rgba(0,0,0,.28),0 0 18px rgba(229,9,20,.16)}
.gym-leader-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.gym-leader-card .gym-leader-sprite{width:94px;height:112px;object-fit:contain}
.gym-leader-name{color:var(--text);font:700 15px/1.25 var(--font-display);text-shadow:0 0 10px rgba(229,9,20,.38)}
.gym-leader-card .gym-city{color:var(--text-faint);font-size:11px}
.gym-info-dialog{width:min(720px,94vw);max-height:90vh;overflow:hidden}
.gym-info-body{max-height:calc(90vh - 58px);padding:14px 18px 18px;overflow-y:auto}
.gym-detail-card{padding:0;border:0;background:transparent;box-shadow:none}
.gym-detail-card>header{padding-bottom:11px;margin-bottom:13px;border-bottom:1px solid var(--border)}
.gym-detail-card .gym-leader-sprite{width:66px;height:76px}
.gym-talent{border-color:var(--border);background:var(--panel)}
.gym-talent>summary{color:var(--text-dim)}
.gym-talent>summary:hover{background:var(--panel-2);color:var(--text)}
.gym-talent[open]>summary{background:color-mix(in srgb,var(--accent) 12%,var(--panel-2));color:var(--text)}
.gym-talent-items{background:var(--bg)}
.gym-material{color:var(--text-dim)}
.gym-material-sprite{border-color:var(--border);background:var(--panel-2)}
.gym-row .gym-dungeon-label{color:#ff626c;text-shadow:0 0 4px rgba(255,35,48,.78),0 0 12px rgba(255,15,30,.46);font-weight:800}
@media(max-width:680px){.gym-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.gym-leader-card{min-height:160px}.gym-leader-card .gym-leader-sprite{width:76px;height:92px}.gym-info-body{padding:12px}}
/* Display one complete frame for stone sprites so they remain visible in the 32px icon viewport. */
.gym-material-viewport--animated img{width:32px;height:32px;max-width:none;object-fit:none;object-position:left top;animation:none}
.gym-leader-hint{color:var(--text-dim);font-size:10px;font-weight:700;transition:color .18s ease}.gym-leader-hint span{display:inline-block;margin-left:3px;color:var(--accent);font-size:15px;line-height:1;transition:transform .18s ease}.gym-leader-card:hover .gym-leader-hint,.gym-leader-card:focus-visible .gym-leader-hint{color:var(--text)}.gym-leader-card:hover .gym-leader-hint span,.gym-leader-card:focus-visible .gym-leader-hint span{transform:translate(2px,-2px)}
.gym-leader-card{min-height:210px}
.gym-leader-card .gym-leader-sprite{width:84px;height:96px}
.gym-team-preview{display:flex;width:100%;min-height:29px;align-items:center;justify-content:center;gap:1px;margin:1px 0 2px;border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
.gym-team-preview-label{flex:none;margin-right:2px;color:var(--text-faint);font-size:8px;font-weight:700;letter-spacing:.02em}
.gym-team-preview>img{display:block;width:22px;height:22px;flex:none;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 1px 2px rgba(0,0,0,.55))}
@media(max-width:680px){.gym-leader-card{min-height:190px}.gym-leader-card .gym-leader-sprite{width:68px;height:80px}.gym-team-preview>img{width:18px;height:18px}.gym-team-preview-label{font-size:7px}}
