#fight-deck{max-width:900px;margin:auto;color:#ecf2ee;--deck-ink:#0a1012;--deck-line:#344b48}
#fight-deck *,#fd-theater *{box-sizing:border-box}
#fight-deck button,#fight-deck select{font:inherit}
#fight-deck :focus-visible{outline:3px solid #f4cf80;outline-offset:3px}
#fight-deck button:disabled{opacity:.4;cursor:default}
#fight-deck .fd-go{appearance:none;min-height:44px;padding:10px 19px;border:1px solid #f3d692;background:linear-gradient(155deg,#f6e0a5,#cba968);color:#141a18;border-radius:7px;font-weight:800;cursor:pointer}
.fd-head{isolation:isolate;overflow:hidden;position:relative;gap:18px;margin:20px 0;padding:clamp(20px,4.3vw,42px);border:1px solid #536b65;border-radius:18px;background:radial-gradient(ellipse at 94% 10%,#31574c 0,transparent 48%),linear-gradient(125deg,#0a1c20 12%,#132a2a 52%,#411c24)}
.fd-head:before{content:'';pointer-events:none;position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(120deg,transparent 0 47px,#d3eedb08 48px 49px)}
.fd-edition,.fd-cinema-kicker{font-family:ui-monospace,monospace;font-size:12px;line-height:1.5;letter-spacing:.12em;font-weight:700;color:#d7bd87}
.fd-head h1{font:italic 900 clamp(2.25rem,6vw,4rem)/.99 system-ui;margin:10px 0 12px;letter-spacing:-.055em}
.fd-head p{color:#d5e1dd;line-height:1.5;max-width:36ch;margin:0 0 18px}
.fd-shelf,.fd-bookhead,.fd-pagination,.fd-pack,.fd-cinema-bar,.fd-cinema-controls{display:flex;gap:12px;align-items:center;justify-content:space-between}
.fd-shelf{margin:22px 0 4px}.fd-shelf h2,.fd-bookhead h2{margin:4px 0}.fd-pack{padding:12px;background:#172621;border:1px solid #49665d;border-radius:10px;margin:8px 0}
.fd-pack img{width:41px;height:63px;object-fit:contain}.fd-pack span{flex:1}.fd-pack small{display:block;color:#c7d4cf;margin-top:4px}
.fd-rules {
  margin: 16px 0 22px;
  background: #121e1d;
  border: 1px solid #42564f;
  border-radius: 12px;
  overflow-wrap: anywhere;
  scroll-margin-top: 1rem;
}
.fd-rules summary {
  padding: 14px 18px;
  color: #fae6af;
  cursor: pointer;
  font-weight: 750;
}
.fd-rules summary::marker { color: #ddbd7d }
.fd-rules[open] summary { border-bottom: 1px solid #394e47 }
.fd-rules-body { max-width: 72ch; padding: 18px clamp(14px, 3vw, 24px) 24px }
.fd-rules-body h2 { margin: 0 0 .55rem; font-size: clamp(1.25rem, 3vw, 1.65rem); line-height: 1.25 }
.fd-rules-body h3 { margin: 1.3rem 0 .35rem; font-size: 1.05rem; line-height: 1.4 }
.fd-rules-body p, .fd-rules-body li { margin: 0; line-height: 1.55; color: #d6dfdd }
.fd-rules-body strong { color: #f5f4e9 }
.fd-rules-body ul { list-style: none; padding: 0; margin: .75rem 0 0 }
.fd-rules-body li { display: grid; grid-template-columns: 4.25em minmax(0, 1fr); gap: .5rem; padding: .45rem 0; border-bottom: 1px solid #33463e }
.fd-rules-body time { font-weight: 700; color: #e7ce93 }
.fd-rules-body a, .fd-rules-body button { display: inline-block; margin-top: 1rem; color: #dfede6 }
.fd-album{padding:clamp(12px,3vw,26px);border:1px solid #4b5c57;border-radius:14px;background:linear-gradient(115deg,#22352e,#111b19 54%,#20312b);box-shadow:inset 0 0 0 4px #0a121070,0 10px 24px #0004}
.fd-bookhead{align-items:end}.fd-bookhead h2{font-size:clamp(1.45rem,4vw,2rem);letter-spacing:-.03em}#fd-count,#fd-page{color:#d4dfd6;font-size:.9rem;font-variant-numeric:tabular-nums}
#fd-meter{appearance:none;display:block;width:100%;height:5px;border:0;border-radius:4px;background:#34433c;margin:12px 0 15px;overflow:hidden}#fd-meter::-webkit-progress-bar{background:#34433c}#fd-meter::-webkit-progress-value{background:#e3c58a}#fd-meter::-moz-progress-bar{background:#e3c58a}
.fd-filters{display:flex;gap:12px;margin:0 0 15px}.fd-filters label{font-size:.85rem;font-weight:650;display:grid;gap:4px;color:#d4dfd6}.fd-filters select{max-width:100%;color:#f2f3ef;background:#15201e;border:1px solid #56685f;border-radius:6px;min-height:42px;padding:4px 10px}
#fd-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(7px,1.7vw,15px);padding:clamp(7px,1.5vw,15px);background:repeating-linear-gradient(145deg,#141d1b 0 3px,#17211f 3px 6px);border:1px solid #43544c;border-radius:9px}
#fight-deck .fd-tile{min-width:0;text-align:left;display:block;color:#f2f3ef;background:linear-gradient(135deg,#273632,#101716 50%,#1b2824);border:1px solid #54645c;border-radius:6px;padding:5px 5px 9px;position:relative;box-shadow:inset 0 0 0 2px #0d1411,0 3px 5px #0005;cursor:pointer}
.fd-pocket{display:block;position:relative;isolation:isolate;overflow:hidden;border-radius:3px;background:#101713}
.fd-pocket:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(125deg,#e2ffff16,transparent 29%,transparent 65%,#e2ffff0a);border:1px solid #d8efec1a}
.fd-pocket img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}.fd-tile.missing img{filter:brightness(.92)}.fd-tile.owned{outline:1px solid #709b88}
.fd-serial{position:absolute;right:3px;top:3px;padding:2px 5px;border-radius:2px;background:#0c1715e8;color:#f5ead3;font:600 11px/1.35 ui-monospace,monospace}
.fd-tile strong,.fd-tile small{display:block;padding:0 4px;overflow-wrap:anywhere}.fd-tile strong{margin-top:6px;font-size:1rem}.fd-tile small{font-size:.83rem;color:#cad5cf;margin-top:2px}
.fd-pagination{margin-top:12px}.fd-pagination button,.fd-shelf button,.fd-rules button,#fd-dialog button{min-height:42px;padding:7px 13px;border:1px solid #65766e;border-radius:6px;background:#1d2825;color:#f2f5ef;cursor:pointer}
.fd-empty{grid-column:1/-1;padding:18px;color:#e0e9e4;text-align:center}.fd-sponsor{display:block;color:#d8e6e5;padding:22px 0}
#fd-dialog,#fd-theater{color:#f4f7f6;box-sizing:border-box;overscroll-behavior:contain}
#fd-dialog{background:#131e20;border:1px solid #708883;border-radius:12px;width:min(90vw,420px);max-height:92vh;max-height:92dvh;overflow:auto;padding:20px}
#fd-dialog h2{margin:0 0 12px}.fd-detail{display:block;width:100%;max-height:53vh;object-fit:contain}.fd-detail-meta{color:#e8d398;font-weight:750}.fd-character-note{line-height:1.5}
#fd-dialog::backdrop,#fd-theater::backdrop{background:#040708de}
#fd-theater{--foil:#e9c889;padding:0;margin:auto;border:1px solid #60756a;border-radius:16px;width:min(665px,96vw);max-width:100vw;max-height:96vh;max-height:96dvh;overflow:auto;background:#0a1115;box-shadow:0 30px 100px #000b;font-family:system-ui,sans-serif}
#fd-theater[open]{display:flex;flex-direction:column}
.fd-cinema-bar{padding:10px 15px;gap:7px;border-bottom:1px solid #30413f;background:#101a1d}.fd-cinema-kicker{margin-right:auto;font-size:clamp(10px,1.7vw,12px)}
#fd-theater .fd-quiet{padding:6px 11px;min-height:40px;border:1px solid #4c6061;border-radius:6px;color:#dfebe8;background:#182327;cursor:pointer;font-weight:650;font-size:.875rem}
.fd-cinema-title{text-align:center;font:italic 850 clamp(1.45rem,4.2vw,2.1rem)/1.12 system-ui;margin:16px 12px 8px;letter-spacing:-.04em}
.fd-arena{--foil:#e9c889;position:relative;isolation:isolate;overflow:hidden;display:grid;place-items:center;min-height:180px;height:clamp(220px,53vh,430px);height:clamp(220px,53dvh,430px);background:radial-gradient(ellipse at 50% 58%,#21333a 0%,#0c131a 58%,#080e12 92%)}
.fd-arena:before,.fd-arena:after{content:'';position:absolute;z-index:-1;bottom:0;left:0;width:100%;height:38%;opacity:.19;background:repeating-linear-gradient(55deg,transparent 0 27px,#98a6b5 28px 29px,transparent 30px 51px),repeating-linear-gradient(-55deg,transparent 0 27px,#98a6b5 28px 29px,transparent 30px 51px);mask-image:linear-gradient(transparent,black)}
.fd-arena:after{height:12%;background:radial-gradient(ellipse at 50% 20%,var(--foil),transparent 62%);opacity:.6;filter:blur(7px);mask-image:none}
.fd-spotlight{position:absolute;z-index:-1;inset:0;opacity:.33;background:conic-gradient(from 20deg at 0 -15%,transparent 103deg,var(--foil) 116deg,transparent 125deg),conic-gradient(from -25deg at 100% -15%,transparent 241deg,var(--foil) 255deg,transparent 270deg)}
.fd-stage-body{width:100%;height:100%;display:grid;place-items:center;perspective:1000px;min-height:0}
.fd-foil,.fd-card-mount{height:87%;max-height:390px;position:relative}.fd-foil{aspect-ratio:2/3;touch-action:none;user-select:none;cursor:crosshair;filter:drop-shadow(0 12px 14px #000);transform:rotate(-3deg)}
.fd-wrapper-top,.fd-wrapper-bottom{position:absolute;inset:0;background-size:100% 100%;background-repeat:no-repeat;pointer-events:none}
.fd-wrapper-top{clip-path:polygon(0 0,100% 0,100% 31%,88% 29%,75% 32%,65% 30%,48% 33%,30% 30%,14% 32%,0 30%)}
.fd-wrapper-bottom{clip-path:polygon(0 30%,14% 32%,30% 30%,48% 33%,65% 30%,75% 32%,88% 29%,100% 31%,100% 100%,0 100%)}
.fd-seam,.fd-gesture{height:3px;position:absolute;pointer-events:none;box-shadow:0 0 6px #fff,0 0 15px #7bffe6;background:#ddfff2}
.fd-seam{left:2%;right:2%;top:30%;opacity:.9;background:repeating-linear-gradient(90deg,#dcfff3 0 10px,#246d67 10px 15px);animation:fd-seam 2.4s ease-in-out infinite}
.fd-gesture{width:0;transform-origin:left center;background:#fff3cf}.is-torn .fd-seam{display:none}
.is-torn .fd-wrapper-top{animation:fd-tear-cap .64s ease-in forwards}
.is-torn .fd-wrapper-bottom{animation:fd-tear-wrap .64s ease-in forwards}
.fd-card-mount{aspect-ratio:2/3;max-width:85%;perspective:1100px}
.fd-turn{width:100%;height:100%;position:relative;transform-style:preserve-3d}
.fd-face{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;backface-visibility:hidden;-webkit-backface-visibility:hidden;border-radius:3%;filter:drop-shadow(0 6px 9px #0009)}
.fd-front{transform:rotateY(180deg)}
.fd-card-mount:before{content:'';position:absolute;inset:7% -5%;border-radius:30%;background:var(--foil);filter:blur(22px);opacity:.32}
.fd-arena[data-rarity="2"] .fd-spotlight{opacity:.56;transform:skew(-6deg)}
.fd-arena[data-rarity="3"] .fd-spotlight,.fd-arena[data-rarity="4"] .fd-spotlight{opacity:.65;background:repeating-conic-gradient(from -14deg at 50% 55%,transparent 0 19deg,var(--foil) 20deg,transparent 22deg 38deg);mask-image:radial-gradient(ellipse,transparent 12%,#0008 60%,transparent 95%)}
.fd-arena[data-rarity="4"] .fd-card-mount:before{inset:-5% -15%;border-radius:50%;background:radial-gradient(ellipse,transparent 45%,#ffd6b0 56%,#ff3d67 62%,transparent 72%);filter:blur(10px);opacity:.76}
.fd-fx{pointer-events:none;position:absolute;inset:0;overflow:hidden}.fd-spark{position:absolute;left:50%;top:50%;width:3px;height:9px;background:var(--foil);border-radius:60%;box-shadow:0 0 6px var(--foil);animation:fd-spark .8s ease-out forwards}
.fd-caption{min-height:1.4em;color:#e7dfcc;text-align:center;margin:12px 10px 4px;line-height:1.4;font-size:.96rem}.fd-cinema-controls{padding:8px 12px 17px;justify-content:center;flex-wrap:wrap}
.fd-pull-strip{width:97%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;text-align:center}.fd-recap-card img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain}.fd-recap-card strong,.fd-recap-card small{display:block}.fd-recap-card strong{margin:4px 0;font-size:clamp(12px,2.5vw,16px)}.fd-recap-card small{font-size:clamp(10px,2vw,14px);color:#dadbcf}
@keyframes fd-seam{50%{opacity:.5}}
@keyframes fd-tear-cap{from{transform:none}to{transform:translate(32%,-63%) rotate(29deg);opacity:0}}
@keyframes fd-tear-wrap{0%,18%{transform:none;opacity:1}to{transform:translate(-4%,47%) rotate(-9deg);opacity:0}}
@keyframes fd-spark{from{transform:rotate(var(--spin)) scale(.3);opacity:1}to{transform:translate(var(--x),var(--y)) rotate(var(--spin)) scale(.5);opacity:0}}
@media(max-width:600px){#fd-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fd-filters>label{flex:1;min-width:0}.fd-cinema-bar{padding:7px 10px}.fd-cinema-title{margin:12px 10px 5px}}
@media(max-height:500px){.fd-arena{height:43vh;min-height:115px}.fd-cinema-title{margin:4px}.fd-caption{margin:4px}.fd-cinema-bar,.fd-cinema-controls{padding:4px 10px}.fd-pull-strip{max-width:350px}}
@media(prefers-reduced-motion:reduce){.fd-seam,.is-torn .fd-wrapper-top,.is-torn .fd-wrapper-bottom,.fd-spark{animation:none!important}}
.fd-foil:not(.is-torn){animation:fd-pack-arrives .45s cubic-bezier(.16,.8,.23,1) both}
.fd-foil:not(.is-torn):after{content:'';position:absolute;inset:3% 5%;pointer-events:none;clip-path:polygon(1% 0,99% 0,96% 12%,99% 98%,0 100%,4% 84%);background:linear-gradient(110deg,transparent 37%,#ccf4ff26 43%,#f7fff895 49%,transparent 54%);background-size:320% 100%;mix-blend-mode:screen;animation:fd-foil-glint 3.4s ease-in-out infinite}
@keyframes fd-foil-glint{0%{background-position:100% 0}55%,100%{background-position:0 0}}
@keyframes fd-pack-arrives{from{opacity:0;transform:translateY(15%) rotate(7deg) scale(.78)}to{opacity:1;transform:rotate(-3deg)}}
@media(prefers-reduced-motion:reduce){.fd-foil:not(.is-torn),.fd-foil:not(.is-torn):after{animation:none}}
/* Card reveal. The back takes the light first. The hit and front face share
   a cue, so rare cards can build for longer without changing the flip. */
.fd-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 56%, transparent 10%, #02060bab 88%);
}
.fd-atmosphere::before, .fd-atmosphere::after {
  content: '';
  position: absolute;
  inset: -8%;
  opacity: 0;
  background: conic-gradient(from 135deg at 7% 0%, transparent 0 3deg, var(--foil) 12deg, transparent 25deg),
              conic-gradient(from 197deg at 93% 0%, transparent 0 3deg, var(--foil) 12deg, transparent 26deg);
  transform-origin: 50% 0;
  mask-image: linear-gradient(#000, #0008 55%, transparent);
}
.fd-atmosphere::after {
  background: radial-gradient(ellipse at center, transparent 39%, var(--foil) 50%, transparent 64%);
  mask-image: none;
}
.fd-arena[data-beat="charge"] .fd-atmosphere::before,
.fd-arena[data-beat="pivot"] .fd-atmosphere::before {
  opacity: .5;
  transform: scaleX(.8);
  transition: opacity .4s ease-out, transform .6s ease-out;
}
.fd-arena[data-rarity="3"] .fd-atmosphere::after,
.fd-arena[data-rarity="4"] .fd-atmosphere::after {
  opacity: .24;
}
.fd-arena[data-rarity="3"] .fd-atmosphere::after {
  background: conic-gradient(from 38deg at 50% 65%, transparent 0 9%, #db902a 14%, transparent 19% 62%, #fce5a3 68%, transparent 75%);
  mask-image: radial-gradient(ellipse, transparent 9%, black 60%, transparent 78%);
}
.fd-arena[data-rarity="4"] .fd-atmosphere::after {
  background: radial-gradient(circle closest-side at 50% 47%, #060812 61%, #a5214e 66%, #ffebc9 70%, #fa5b65 73%, #922037 79%, transparent 100%);
  opacity: .9;
}
.fd-arena[data-beat="charge"] .fd-turn { animation: fd-draw var(--draw-time) ease-out both }
.fd-arena[data-beat="pivot"] .fd-turn { animation: fd-pivot var(--pivot-time) cubic-bezier(.55,.02,.82,.44) both }
.fd-arena[data-beat="impact"] .fd-turn { animation: fd-land .48s cubic-bezier(.16,.78,.22,1) both }
.fd-arena[data-beat="impact"] .fd-atmosphere::before { animation: fd-light-fall 1.15s ease-out both }
.fd-arena[data-beat="impact"] .fd-card-mount::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 3%;
  background: linear-gradient(108deg, transparent 40%, #fdf5d645 46%, #fff8e0b3 49%, transparent 57%);
  background-size: 300% 100%;
  animation: fd-card-glint .66s .1s ease-out both;
}
.fd-impact-ring {
  position: absolute;
  inset: 19% 14%;
  opacity: 0;
  border-radius: 50%;
  border: 2px solid var(--foil);
  box-shadow: 0 0 13px var(--foil), inset 0 0 13px var(--foil);
}
.fd-arena[data-beat="impact"] .fd-impact-ring { animation: fd-impact-wave .75s ease-out both }
.fd-arena[data-rarity="0"] .fd-impact-ring { display: none }
.fd-name-in { animation: fd-name-lands .37s ease-out both }
@keyframes fd-draw {
  from { transform: translateY(8%) rotateZ(-6deg) scale(.74); opacity: .4 }
  65% { opacity: 1 }
  to { transform: translateY(-1.5%) rotateY(-13deg) rotateZ(-2deg) scale(.90); opacity: 1 }
}
@keyframes fd-pivot {
  from { transform: translateY(-1.5%) rotateY(-13deg) rotateZ(-2deg) scale(.90) }
  to { transform: rotateY(90deg) scale(.87) }
}
@keyframes fd-land {
  from { transform: rotateY(91deg) scale(.87) }
  61% { transform: rotateY(187deg) scale(1.025) }
  to { transform: rotateY(180deg) scale(1) }
}
@keyframes fd-impact-wave {
  from { transform: scale(.47); opacity: .77 }
  to { transform: scale(1.68); opacity: 0 }
}
@keyframes fd-light-fall {
  from { transform: scaleX(.8); opacity: .6 }
  to { transform: scaleX(1.35); opacity: .18 }
}
@keyframes fd-card-glint {
  from { background-position: 100% 50%; opacity: 0 }
  25% { opacity: .7 }
  to { background-position: 0 50%; opacity: 0 }
}
@keyframes fd-name-lands {
  from { transform: translateY(.19em); opacity: .2 }
  to { transform: none; opacity: 1 }
}
@media (prefers-reduced-motion: reduce) {
  .fd-arena .fd-turn, .fd-arena .fd-atmosphere::before, .fd-arena .fd-impact-ring,
  .fd-arena .fd-card-mount::after, .fd-name-in { animation: none !important; transition: none !important }
  .fd-arena[data-beat="impact"] .fd-turn { transform: rotateY(180deg) }
  .fd-arena[data-beat="impact"] .fd-card-mount::after { display: none }
}

/* The header and card fan each reserve their own grid cell at every width. */
.fd-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
}
.fd-head-copy { min-width: 0; overflow-wrap: anywhere }
.fd-head .fd-go { max-width: 100%; white-space: normal }
.fd-hero-art {
  justify-self:center;
  width:min(100%,22rem);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:.45rem;
  align-items:center;
  padding:.6rem 0;
}
.fd-hero-art img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:2/3;
  object-fit:contain;
  border-radius:4%;
  box-shadow:0 5px 12px #0009;
}

.fd-feature {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template: "copy art" auto "credit art" auto / minmax(0, 1fr) minmax(0, 1.02fr);
  align-content: center;
  column-gap: clamp(1rem, 3vw, 2.4rem);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
  margin: 1rem auto;
  width: 100%;
  max-width: 850px;
  color: #fff;
  border: 1px solid #77948b;
  border-radius: 16px;
  background-color: #08171a;
  background-image: linear-gradient(90deg, #031215f0 0%, #06181abe 40%, #06151a33 68%), url("winter-arena.webp");
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px #c0eee179, 0 8px 24px #0004;
}
.fd-feature::before {
  content: "";
  position: absolute;
  inset: 0 5% auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9fe2be 19%, #fff6cc 50%, #f59f9b 82%, transparent);
  pointer-events: none;
}
.fd-feature-copy { grid-area: copy; align-self: end; min-width: 0; overflow-wrap: anywhere }
.fd-feature .fd-feature-edition {
  color: #f6d995;
  font: 700 .78rem/1.5 ui-monospace, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .55rem;
}
.fd-feature-edition span { color: #a6c6bc; padding-inline: .18em }
.fd-feature h2 {
  margin: 0;
  color: #fff8e9;
  font: italic 950 clamp(2.75rem, 6.6vw, 4.6rem)/.98 system-ui,sans-serif;
  text-transform: uppercase;
  letter-spacing: -.065em;
  text-shadow: 0 2px 12px #0008;
}
.fd-feature .fd-feature-intro { color: #e6eeeb; max-width: 36ch; font-size: 1rem; line-height: 1.5; margin: .85rem 0 1.1rem }
.fd-feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.1rem }
.fd-feature .fd-feature-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .68rem 1.05rem;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  border: 1px solid #ffebae;
  border-radius: 7px;
  color: #191b14;
  background: linear-gradient(160deg,#ffecaf,#d2aa64);
  font: 800 1rem/1.3 system-ui,sans-serif;
  cursor: pointer;
}
.fd-feature-preview::before { content:""; width:0; height:0; border-block: .3rem solid transparent; border-left: .46rem solid currentColor }
.fd-feature-actions a { display: inline-flex; align-items: center; min-height: 44px; color: #f0faf7; font-weight: 700; text-underline-offset: .2em }
.fd-feature .fd-feature-credit { grid-area: credit; justify-self: start; align-self: start; margin-top: .85rem; color: #c8d8d3; text-decoration: none; font-size: .78rem; line-height: 1.5 }
.fd-feature-credit strong { color: #eaf5ed }
.fd-feature :focus-visible { outline: 3px solid #fff4b6; outline-offset: 3px }
.fd-feature-stage {
  grid-area: art;
  width: min(100%, 25rem);
  aspect-ratio: 1 / 1;
  place-self: center;
  display: grid;
  place-items: center;
  grid-template: minmax(0,1fr) / minmax(0,1fr);
  isolation: isolate;
}
.fd-feature .fd-show-card {
  --angle: 0deg;
  --shift: 0%;
  --lift: 0%;
  --scale: 1;
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
  width: 49%;
  border: 0;
  border-radius: 5%;
  padding: 0;
  margin: 0;
  line-height: 0;
  background: transparent;
  box-shadow: 0 7px 16px #000b;
  transform: translate(var(--shift),var(--lift)) rotate(var(--angle)) scale(var(--scale));
}
.fd-feature .fd-show-left { --shift: -40%; --angle: -15deg; --lift: 4%; --scale: .88 }
.fd-feature .fd-show-right { --shift: 40%; --angle: 15deg; --lift: 4%; --scale: .88 }
.fd-feature .fd-show-center { z-index: 1 }
.fd-show-card img { width: 100%; height: auto; display: block; border-radius: inherit; aspect-ratio:2/3 }
@media (prefers-reduced-motion: no-preference) {
  .fd-show-card { transition: transform .22s ease-out }
  .fd-show-center::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(108deg, transparent 40%, #f5fffe4d 48%, #fff8d999 50%, transparent 56%);
    background-size: 300% 100%; animation: fd-feature-foil 1.8s .35s ease-out both;
  }
  @keyframes fd-feature-foil {
    0% { background-position: 100% 50%; opacity: 0 }
    25% { opacity: .85 }
    100% { background-position: 0% 50%; opacity: 0 }
  }
}
@media (max-width: 620px) {
  .fd-head { grid-template-columns: minmax(0,1fr); gap: 1.65rem }
  .fd-hero-art { width: min(100%,22rem) }
  .fd-feature {
    grid-template: "art" auto "copy" auto "credit" auto / minmax(0,1fr);
    gap: 0;
    padding: 1rem clamp(1rem, 5vw, 1.75rem) 1.25rem;
    background-image: linear-gradient(0deg,#031014 4%,#041419ef 42%,#04141a44 67%,#0611161a), url("winter-arena.webp");
    background-position: center, 70% top;
  }
  .fd-feature-stage { width: min(100%,16rem); margin: 0 auto 1.25rem }
  .fd-feature h2 { font-size: clamp(2.65rem, 10vw, 3.65rem) }
  .fd-feature .fd-feature-intro { margin: .65rem 0 .8rem }
}

/* v112: rarity-directed cinema. Motion is local to the arena, never the dialog. */
.fd-preview-label{display:block;margin:0 0 .4rem;font-weight:700;font-size:.9rem;color:#e9dcc0}
#fd-preview-set{display:block;width:min(100%,23rem);margin:0 0 .7rem;padding:.65rem .6rem;min-height:44px;border:1px solid #60716b;border-radius:6px;background:#101c20;color:#fff;font:inherit}
#fd-theater[data-cinema="112"]{width:min(760px,96vw);border-color:#6c777c;background:linear-gradient(150deg,#15222b,#080d14 50%,#1c121a);box-shadow:0 30px 120px #000d,0 0 45px #33445544}
#fd-theater .fd-go{min-height:46px;padding:11px 24px;border:1px solid #ffe8b4;border-radius:7px;color:#191c20;background:linear-gradient(135deg,#fff1c4,#d8b378);font:800 1rem/1.25 system-ui;cursor:pointer;box-shadow:0 3px 15px #0005}
#fd-theater :focus-visible{outline:3px solid #b7faff;outline-offset:3px}
#fd-theater .fd-go:disabled{opacity:.5;cursor:wait}
#fd-theater[data-cinema="112"] .fd-arena{height:clamp(240px,57dvh,510px);background:radial-gradient(ellipse at 50% 65%,#162b3a99,transparent 65%),linear-gradient(#050a12bb,#050a12db),url('winter-arena.webp') center/cover}
#fd-theater[data-cinema="112"] .fd-card-mount{height:82%;max-height:420px;z-index:2}
#fd-theater[data-cinema="112"] .fd-foil{height:86%;max-height:435px;z-index:2}
.fd-rarity-sigil{position:absolute;inset:0;pointer-events:none;opacity:0;z-index:0;transition:opacity .35s ease-out}
.fd-rarity-badge{position:absolute;left:50%;bottom:2%;transform:translateX(-50%);z-index:3;color:var(--foil);text-shadow:0 2px 8px #000;letter-spacing:.22em;font:900 clamp(.75rem,2vw,.95rem)/1.5 system-ui;text-transform:uppercase;opacity:0;white-space:nowrap;pointer-events:none}
.fd-arena[data-beat="impact"] .fd-rarity-badge{animation:fd-badge-lands .65s .2s both}
.fd-arena[data-beat="charge"] .fd-rarity-sigil,.fd-arena[data-beat="pivot"] .fd-rarity-sigil{opacity:.6;animation:fd-charge-sigil var(--charge-time) ease-in both}
.fd-arena[data-beat="impact"] .fd-rarity-sigil{opacity:.8}
/* Silver: crisp stadium impact, with a restrained halo. */
.fd-arena[data-rarity="0"] .fd-rarity-sigil{background:radial-gradient(ellipse at 50% 60%,transparent 25%,#b2d5eb22 45%,transparent 65%)}
/* Emerald: energetic diagonal light trails. */
.fd-arena[data-rarity="1"] .fd-rarity-sigil{background:repeating-conic-gradient(from 35deg at 50% 55%,transparent 0 43deg,#3df6a655 44deg 46deg,transparent 48deg 90deg);mask-image:radial-gradient(ellipse,transparent 20%,#000 50%,transparent 75%)}
/* Violet: concentric energy fields. */
.fd-arena[data-rarity="2"] .fd-rarity-sigil{background:repeating-radial-gradient(ellipse at 50% 52%,transparent 0 40px,#be85ff66 43px,transparent 47px 80px);mask-image:radial-gradient(ellipse,transparent 17%,#000 43%,transparent 77%)}
/* Gold: a broad sunburst fanfare. */
.fd-arena[data-rarity="3"] .fd-rarity-sigil{background:repeating-conic-gradient(from -8deg at 50% 55%,transparent 0 14deg,#ffd47777 16deg,transparent 19deg 30deg);mask-image:radial-gradient(ellipse,transparent 12%,#000 44%,transparent 76%)}
/* Crimson: a single eclipse, not a strobe. */
.fd-arena[data-rarity="4"] .fd-rarity-sigil{background:radial-gradient(circle closest-side at 50% 49%,#090a18 52%,#ffecb8 55%,#ff6078 59%,#9b153c88 65%,transparent 85%)}
.fd-arena[data-beat="impact"][data-rarity="1"] .fd-rarity-sigil{animation:fd-energy-turn 2s ease-out both}
.fd-arena[data-beat="impact"][data-rarity="2"] .fd-rarity-sigil{animation:fd-violet-wave 1.5s ease-out both}
.fd-arena[data-beat="impact"][data-rarity="3"] .fd-rarity-sigil{animation:fd-gold-rise 2.1s ease-out both}
.fd-arena[data-beat="impact"][data-rarity="4"] .fd-rarity-sigil{animation:fd-eclipse-rise 2.5s ease-out both}
.fd-arena[data-rarity="3"] .fd-card-mount:before{opacity:.65;inset:0 -12%;background:radial-gradient(ellipse,#ffd47777,transparent 70%)}
.fd-arena[data-rarity="4"] .fd-card-mount:before{opacity:.8}
.fd-arena[data-beat="impact"] .fd-impact-echo{animation:fd-impact-wave 1.1s .14s ease-out both;border-width:1px}
.fd-arena[data-rarity="0"] .fd-impact-echo,.fd-arena[data-rarity="1"] .fd-impact-echo{display:none}
.fd-arena[data-beat="impact"] .fd-turn{animation:fd-land .52s cubic-bezier(.16,.78,.22,1) both}
.fd-arena[data-rarity="3"][data-beat="impact"] .fd-turn,.fd-arena[data-rarity="4"][data-beat="impact"] .fd-turn{animation-duration:.7s}
.fd-arena[data-beat="tear"] .fd-spotlight{animation:fd-seal-light .9s ease-out both}
.is-torn .fd-wrapper-top{animation-duration:.85s}.is-torn .fd-wrapper-bottom{animation-duration:.85s}
.fd-spark{animation-duration:1.15s;width:3px;height:11px}
.fd-arena[data-rarity="2"] .fd-spark{border-radius:0;transform:rotate(45deg)}
.fd-arena[data-rarity="3"] .fd-spark{width:4px;height:4px;border-radius:50%}
.fd-arena[data-rarity="4"] .fd-spark{width:3px;height:13px;box-shadow:0 0 9px #ff6078}
.fd-arena[data-beat="summary"] .fd-rarity-sigil,.fd-arena[data-beat="summary"] .fd-rarity-badge{display:none}
.fd-recap-card{animation:fd-recap-in .5s ease-out both}.fd-recap-card:nth-child(2){animation-delay:.1s}.fd-recap-card:nth-child(3){animation-delay:.2s}
@keyframes fd-charge-sigil{from{transform:scale(.7);opacity:.1}to{transform:scale(1);opacity:.65}}
@keyframes fd-energy-turn{from{transform:rotate(-24deg) scale(.85);opacity:.9}to{transform:rotate(9deg) scale(1.1);opacity:.45}}
@keyframes fd-violet-wave{from{transform:scale(.7);opacity:.9}to{transform:scale(1.3);opacity:.4}}
@keyframes fd-gold-rise{from{transform:rotate(-12deg) scale(.8);opacity:1}to{transform:rotate(8deg) scale(1.15);opacity:.6}}
@keyframes fd-eclipse-rise{from{transform:scale(.75);opacity:.4}40%{opacity:1}to{transform:scale(1.35);opacity:.85}}
@keyframes fd-badge-lands{from{transform:translate(-50%,8px);opacity:0}to{transform:translate(-50%,0);opacity:1}}
@keyframes fd-seal-light{from{opacity:.2}35%{opacity:.8}to{opacity:.33}}
@keyframes fd-recap-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(max-width:460px){#fd-theater[data-cinema="112"] .fd-arena{height:clamp(230px,54dvh,440px)}.fd-cinema-kicker{letter-spacing:.04em}.fd-cinema-bar{flex-wrap:wrap}.fd-cinema-kicker{flex:1 1 100%}.fd-cinema-bar .fd-quiet{flex:1}.fd-cinema-controls .fd-go{flex:1}.fd-cinema-title{font-size:1.65rem}}
@media(max-height:500px){#fd-theater[data-cinema="112"] .fd-arena{height:44dvh;min-height:130px}.fd-rarity-badge{font-size:.7rem}.fd-cinema-bar{flex-wrap:nowrap}.fd-cinema-kicker{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){
 #fd-theater *,#fd-theater *:before,#fd-theater *:after{animation:none!important;transition:none!important}
 .fd-rarity-sigil{display:none}.fd-arena[data-beat="impact"] .fd-rarity-badge{opacity:1}
 .fd-arena[data-beat="impact"] .fd-turn{transform:rotateY(180deg)}
 .fd-fx,.fd-impact-ring{display:none}
}

/* Let the homepage binder link cover the entire graphic. */
.fd-feature-actions .fd-feature-entry { position: static; }
.fd-feature-entry::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fd-feature-entry:focus-visible::after { inset: 5px; border-radius: 12px; outline: 3px solid #fff4b6; }
.fd-feature-actions button,
.fd-feature-actions a:not(.fd-feature-entry),
.fd-feature .fd-feature-credit { position: relative; z-index: 2; }
@media (hover: hover) {
  .fd-feature:has(.fd-feature-entry:hover) .fd-show-center { --lift: -2%; --scale: 1.015; }
}

.fd-binder-nav {
  margin: 1rem 0;
  border: 1px solid #41444f;
  border-radius: 12px;
  background: #191a20;
}
.fd-binder-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px;
}
.fd-binder-tabs .fd-binder-tab {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: .55rem .35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ebeaf0;
  font-size: clamp(.78rem, 2.6vw, .95rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.fd-binder-tabs .fd-binder-tab[aria-current="page"] {
  background: #253b35;
  border-color: #66897c;
  color: #f7fff8;
}
.fd-binder-tabs .fd-binder-tab:hover { background: #333b3d; }
.fd-binder-tools { border-top: 1px solid #41444f; }
.fd-binder-tools summary {
  display: list-item;
  min-height: 44px;
  padding: .7rem .85rem;
  color: #e5e1ec;
  font-size: .875rem;
  cursor: pointer;
}
.fd-binder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding: 0 .55rem .55rem;
}
.fd-binder-actions button {
  min-height: 44px;
  padding: .45rem .65rem;
  background: #25262e;
  border: 1px solid #41444f;
  border-radius: 7px;
  color: #f5f2f7;
  font-size: .85rem;
}
.fd-binder-nav :focus-visible { outline: 2px solid #fff4b6; outline-offset: -2px; }
