#first-shot{
  position:fixed;inset:0;z-index:45;display:grid;place-items:safe center;overflow-y:auto;overscroll-behavior:contain;
  background:radial-gradient(ellipse at 50% 47%,#194036 0,#132a2c 37%,#101e28 64%,#0b1420 100%);color:#f7f2df;
  padding:max(12px,var(--safe-top)) max(12px,var(--safe-right)) max(12px,var(--safe-bottom)) max(12px,var(--safe-left));
}
.first-wrap{width:min(100%,480px);display:grid;justify-items:stretch;gap:clamp(8px,2dvh,19px);margin:auto}
.first-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.first-head h1{font:italic 900 clamp(32px,min(9vw,7dvh),54px)/1 ArenaDisplay,Impact,sans-serif;letter-spacing:.015em;margin:0;color:#fff3c4}
.first-head h1:focus{outline:none}
.first-skip{min-width:52px;min-height:46px;border:1px solid #496269;border-radius:13px;background:#15272b;color:#e1ebe7;font:700 15px ArenaLabel,sans-serif}
.first-play{display:grid;place-items:center;min-width:0}
.first-field{position:relative;direction:ltr;width:min(100%,clamp(180px,61dvh,535px));aspect-ratio:768/680;isolation:isolate;touch-action:none;user-select:none;-webkit-touch-callout:none;
  background:#537961 url('art/walnut.jpg') center/100% 100%;background-image:url('art/walnut.jpg'),repeating-conic-gradient(#608970 0 25%,#41684f 0 50%);background-size:100% 100%,25% 25%;border-radius:8px;overflow:hidden}
.first-field.baked{background:none}
.first-field .first-ink{pointer-events:none;position:absolute;inset:0;width:100%;height:100%}
.first-piece{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;touch-action:none;width:clamp(47px,13%,71px);height:clamp(47px,16%,80px);min-width:0;min-height:0;background:transparent;border:0;box-shadow:none;padding:0;border-radius:50%;z-index:2}
.first-piece[hidden]{display:none}
.first-piece img{width:100%;height:100%;object-fit:contain;pointer-events:none}
.first-field.baked .first-piece img{visibility:hidden}
.first-field:not(.baked) .first-piece[data-glyph]::after{content:attr(data-glyph);font-size:40px;color:#fff4cf;text-shadow:0 1px 3px #172c2a}
.first-field:not(.baked) .first-piece[data-first-piece="1"]::after{color:#192b32;text-shadow:0 1px 2px #f4eac5}
.first-piece:focus-visible{outline:3px solid #fff1a2;outline-offset:-2px}
.first-controls{display:grid;justify-items:center;gap:clamp(9px,2dvh,17px);text-align:center}
.first-controls p{margin:0;max-width:32ch;color:#e2ebe5;font:600 clamp(15px,3.8vw,19px)/1.35 DM,sans-serif;text-wrap:pretty}
.first-action{min-height:48px;border:1.5px solid #b1edd6;border-radius:14px;padding:8px 23px;background:linear-gradient(#38d7a2,#099565);box-shadow:0 3px 0 #075543;color:#062b20;font:850 clamp(17px,4vw,20px) ArenaLabel,sans-serif}
.first-action:disabled{opacity:.55}
#first-shot[data-phase="won"] .first-head h1{color:#ffe38d}
@media(orientation:landscape) and (max-height:550px){
  .first-wrap{width:min(100%,825px);grid-template-columns:minmax(0,1.25fr) minmax(155px,.85fr);grid-template-rows:auto 1fr;align-items:center;gap:8px 18px}
  .first-play{grid-row:1 / 3;grid-column:1}.first-field{width:min(100%,93dvh)}
  .first-head,.first-controls{grid-column:2}.first-head h1{font-size:clamp(26px,6dvh,34px)}
}
@media(prefers-reduced-motion:no-preference){
  #first-shot[data-phase="won"] .first-action{animation:first-shot-hit .28s ease-out}
  @keyframes first-shot-hit{from{transform:scale(.95)}to{transform:scale(1)}}
}
