/* Guide library: the cover card glows like the menu highlight (mint warming to gold at the right edge).
   Hover breathes and sends the light pulse across; a click lights it up and rings once. */
@keyframes gn-card-breathe{
 0%,100%{box-shadow:0 12px 40px #0003,-6px 0 18px rgba(120,222,153,.2),8px 0 18px rgba(240,215,122,.2)}
 50%{box-shadow:0 12px 40px #0003,-8px 0 34px 4px rgba(120,222,153,.4),10px 0 34px 5px rgba(240,215,122,.48),0 0 0 3px rgba(162,221,192,.12)}
}
@keyframes gn-card-ring{
 0%{outline-color:rgba(162,221,192,.9);outline-offset:0}
 100%{outline-color:rgba(162,221,192,0);outline-offset:16px}
}








/* Reduced motion (unless the visitor switched animations on), or animations switched off:
   no breathing or pulse, but the glow stays. */
@media (prefers-reduced-motion:reduce){
 :root:not(.motion-on) .guide-entry:hover,:root:not(.motion-on) .guide-entry:focus-visible{animation:none;box-shadow:0 12px 40px #0003,-6px 0 26px 3px rgba(120,222,153,.34),9px 0 26px 4px rgba(240,215,122,.38)}
 :root:not(.motion-on) .guide-entry::after,:root:not(.motion-on) .guide-entry.is-pressed{animation:none}
}



/* Goldfish Lab: chosen modes and the Next button share the menu's mint-to-gold highlight. */
#goldfish .gf-toolbar button[aria-pressed=true],#goldfish #gf-next{background:var(--gn-fill);border-color:#cfe6a8;color:#0b281c;box-shadow:-3px 0 10px rgba(120,222,153,.22),5px 0 12px rgba(240,215,122,.24)}
#goldfish #gf-next:hover:not(:disabled){box-shadow:-5px 0 16px 2px rgba(120,222,153,.38),8px 0 18px 3px rgba(240,215,122,.42)}
#goldfish .gf-card{will-change:transform}

/* Goldfish Lab battlefield: creatures above, lands below. An earthbent Cradle moves up to the creatures. */
#goldfish .gf-board{display:grid;gap:8px;align-content:start;padding:8px 0 10px}
#goldfish .gf-row{position:relative;display:flex;flex-wrap:wrap;align-content:flex-start;gap:10px;min-height:150px;padding-top:18px}
#goldfish .gf-row::before{content:attr(data-label);position:absolute;top:0;left:2px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#8bad9b}
#goldfish .gf-lands{min-height:140px;border-top:1px dashed #2f5446;padding-top:22px}
#goldfish .gf-lands::before{top:6px}

/* Keyword and state icons */
#goldfish .gf-badges{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;margin-top:4px;min-height:16px}
#goldfish .gf-ico{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#0b1a14;border:1px solid #3b6050}
#goldfish .gf-ico svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#goldfish .gf-ico img{width:13px;height:13px}
#goldfish .gf-ico-haste{color:#ffcf6a;border-color:#7a5d1f}#goldfish .gf-ico-haste svg{fill:currentColor;stroke:none}
#goldfish .gf-ico-trample{color:var(--accent);border-color:#2c6a43}
#goldfish .gf-ico-sick{color:#9fb7c9;border-color:#3b5266}
#goldfish .gf-ico-used{position:relative;border-color:#6d3a41}
#goldfish .gf-ico-used::after{content:"";position:absolute;width:15px;height:2px;background:#ff8f8f;transform:rotate(-45deg);border-radius:2px}
#goldfish .gf-pump{font-size:11px;font-weight:800;color:#bcf2ca;padding:1px 5px;border-radius:999px;background:#163c25;border:1px solid #2c6a43}
/* A used Symbiote or Quirion dims so it reads as spent at a glance */
#goldfish .gf-card.used .gf-face{filter:grayscale(.75) brightness(.65)}
#goldfish .gf-card.used .gf-card-caption{color:#9aa9b4}

/* Cards that acted in this step: menu glow, mint warming to gold */
@keyframes gf-acted{
 0%{box-shadow:0 0 0 2px var(--gn-gold),-6px 0 18px 4px rgba(120,222,153,.7),8px 0 20px 5px rgba(240,215,122,.75)}
 60%{box-shadow:0 0 0 2px #cfe6a8,-5px 0 14px 2px rgba(120,222,153,.45),7px 0 16px 3px rgba(240,215,122,.5)}
 100%{box-shadow:0 0 0 1px rgba(162,221,192,.5),-3px 0 8px rgba(120,222,153,.25),5px 0 10px rgba(240,215,122,.25)}
}
#goldfish .gf-card.gf-acted .gf-face{animation:gf-acted 1.6s ease-out forwards}
@media (prefers-reduced-motion:reduce){:root:not(.motion-on) #goldfish .gf-card.gf-acted .gf-face{animation:none;box-shadow:0 0 0 2px var(--gn-gold),-4px 0 12px 2px rgba(120,222,153,.5),6px 0 12px 2px rgba(240,215,122,.55)}}
:root.motion-off #goldfish .gf-card.gf-acted .gf-face{animation:none;box-shadow:0 0 0 2px var(--gn-gold),-4px 0 12px 2px rgba(120,222,153,.5),6px 0 12px 2px rgba(240,215,122,.55)}
@media(max-width:600px){#goldfish .gf-row{min-height:120px}#goldfish .gf-ico{width:15px;height:15px}}

/* Phones (tasks R and S, 8 Oct 2026). Found by the 360 / 390 px audit in ROADMAP.md. */
.table-scroll{overflow-x:auto;max-width:100%}
#mana .box .data td:first-child{white-space:nowrap}
/* The empty-board note sits in the creature row, clear of the "Lands" label. */
#goldfish #gf-empty{margin:-262px auto 217px}
@media(max-width:760px){
 /* Bigger tap areas without moving the layout. */
 .goto{position:relative}
 .goto::after{content:"";position:absolute;inset:-9px -3px}
 details>summary{position:relative}
 details>summary::after{content:"";position:absolute;inset:-8px 0}
 .odds-field input[type=range],#gf-progress{min-height:36px}
 .combo37-controls button{min-height:40px}
 /* 24 px or more (27 Oct 2026): "Their sideboard" clips its ::after (overflow:hidden for the ellipsis), so it grows
    by padding and gives the space back with a negative margin; the season's B&R and Eternal Weekend links get an ::after. */
 .mu-their>summary{padding-block:5px;margin-block:-5px}
 .mu-their[open]>summary{margin-bottom:1px}
 .dst-ewbox a,.dst-banbox a{position:relative}
 .dst-ewbox a::after,.dst-banbox a::after{content:"";position:absolute;inset:-4px -2px}
}
@media(max-width:600px){
 #goldfish #gf-empty{margin:-212px auto 167px}





}
@media(max-width:400px){
 /* Matchup alarms: the answer goes under the name, so "Wasteland" is not cut. */
 .mu-alarm{flex-wrap:wrap;row-gap:2px;padding:6px 7px}
 .mu-alarm b{margin-left:14px;flex-basis:100%}
}

/* Goldfish variant switches (js/04.js, GF_VARIANTS). Switches move together; the ones a change moved flash once. */
#goldfish .gf-variants{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0 2px}
#goldfish .gf-variants[hidden]{display:none}
#goldfish .gf-switch,#goldfish .gf-pick button{all:unset;box-sizing:border-box;display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 12px 6px 8px;border-radius:999px;border:1px solid #2f4452;background:#0f1a22;color:#b9c8d4;font:600 12px Roboto,sans-serif;cursor:pointer;transition:transform 160ms cubic-bezier(.23,1,.32,1),border-color 150ms ease,background-color 150ms ease,color 150ms ease}
#goldfish .gf-switch-track{position:relative;width:26px;height:15px;flex:none;border-radius:999px;background:#2a3a46;transition:background-color 150ms ease}
#goldfish .gf-switch-track::after{content:"";position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#8a9aa6;transition:transform 160ms cubic-bezier(.23,1,.32,1),background-color 150ms ease}
#goldfish .gf-switch[aria-checked="true"]{border-color:#2c6a43;background:#11261b;color:#dff3e8}
#goldfish .gf-switch[aria-checked="true"] .gf-switch-track{background:#78de99}
#goldfish .gf-switch[aria-checked="true"] .gf-switch-track::after{transform:translateX(11px);background:#0b281c}
#goldfish .gf-pick{display:inline-flex;align-items:center;gap:4px;padding:3px;border-radius:999px;border:1px solid #2f4452;background:#0b141b}
#goldfish .gf-pick-label{padding:0 6px 0 8px;font-size:11px;color:#8496a3}
#goldfish .gf-pick button{min-height:30px;padding:4px 12px;border:0;background:transparent}
#goldfish .gf-pick button[aria-checked="true"]{background:var(--gn-fill);color:#0b281c}
@media (hover:hover) and (pointer:fine){#goldfish .gf-switch:hover,#goldfish .gf-pick button:not([aria-checked="true"]):hover{color:var(--text);border-color:#4a6576}}
#goldfish .gf-switch:active,#goldfish .gf-pick button:active{transform:scale(.97)}
#goldfish .gf-switch:focus-visible,#goldfish .gf-pick button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
@keyframes gf-magnet{0%{box-shadow:0 0 0 2px var(--gn-gold),-4px 0 14px 2px rgba(120,222,153,.6),6px 0 16px 3px rgba(240,215,122,.6)}100%{box-shadow:0 0 0 0 transparent}}
#goldfish .gf-switch.is-magnet{animation:gf-magnet 900ms cubic-bezier(.23,1,.32,1)}
@media (prefers-reduced-motion:reduce){:root:not(.motion-on) #goldfish .gf-switch.is-magnet{animation:none;border-color:var(--gn-gold)}}
:root.motion-off #goldfish .gf-switch.is-magnet{animation:none;border-color:var(--gn-gold)}
#goldfish .gf-variant-note{min-height:0;margin:4px 0 0;font-size:12px;color:var(--gn-gold)}
#goldfish .gf-variant-note:empty{display:none}
#goldfish .gf-side[hidden]{display:none}
#goldfish .gf-side button.is-magnet{animation:gf-magnet 900ms cubic-bezier(.23,1,.32,1)}
:root.motion-off #goldfish .gf-side button.is-magnet{animation:none;outline:2px solid var(--gn-gold)}
@media (prefers-reduced-motion:reduce){:root:not(.motion-on) #goldfish .gf-side button.is-magnet{animation:none;outline:2px solid var(--gn-gold)}}
#goldfish .gf-variant-need{margin:6px 0 0;font-size:12px;color:#c9d6e0}
#goldfish .gf-variant-need[hidden]{display:none}
#goldfish .gf-need-tag{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:999px;border:1px solid #7a5d1f;background:#2a2210;color:var(--gn-gold);font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* Design audit fixes (task V, 9 Oct 2026) */
/* Skip link: hidden until it takes keyboard focus, then it sits over the top-left corner. */
.skip-link{position:fixed;top:12px;left:12px;z-index:100;padding:10px 16px;border-radius:10px;background:var(--accent);color:var(--accent-ink);font-weight:700;font-size:14px;transform:translateY(-200%);text-decoration:none}
.skip-link:focus-visible{transform:none;outline:2px solid var(--text);outline-offset:2px}
.pane h2[tabindex="-1"]:focus{outline:none}
/* Smooth in-page scrolling only when motion is welcome. */
@media (prefers-reduced-motion:reduce){:root:not(.motion-on){scroll-behavior:auto}}
:root.motion-off{scroll-behavior:auto}
/* Role pills: every label at 4.5:1 or better. */
.rolepill.turbo{background:#b44f55}
.rolepill.slow{color:#1d1607}
.rolepill.control{background:#3d70a6}
/* Hit areas: fold-out headings reach 24 px on wide screens (phones get more in the Phones block).
   The Sideboard map's matchup names get theirs in css/13.css, after its all:unset reset. */
@media (min-width:761px){details>summary{position:relative}details>summary::after{content:"";position:absolute;inset:-4px 0}}
.combo35-join a{display:inline-block;padding:6px 4px}
