
*{box-sizing:border-box}
:root{color-scheme:dark;font:500 16px/1.3 system-ui,sans-serif;color:#fbf3e3;background:#16131a}
body{margin:0;min-height:100vh;min-height:100dvh;display:grid;place-items:center;background:radial-gradient(ellipse at 52% 29%,#443039 0%,#251c26 46%,#16131a 81%)}
button,a{-webkit-tap-highlight-color:transparent;font:inherit}
button:focus-visible,a:focus-visible{outline:2px solid #fff3cd;outline-offset:3px}
.shell{width:min(100%,465px);padding:14px 17px max(14px,env(safe-area-inset-bottom));display:grid;gap:12px;min-width:0}
header,footer{display:flex;align-items:center;gap:8px;min-width:0}
.logo{width:35px;height:35px;object-fit:contain}
.brand{font:850 .94rem/1 system-ui,sans-serif;letter-spacing:.015em;white-space:nowrap}
.website-back{margin-inline-start:auto;display:inline-flex;align-items:center;min-height:44px;padding-inline:8px;color:inherit;font-size:.82rem;font-weight:750}
#you-badge{--seat:#ff365f}
#you-line{--turn-color:#ff365f}
#jules-line{--turn-color:#ffc43d}
#jules-badge{--seat:#ffc43d}
.languages{display:flex;gap:2px;padding:3px;border:1px solid #5b494d;border-radius:999px;margin-left:auto;background:#1c1723}
.locale{min-width:32px;min-height:28px;padding:0 5px;color:#dbccc4;background:transparent;border:0;border-radius:999px;font-size:.69rem;font-weight:800;cursor:pointer}
.locale[aria-pressed=true]{color:#ffe2a6;background:#49323a}
.demo-gameplay{display:contents}
.board-area{min-width:0;display:grid;gap:8px}
.badges{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;font-weight:800;font-size:.78rem}
.badge{position:relative;display:flex;align-items:center;gap:8px;min-width:83px;color:#f9eeda}
.badge:last-child{justify-content:flex-end}
.badge[data-active=true]{color:#ffe2a6}
.dot{width:10px;height:10px;border-radius:50%;background:var(--seat);box-shadow:0 0 0 2px #201925,0 0 0 3px color-mix(in srgb,var(--seat) 45%,transparent)}
.turn-line{height:1px;min-width:10px;flex:1;background:linear-gradient(90deg,#a77a5c33,#ca9c6e99,#a77a5c33)}
.turn-line[data-active=true]{height:2px;background:linear-gradient(90deg,var(--turn-color),transparent)}
.turn-line[data-active=true]:nth-last-child(2){background:linear-gradient(270deg,var(--turn-color),transparent)}
.frame{padding:6px;border:1px solid #a27853;border-radius:16px;background:linear-gradient(145deg,#80644d 0,#452d29 14%,#382621 74%,#5c3c2d);box-shadow:0 5px 0 #21151a,0 7px 0 #100d13,0 18px 38px #100b137d}
#board{isolation:isolate;position:relative;width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(15,minmax(0,1fr));grid-template-rows:repeat(15,minmax(0,1fr));gap:1px;border:1px solid #30201d;border-radius:9px;background:#573e39;overflow:hidden}
.tile{display:grid;place-items:center;background:#f4e8d1;color:#795c3a;font-weight:850;font-size:clamp(7px,2.5vw,15px)}
.tile.lane{background:color-mix(in srgb,var(--seat) 85%,#77413e);color:#241c20}
.home{z-index:1;background:color-mix(in srgb,var(--seat) 84%,#553238);padding:5%;display:grid}
.yard{position:relative;border:1px solid #382926;border-radius:7px;background:linear-gradient(140deg,#fff5de,#e9d9bc);color:#37282a;display:grid;justify-items:center;align-content:end;gap:3px;padding:3px 5% 6%;overflow:hidden}
.slots{position:absolute;inset:10% 18% 32%;display:grid;grid-template:repeat(2,1fr)/repeat(2,1fr);place-items:center;gap:5%}
.slots i{width:69%;aspect-ratio:1;border:1px solid #927052;border-radius:50%;background:#eddcbf;box-shadow:inset 0 2px 2px #82604230,0 1px 0 #fff8e7}
.jail-label{font-size:clamp(8px,2.3vw,11px);font-weight:850}
.jail{width:94%;height:13%;min-height:12px;display:grid;grid-template-columns:repeat(4,1fr);background:#30262a;border:1px solid #261c22;border-radius:4px;color:#d9bea0;text-align:center;font-size:8px;line-height:1;transition:box-shadow .16s}
.jail.flash{box-shadow:0 0 0 2px #ffd37f,0 0 12px #e79950}
.jail span{display:grid;place-items:center;border-inline-end:1px solid #98775d}
.jail span:last-child{border:none}
.center{position:relative;z-index:1;background:conic-gradient(from 45deg,#27c77d 0 25%,#599de6 0 50%,#f74868 0 75%,#f2bd5a 0)}
.finished{position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);width:clamp(13px,36%,22px);aspect-ratio:1;border:1.5px solid #30201d;border-radius:50%;background:#fff5e2;color:#30201d;font-size:clamp(.58rem,2.8vw,.86rem);font-weight:850}
.pawn,.target,.trail{position:absolute;transform:translate(-50%,-50%);border-radius:50%;padding:0;aspect-ratio:1}
.pawn{z-index:3;display:grid;place-items:center;width:clamp(14px,5.4%,24px);background:var(--seat);border:2px solid #282029;box-shadow:0 2px 0 #21131a74}
.pawn.moving{z-index:5}
.moonwalk-emoji{
 position:absolute;
 z-index:6;
 width:30px;
 height:30px;
 transform:translate(-50%,calc(-100% - 7px));
 object-fit:contain;
 filter:drop-shadow(0 2px 2px #0008);
 pointer-events:none;
}
#board:has(.pawn.moving) .moonwalk-emoji{animation:moonwalk-bounce .28s ease-in-out infinite}
@keyframes moonwalk-bounce{
 0%,50%,100%{translate:-1.5px 0}
 25%,75%{translate:1.5px -2px}
}
.pawn.action,.target{cursor:pointer;isolation:isolate}
.pawn.action:after,.target:after{content:"";position:absolute;inset:-10px;border-radius:50%}
.pawn.action{touch-action:manipulation}
.pawn.action[aria-pressed=false]{outline:1px solid #fff4c0;outline-offset:2px;animation:hint 1.15s ease-in-out infinite alternate}
.pawn.selected{border:3px solid #c58b32;outline:0;box-shadow:0 0 0 3px #f8ebd2,0 0 0 5px #c58b32,0 0 0 7px #151318;animation:none}
.pawn.selected:focus-visible{outline:2px dashed #fff6dc;outline-offset:8px}
.target{z-index:4;width:clamp(20px,6.45%,30px);border:2px solid #744425;background:#f3c6794d;color:#38201b;font-weight:850;font-size:clamp(10px,3vw,16px);animation:hint 1.15s ease-in-out infinite alternate}
.target.over-pawn{background:transparent;border-color:#8d263d;box-shadow:0 0 0 2px #fff0b5}
.trail{z-index:2;display:grid;place-items:center;width:clamp(11px,4%,18px);transform:translate(-50%,-50%) rotate(var(--direction));background:#693a31;color:#fff3dc;pointer-events:none}
.trail::before,.trail::after{content:"";grid-area:1/1;box-sizing:border-box}
.trail::before{width:48%;height:2px;background:currentColor}
.trail::after{width:33%;aspect-ratio:1;transform:translateX(20%) rotate(45deg);border-top:2px solid;border-right:2px solid}
.trail.backward{background:#8d263d}
@keyframes hint{to{box-shadow:0 0 0 5px #eaa653a8}}
#react{position:absolute;z-index:7;right:0;top:calc(100% + 7px);font-size:1.65rem;line-height:1;padding:6px 8px;background:#2a1f2a;border:1px solid #d5a25d;border-radius:12px;box-shadow:0 7px 16px #0006;animation:react .22s ease-out}
#react::before{content:"";position:absolute;right:13px;top:-4px;width:7px;height:7px;border-top:1px solid #d5a25d;border-left:1px solid #d5a25d;background:inherit;transform:rotate(45deg)}
.reaction-sticker{display:block;width:clamp(52px,16vw,70px);height:clamp(52px,16vw,70px);object-fit:contain}
#inferno-reaction{animation:inferno-shake .28s .15s ease-in-out}
#revenge-reaction{animation:royal-laugh .32s .15s ease-in-out}
@keyframes inferno-shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@keyframes royal-laugh{25%{transform:rotate(-6deg) scale(1.07)}60%{transform:rotate(5deg) scale(1.04)}}
@keyframes react{from{opacity:0;transform:translateY(-5px) scale(.75)}}
.controls{min-width:0;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #765745;border-radius:14px;background:linear-gradient(145deg,#362735,#211a27);box-shadow:0 5px 16px #1c121a57}
.instruction{min-height:57px;min-width:0;flex:1;display:grid;align-content:center;gap:3px}
.instruction strong{font:700 italic clamp(1.05rem,4.8vw,1.52rem)/1.02 Georgia,serif;color:#fff1d4}
.instruction span{font-size:.75rem;color:#dfcfc3}
.actions{position:relative;display:flex;align-items:center}
.tap-hint{position:absolute;z-index:1;width:clamp(35px,11vw,46px);height:auto;pointer-events:none;transform:rotate(-34deg);filter:drop-shadow(0 2px 2px #37241d55);animation:tap-hint-nudge 1.35s ease-in-out infinite}
.actions>.tap-hint{top:calc(100% - 13px);right:-9px}
.pawn>.tap-hint{top:calc(50% - 4px);left:calc(50% - 4px)}
.target>.tap-hint,.recover-action>.tap-hint{top:calc(100% - 12px);left:calc(50% - 4px)}
@keyframes tap-hint-nudge{
 35%{opacity:.25}
 68%{opacity:1;transform:translate(-4px,-5px) rotate(-34deg) scale(.95)}
}
.dice{min-width:78px;height:45px;display:grid;place-content:center;justify-items:center;gap:0;padding:0 7px;color:#f6d593;background:#241c28;border:1px solid #755746;border-radius:9px;font-weight:850;font-size:.65rem}
.dice:enabled{background:linear-gradient(180deg,#ffdc91,#edb663);color:#2d1b18;border-color:#ffe2a7;box-shadow:0 2px 0 #a56537,0 0 16px #f9ad491d;cursor:pointer}
.faces{display:flex;gap:3px;min-height:20px}
.face{display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);place-items:center;width:20px;height:20px;padding:2px;border:1px solid #806048;border-radius:4px;background:#fff2d9;color:#35242a}
.face i{width:2.6px;height:2.6px;border-radius:50%;background:currentColor}
.dice:enabled .face{border-color:#b38150}
.dice:not(:enabled) .face{background:#f3dec3}
.dice[data-player=jules] .face{background:#ffe8a4;border-color:#9b6925}
.face.spent{position:relative;opacity:.47}
.face.spent::after{content:"";position:absolute;width:120%;height:1.5px;background:currentColor;transform:rotate(-45deg)}
.dice.rolling .face:last-child{animation:roll .44s ease-out}
@keyframes roll{0%{transform:rotate(-25deg) scale(1.25)}45%{transform:rotate(14deg) scale(.9)}100%{transform:rotate(0) scale(1)}}
.mic{flex:0 0 auto;position:relative;width:31px;height:31px;border:1px solid #78616a;border-radius:50%;background:#2b2131;display:grid;place-items:center;color:#d8c7cf}
.mic i{display:block;width:7px;height:11px;border:1.5px solid currentColor;border-radius:6px;position:relative;margin-top:-3px}
.mic i:before{content:"";position:absolute;left:-4px;right:-4px;top:3px;height:8px;border:1.5px solid currentColor;border-top:0;border-radius:0 0 6px 6px}
.mic:after{content:"";position:absolute;width:18px;height:1.5px;transform:rotate(45deg);border-radius:2px;background:currentColor;box-shadow:0 -2px #2b2131}
footer{justify-content:space-between}
.demo-tools{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.demo-tools button{min-height:44px;padding:0 14px;border:1px solid #bda98e;border-radius:999px;background:#fff8eb;color:#302126;font-size:.85rem;font-weight:750;cursor:pointer}
[hidden]{display:none!important}
@media (min-height:691px) and (orientation:portrait){
 .shell:not(.poster-visible){
  --board-width:min(calc(100vw - 34px),431px);
  width:min(100%,640px);
  height:100vh;
  height:100dvh;
  padding:max(16px,env(safe-area-inset-top)) clamp(16px,4vw,26px) max(16px,env(safe-area-inset-bottom));
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:0;
 }
 .shell:not(.poster-visible)>header{padding-bottom:14px;gap:10px}
 .shell:not(.poster-visible) .logo{width:42px;height:42px}
 .shell:not(.poster-visible) .brand{font-size:clamp(1rem,4vw,1.28rem)}
 .shell:not(.poster-visible) .demo-gameplay{display:flex;flex-direction:column;justify-content:center;min-height:0}
 .shell:not(.poster-visible) .board-area{display:contents}
 .shell:not(.poster-visible) .badges{flex:none;font-size:clamp(.8rem,3.1vw,.95rem)}
 .shell:not(.poster-visible) .board-space{
  flex:0 1 var(--board-width);
  min-height:0;
  margin-top:10px;
  container-type:size;
  display:grid;
  place-items:center;
 }
 .shell:not(.poster-visible) .frame{
  width:min(100%,var(--board-width),calc(100vh - 320px));
  width:min(100%,var(--board-width),100cqh);
 }
 .shell:not(.poster-visible) .controls{flex:none;margin-top:clamp(14px,2.3vh,22px);padding:clamp(12px,3.2vw,19px)}
 .shell:not(.poster-visible) .instruction strong{font-size:clamp(1.15rem,5vw,1.8rem)}
 .shell:not(.poster-visible) .instruction span{font-size:clamp(.8rem,2.9vw,.96rem)}
 .shell:not(.poster-visible) .dice{min-width:clamp(82px,21vw,112px);height:clamp(48px,12.5vw,64px);font-size:.75rem}
 .shell:not(.poster-visible)>footer{padding-top:16px}
 .shell:not(.poster-visible) .demo-tools{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
 .shell:not(.poster-visible) .demo-tools button{min-height:50px}
}
@media(max-height:690px) and (orientation:portrait){
 .shell:not(.poster-visible){
  height:min(100svh,calc(100vw + 220px),685px);
  height:min(100dvh,calc(100vw + 220px),685px);
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(0,1fr) auto auto;
  gap:10px;
  padding:10px 12px max(10px,env(safe-area-inset-bottom));
 }
 .board-area{grid-template-rows:auto minmax(0,1fr);gap:6px}
 .board-space{container-type:size;display:grid;place-items:center;min-height:0}
 .board-space .frame{width:min(100%,calc(100vh - 220px));width:min(100%,100cqh)}
 .instruction{min-height:54px}
 .controls{padding:9px}
 @container (max-height:230px){
  .slots{inset-block-end:44%}
  .slots i{width:min(69%,6cqh)}
  .jail-label{font-size:clamp(6px,4.2cqh,10px);line-height:1}
 }
}
@media(orientation:landscape){.shell{width:min(100%,785px);grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);grid-template-rows:auto 1fr auto;grid-template-areas:"header header" "controls board" "footer board";gap:10px 25px;padding:11px 19px}.shell header{grid-area:header}.board-area{grid-area:board;width:min(100%,calc(100svh - 114px));justify-self:center}.controls{grid-area:controls;align-self:center}.shell footer{grid-area:footer;align-self:start}.jail-label{font-size:clamp(7px,2.4vh,11px)}}
@media(max-width:340px) and (orientation:portrait){.shell{padding-inline:10px}.controls{padding-inline:8px}.dice{min-width:63px}.badge{min-width:63px}}
html[data-theme=day]{color-scheme:light;background:#efe5d3;color:#342624}
html[data-theme=day] body{background:radial-gradient(ellipse at 56% 26%,#fff8e9,#f0e4d0 59%,#e4cdb2)}
html[data-theme=day] .languages{background:#f7ecda;border-color:#b69a7d}
html[data-theme=day] .locale{color:#5e4137}
html[data-theme=day] .locale[aria-pressed=true]{background:#683c36;color:#fff6e7}
html[data-theme=day] .badge{color:#3c2b2b}
html[data-theme=day] .badge[data-active=true]{color:#743d2d}
html[data-theme=day] .dot{box-shadow:0 0 0 2px #f8ebd6,0 0 0 3px #9b7158}
html[data-theme=day] .turn-line{background:#ad8a75}
html[data-theme=day] .turn-line[data-active=true]{background:linear-gradient(90deg,var(--turn-color),#ad8a75)}
html[data-theme=day] .turn-line[data-active=true]:nth-last-child(2){background:linear-gradient(270deg,var(--turn-color),#ad8a75)}
html[data-theme=day] .mic{background:#f6e8d4;border-color:#b49583;color:#604743}
html[data-theme=day] .mic:after{box-shadow:0 -2px #f6e8d4}
html[data-theme=day] .frame{border-color:#9b6748;background:linear-gradient(135deg,#c68d61,#9a573b);box-shadow:0 5px 0 #74402f,0 7px 0 #3d2820,0 14px 30px #6b40384d}
html[data-theme=day] .controls{background:#fff3df;border-color:#b99075;box-shadow:0 4px 10px #8e64422e}
html[data-theme=day] .instruction strong{color:#512d29}
html[data-theme=day] .instruction span{color:#62493f}
html[data-theme=day] .dice:disabled{background:#f1e2ce;border-color:#ae826a;color:#594135}
html[data-theme=day] .dice:enabled{background:#a14037;border-color:#933a34;color:#fff8ed}
html[data-theme=day] button:focus-visible,html[data-theme=day] a:focus-visible{outline-color:#5c3838}
@media(prefers-reduced-motion:reduce){*,*::after{animation:none!important;transition:none!important}}

@media(max-height:540px) and (orientation:portrait){
 .shell:not(.poster-visible){gap:8px}
 .board-area{gap:4px}
 .controls{padding-block:6px}
}
@media(max-height:420px) and (orientation:landscape){
 .shell{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px;padding:8px 16px 16px}
 .board-area{grid-template-columns:minmax(0,1fr);width:min(100%,calc(100svh - 110px));gap:6px}
 .controls{display:grid;justify-items:start;gap:6px;padding:8px}
 .instruction{min-height:0}
 .badge{min-width:64px}
}

@media (min-width: 820px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
 .shell:not(.poster-visible) {
  --desktop-board-width: min(422px, calc(100vw - 428px), calc(100svh - 114px));
  width: min(100%, 1120px);
  grid-template-columns: minmax(0, 1fr) var(--desktop-board-width) minmax(0, 1fr);
  grid-template-rows: auto 1fr 1fr;
  grid-template-areas:
   ". header ."
   "controls board ."
   "footer board .";
 }
 .shell:not(.poster-visible) > header { justify-content: center; }
 .shell:not(.poster-visible) .board-area { width: 100%; }
 .shell:not(.poster-visible) .controls { align-self: end; }
}



.shell.poster-visible {
  width: min(100%, 640px);
  height: 100vh;
  height: 100dvh;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "header" "poster" "footer";
  padding: max(14px, env(safe-area-inset-top)) clamp(12px, 4vw, 26px) max(18px, env(safe-area-inset-bottom));
  gap: clamp(8px, 1.8dvh, 18px);
}

.shell.poster-visible .board-area,
.shell.poster-visible .controls {
  display: none;
}

.poster-visible header {
  grid-area: header;
  justify-content: center;
  gap: 7px;
}

.poster-visible .brand {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.poster-visible .logo {
  width: 29px;
  height: 29px;
}

.finish-poster {
  grid-area: poster;
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(8px, 2dvh, 20px);
  text-align: center;
}

.finish-poster h1 {
  max-width: 13em;
  margin: 0 auto;
  color: #322323;
  font: 700 clamp(1.68rem, 8.5vw, 2.9rem)/1.02 Georgia, serif;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.poster-graffiti {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: max(0px, calc((100% - 430px) / 2));
  width: clamp(26px, calc((100vw - 245px) / 2 - 15px), 56px);
  height: auto;
  opacity: .46;
  pointer-events: none;
  user-select: none;
}

.poster-trio {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(5px, 1.35dvh, 12px);
  min-height: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.poster-trio li {
  display: grid;
  grid-template-columns: minmax(98px, 29%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #a287735c;
  border-radius: 12px;
  background: #fff9ed;
  box-shadow: 0 3px 10px #60432b12;
  text-align: left;
}

.poster-trio img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
}

.poster-voice img { background: #111316; }
.poster-final img { background: #0b121c; }

.poster-invite-media {
  grid-area: 1 / 2;
  display: grid;
  place-items: center;
  container-type: size;
  background: #19191f;
}

/* Keep the dark room panel inside the 560 × 232 capture in both languages. */
.poster-invite-crop {
  position: relative;
  width: min(100%, calc(100cqh * 536 / 190));
  aspect-ratio: 536 / 190;
  overflow: hidden;
}

.poster-invite-crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% * 560 / 536);
  height: auto;
  transform: translate(-2.14%, -9.48%);
}

.poster-caption {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 6px clamp(8px, 2.65vw, 14px);
}

.poster-tag {
  color: #79483b;
  font-size: .61rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .065em;
  line-height: 1.15;
}

.poster-label {
  color: #342624;
  font-size: clamp(.84rem, 3.7vw, 1.18rem);
  font-weight: 820;
  line-height: 1.12;
  text-wrap: pretty;
}

.poster-visible footer {
  grid-area: footer;
  display: grid;
  justify-content: stretch;
  justify-items: center;
  padding: 4px;
}

.poster-visible #play {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(100%, 410px);
  min-height: 48px;
  padding: 9px 20px;
  border: 1px solid #a27020;
  border-radius: 8px;
  background: #b98227;
  color: #211510;
  font-weight: 900;
  font-size: clamp(.93rem, 3.5vw, 1.08rem);
  cursor: pointer;
}

.poster-visible #play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid #b98227;
  border-radius: 12px;
  pointer-events: none;
  animation: poster-play-pulse 1.24s ease-in-out infinite;
}

@keyframes poster-play-pulse {
  0%, 100% { opacity: .52; box-shadow: 0 0 0 0 #b9822740; }
  50% { opacity: 1; box-shadow: 0 0 0 4px #b9822738, 0 0 15px #b9822759; }
}

.poster-visible #play > .tap-hint {
  top: calc(100% - 24px);
  right: 1px;
  width: 32px;
  animation: none;
}

@media (min-height: 730px) and (orientation: portrait), (orientation: landscape) {
  .poster-trio li {
    grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  }

  .poster-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    padding-block: clamp(8px, 1.2dvh, 14px);
  }

  .poster-tag { font-size: .7rem; }
  .poster-trio img { grid-area: 2 / 1; }
  .poster-invite-media { grid-area: 2 / 1; }
}

@media (min-height: 730px) and (max-aspect-ratio: 3/4) {
  .poster-trio {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .poster-trio .poster-voice,
  .poster-trio .poster-invite { grid-template-rows: auto auto; }
  .poster-voice img { height: auto; }
  .poster-invite-media { container-type: normal; }
  .poster-invite-crop { width: 100%; }
}

@media (max-height: 530px) and (orientation: portrait) {
  .shell.poster-visible { padding-block: 9px 13px; }
  .finish-poster h1 { font-size: clamp(1.62rem, 7vw, 2.2rem); }
}

@media (orientation: landscape) {
  .shell.poster-visible { width: min(100%, 1000px); }
  .poster-trio {
    grid-template: minmax(0, 1fr) / repeat(3, minmax(0, 1fr));
    height: 100%;
    max-height: 330px;
    align-self: center;
  }

  .finish-poster h1 { max-width: none; }
}

@media (min-width: 820px) and (min-height: 480px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .shell.poster-visible {
    grid-template-rows: auto minmax(12px, 1fr) auto auto minmax(0, 1fr);
    grid-template-areas: "header" "." "poster" "footer" ".";
    padding-block: clamp(14px, 3.6dvh, 28px) clamp(18px, 4dvh, 34px);
    gap: 0;
  }

  .finish-poster { grid-template-rows: auto auto; gap: clamp(18px, 3.2dvh, 28px); }
  .finish-poster h1 { font-size: clamp(2rem, 6.4dvh, 2.9rem); }

  .poster-trio {
    grid-template-rows: auto;
    height: auto;
    max-height: none;
    align-items: start;
    gap: clamp(12px, 2.5dvh, 20px);
  }

  .poster-trio li { grid-template-rows: auto auto; }
  .poster-voice img,
  .poster-final img { height: auto; }
  .poster-invite-media { container-type: normal; }
  .poster-invite-crop { width: 100%; }
  .poster-visible footer { margin-top: clamp(18px, 4dvh, 40px); }
}

@media (min-width: 820px) and (min-height: 520px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .shell.poster-visible { width: min(100%, 740px); }
  .poster-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1.29fr); }
  .poster-final { grid-area: 1 / 2 / span 2; }
}

@media (min-width: 960px) and (min-height: 520px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .poster-graffiti {
    inset-block-start: 42%;
    inset-inline-end: auto;
    inset-inline-start: calc(100% + clamp(18px, 2.7vw, 40px));
    width: clamp(56px, calc((100vw - 740px) / 2 - 42px), 156px);
    opacity: .52;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .shell.poster-visible { padding-block: 8px 12px; }
  .finish-poster h1 { font-size: clamp(1.35rem, 6.5svh, 2.2rem); }
  .poster-caption { padding: 5px 8px; }
  .poster-tag { font-size: .59rem; }
  .poster-label { font-size: .79rem; }
}
 
.recover-action{position:absolute;z-index:12;transform:translate(-50%,-100%);display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid #8a663c;border-radius:12px;background:#25202b;color:#fff8ed;font:700 13px system-ui;white-space:nowrap;cursor:pointer}
.recover-action svg{flex:none;color:#f4cd87}
