/* Account flow: guest start, keep-my-records steps, guardian consent, player cards.
   Landing steps build on app/landing.css; in-game pieces build on the paper dialogs
   (app/feedback.css, app/player-records.css) and the completion window. */

/* Player card: an origami character folded from the chosen colour paper, on a paper card. */
[data-c=yellow]{--p:#f3c84b;--pl:#fae29a;--pd:#d3a22a}
[data-c=red]{--p:#e3563f;--pl:#f29c88;--pd:#b23d29}
[data-c=teal]{--p:#1d8a97;--pl:#6fc0c8;--pd:#136671}
[data-c=purple]{--p:#7d5a9a;--pl:#ab8fc2;--pd:#5a3f72}
[data-c=green]{--p:#6fa77a;--pl:#a5cfad;--pd:#4c8560}
[data-c=navy]{--p:#47647c;--pl:#7f9ab0;--pd:#2f4759}
.af-pcard{position:relative;display:inline-grid;place-items:center;flex:none;width:65px;height:74px;border:3px solid #263747;border-radius:5px;background:#fffaed;background:color-mix(in srgb,var(--p) 24%,#fffaed);box-shadow:4px 4px #b8ab87;transform:rotate(-5deg)}
.af-pcard::before,.pr-avatar[data-c]::before{content:"";position:absolute;inset:3px;border:1.5px solid rgba(38,55,71,.3);border-radius:2px;pointer-events:none}
.af-pcard.sm{width:44px;height:52px;border-width:2px;box-shadow:3px 3px #b8ab87}
.af-pcard.sm::before{display:none}
.af-pcard.lg{width:104px;height:120px;box-shadow:5px 5px #b8ab87}
.af-pcard.lg::before{inset:5px}
.pr-avatar[data-c]{position:relative;background:#fffaed;background:color-mix(in srgb,var(--p) 24%,#fffaed)}
.af-ori{display:block;width:82%;height:auto;overflow:visible}
.af-ori *{stroke:#263747;stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.af-ori .o-p{fill:var(--p)}.af-ori .o-l{fill:var(--pl)}.af-ori .o-d{fill:var(--pd)}.af-ori .o-w{fill:#fffaed}.af-ori .o-k{fill:#263747}.af-ori .o-y{fill:#f3c84b}.af-ori .o-n{fill:none}

/* The full player card: grid paper in the chosen colour, a stitched ring, the character, a corner mark and a name tape. */
.af-card{position:relative;display:flex;align-items:center;justify-content:center;flex:none;width:190px;aspect-ratio:3/4;padding:0;border:3px solid #263747;border-radius:9px;color:#263747;font:16px/1.25 "Avenir Next",Pretendard,"Noto Sans KR",sans-serif;background:#fffaed;background:repeating-linear-gradient(0deg,transparent 0 .8em,color-mix(in srgb,var(--pd) 20%,transparent) .8em calc(.8em + 1px)),repeating-linear-gradient(90deg,transparent 0 .8em,color-mix(in srgb,var(--pd) 20%,transparent) .8em calc(.8em + 1px)),color-mix(in srgb,var(--p) 30%,#fffaed);box-shadow:.3em .38em 0 rgba(38,55,71,.38);transform:rotate(var(--tilt,0deg));transition:transform .18s,box-shadow .18s,opacity .25s}
.af-card::before{content:"";position:absolute;inset:.4em;border:2px solid color-mix(in srgb,var(--pd) 60%,transparent);border-radius:5px;pointer-events:none}
.af-card::after{content:"";position:absolute;left:50%;top:43%;width:72%;aspect-ratio:1;border:2px dashed var(--pd);border-radius:50%;background:color-mix(in srgb,var(--pl) 55%,#fffaed);transform:translate(-50%,-50%)}
.af-card .af-ori{position:relative;z-index:1;width:62%;margin-bottom:14%}
.af-card-pip{position:absolute;z-index:1;top:.55em;left:.75em;color:var(--pd);font:800 1.35em/1 Georgia,serif}
.af-card-name{position:absolute;z-index:1;left:50%;bottom:8%;max-width:88%;padding:.25em .7em;background:#f3c84b;border:2px solid #263747;box-shadow:2px 3px 0 rgba(38,55,71,.3);font-weight:900;font-size:.95em;text-align:center;word-break:keep-all;transform:translateX(-50%) rotate(-2deg);width:max-content}
button.af-card{cursor:pointer}
button.af-card:hover{transform:rotate(var(--tilt,0deg)) translateY(-10px);box-shadow:.4em .8em 0 rgba(38,55,71,.3)}
button.af-card:focus-visible{outline:4px solid #f3c84b;outline-offset:5px}
@media(prefers-reduced-motion:reduce){.af-card{transform:none;transition:none}}

/* Landing: a flow step is one focused paper, the landing paper narrowed to a single column. */
html.af-leaving body{visibility:hidden}
.af-legal{display:flex;justify-content:center;gap:22px;margin:0 0 26px;font-size:13px}
.af-legal a{color:#4f5b56;text-underline-offset:4px}
.af-step .af-note,.welcome .af-note{margin-top:12px;color:#a03c2a;font-weight:700}
.af-sign-in #msg{margin:12px 0 0;color:#a03c2a;font-weight:700;word-break:keep-all}
.af-confirm{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:14px}
.af-confirm b{font-weight:800;word-break:keep-all}
.af-confirm .af-pick{min-height:36px;padding:5px 12px;font-size:14px}
.landing-paper.af-flow{grid-template-columns:minmax(0,1fr);width:calc(100% - 56px);max-width:640px;margin-inline:auto;padding:44px 48px}
.af-step h2,.af-h1-sm{font:850 clamp(25px,3vw,31px)/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.02em;margin:18px 0 10px;white-space:normal}
html[lang=ko] .af-step h2,html[lang=ko] .af-h1-sm{font-family:'Avenir Next','Trebuchet MS',sans-serif;font-size:clamp(24px,2.9vw,29px);line-height:1.35;word-break:keep-all}
.af-step p{word-break:keep-all}
.af-step .lead{margin:0 0 4px;color:var(--muted);font-size:16px}
.af-step .account-card{max-width:none;margin-top:22px}
.af-step .actions .primary:disabled{cursor:default}
.af-back{display:inline-block;margin-top:16px}
.af-inline{padding:0;font-size:inherit}

/* Birth year and month: two dashed slots, a number line of year cards that scrolls sideways, and twelve month cards. */
.af-birth{display:flex;align-items:flex-start;gap:18px;margin:22px 0 18px}
.af-slot-box{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.af-slot{display:grid;place-items:center;min-width:116px;height:66px;padding:0 14px;border:2.5px dashed var(--teal);border-radius:7px;background:#fffdf5;color:var(--teal);font:800 27px/1 Georgia,serif}
.af-slot[data-slot=month]{min-width:80px}
.af-slot.is-filled{border:3px solid var(--ink);background:var(--yellow);color:var(--ink);box-shadow:4px 5px 0 #b4b3a6;transform:rotate(-3deg);animation:af-pop .28s}
.af-slot[data-slot=month].is-filled{transform:rotate(2deg)}
@keyframes af-pop{from{scale:1.25}}
.af-tray-label{margin:0 0 8px;font-size:15px;font-weight:700;color:var(--ink)}
.af-year-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.af-year-head .af-tray-label{margin:0}
.af-year-input{width:176px;padding:4px 9px;border:2px solid #b4b296;border-radius:6px;background:#fffdf5;color:var(--ink);font:700 13.5px/1.3 "Avenir Next",Pretendard,sans-serif;text-align:center}
.af-year-input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 2px rgba(22,123,135,.2)}
.af-decades{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
.af-decade{padding:4px 9px;border:1.5px solid var(--ink);border-radius:999px;background:#fffcf3;color:var(--ink);box-shadow:1.5px 2px 0 #b4b3a6;font:750 12.5px/1.2 "Avenir Next",Pretendard,sans-serif;cursor:pointer}
.af-decade:hover{background:#fff3b8}
.af-decade[aria-pressed=true]{background:var(--yellow);box-shadow:1.5px 2px 0 var(--ink)}
.af-strip-box{position:relative;min-width:0;margin-bottom:18px;background:#fff9e9;border:2px solid #b4b296;border-radius:8px;box-shadow:4px 5px 0 #c9c2a7}
.af-strip{overflow-x:auto;padding:16px 0 12px;scroll-snap-type:x proximity;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;cursor:grab;-webkit-mask-image:linear-gradient(90deg,transparent,#000 34px,#000 calc(100% - 34px),transparent);mask-image:linear-gradient(90deg,transparent,#000 34px,#000 calc(100% - 34px),transparent)}
.af-strip::-webkit-scrollbar{display:none}
.af-strip.is-dragging{cursor:grabbing;scroll-snap-type:none}
.af-line{display:flex;gap:10px;width:max-content;padding:0 34px 13px;border-bottom:2px solid #b4b296}
.af-line .af-num{position:relative;flex:none;width:66px;scroll-snap-align:center}
.af-line .af-num::after{content:"";position:absolute;left:50%;bottom:-17px;width:2px;height:7px;margin-left:-1px;background:#b4b296}
.af-line .af-num[data-ten]::after{bottom:-19px;height:11px;width:3px;background:#8f8a75}
.af-strip-arrow{position:absolute;z-index:1;top:16px;display:none;place-items:center;width:30px;height:54px;padding:0;border:2px solid var(--ink);border-radius:6px;background:#fffaed;color:var(--ink);box-shadow:2px 3px 0 #b4b3a6;font:800 20px/1 Georgia,serif;cursor:pointer}
.af-strip-arrow[data-go="-1"]{left:-12px}.af-strip-arrow[data-go="1"]{right:-12px}
.af-strip-arrow:disabled{opacity:.35;cursor:default}
@media(hover:hover) and (pointer:fine){.af-strip-arrow{display:grid}}
.af-tray{display:grid;grid-template-columns:repeat(6,1fr);gap:11px 10px;padding:16px 14px;background:#fff9e9;border:2px solid #b4b296;border-radius:8px;box-shadow:4px 5px 0 #c9c2a7}
.af-num{display:grid;place-items:center;min-width:0;height:54px;padding:0 2px;border:2px solid var(--ink);border-radius:6px;background:#fffaed;color:var(--ink);box-shadow:3px 4px 0 #b4b3a6;font:750 20px/1 Georgia,serif;white-space:nowrap;cursor:pointer}
.af-num:hover{background:#fff3b8}
.af-num:active{transform:translate(2px,3px);box-shadow:1px 1px 0 #b4b3a6}
.af-num[aria-pressed=true]{background:var(--yellow);transform:rotate(-3deg)}
@media(max-width:720px){.af-num{font-size:18px}.af-line .af-num{width:60px}}
@media(max-width:400px){.af-tray{grid-template-columns:repeat(4,1fr);padding-inline:10px;gap:10px 8px}}
@media(prefers-reduced-motion:reduce){.af-slot.is-filled{animation:none}}

.af-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0 4px}
.af-choice{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:132px;padding:18px 16px 14px;border:2px solid var(--ink);border-radius:7px;background:#fffcf3;color:var(--ink);box-shadow:3px 4px 0 var(--ink);text-align:left;cursor:pointer}
.af-choice b{font-size:21px;line-height:1.2}
.af-choice small{font-size:13px;font-weight:600;line-height:1.45;color:var(--muted);word-break:keep-all}
.af-choice:hover{background:#fff3b8}
.af-choice:active{transform:translate(2px,3px);box-shadow:1px 1px 0 var(--ink)}

.af-guardian{margin-top:26px;padding:18px 20px 20px;background:#fff9e9;border:2px solid #b4b296;border-radius:9px;box-shadow:4px 5px 0 #c9c2a7}
.af-guardian p{margin:8px 0 0;font-size:15px}
.af-guardian .account-card{margin-top:14px}

.af-child{display:flex;align-items:center;gap:18px;margin:16px 0 18px}
.af-child b{display:block;font-size:20px;line-height:1.3}
.af-child small{display:block;font-size:13px;font-weight:600;color:var(--muted)}
.af-lists{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.af-list{padding:13px 15px;background:#fff9e9;border:2px solid #b4b296;border-radius:6px}
.af-list h3{margin:0 0 6px;font-size:13px;letter-spacing:.04em;color:var(--teal)}
.af-list.no h3{color:var(--muted)}
.af-list ul{margin:0;padding-left:18px;font-size:15px;line-height:1.6;word-break:keep-all}
.af-step .af-after-lists{margin:12px 0 14px}
/* What pressing the consent button declares, set right above it. */
.af-declare{margin:14px 0 0;padding:12px 0 0;border-top:1px dashed #b8af91;font-size:15px;font-weight:650;line-height:1.5;color:var(--ink);word-break:keep-all}
.af-step .af-feedback-off{margin:0 0 2px}
.af-said{margin:12px 0 0;font-size:17px;font-weight:800;color:var(--ink);word-break:keep-all}
.af-pick{min-height:46px;padding:9px 12px;border:2px solid var(--ink);border-radius:7px;background:#fffcf3;color:var(--ink);box-shadow:3px 4px 0 var(--ink);font:inherit;font-size:15px;font-weight:800;line-height:1.25;word-break:keep-all;cursor:pointer}
.af-pick:hover{background:#fff3b8}

.af-notes{list-style:none;margin:16px 0 4px;padding:0}
.af-notes li{display:flex;gap:12px;padding:12px 0;border-top:1px dashed #b8af91;font-size:15px;word-break:keep-all}
.af-notes li>span{flex:none;width:26px;text-align:center;font-size:19px;font-weight:850;color:var(--teal)}

.af-players{display:flex;flex-wrap:wrap;gap:24px 20px;margin:30px 0 12px}
.af-player{position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;width:136px;padding:0;border:0;background:none;color:var(--ink);font:inherit;cursor:pointer}
.af-player small{font-size:12px;font-weight:600;line-height:1.35;color:var(--muted);text-align:center;word-break:keep-all}
.af-role-tag{display:inline-flex;align-items:center;padding:2px 8px;border:1.5px solid var(--ink);border-radius:999px;font-size:11px;font-weight:800;line-height:1.25;white-space:nowrap}
.af-role-tag.is-me{background:var(--yellow);color:var(--ink)}
.af-role-tag.is-child{background:#d9f0ef;border-color:var(--teal);color:#0f5860}
.af-role-tag.is-guest{background:#f4ecda;border-color:#9e9278;color:#5a5448}
.af-add-account-box{margin-top:16px;padding-top:14px;border-top:1px dashed #b8af91}
.af-player .af-card{width:100%;font-size:11.5px}
.af-player:hover .af-card{transform:rotate(var(--tilt,0deg)) translateY(-8px)}
.af-player.add .af-card{background:transparent;border-style:dashed;box-shadow:none;color:var(--muted);font-size:46px;font-weight:600}
.af-player.add .af-card::before,.af-player.add .af-card::after{display:none}
.af-last{position:absolute;z-index:2;top:-11px;left:50%;padding:1px 10px;background:#edce83;border:1px solid #bda66b;font-size:11px;font-weight:850;white-space:nowrap;transform:translate(-50%) rotate(-3deg)}

.af-rows{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.af-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px 14px;padding:14px 16px;background:#fffcf3;border:2px solid #b4b296;border-radius:11px;box-shadow:3px 4px 0 #d5ceb2}
.af-row b{display:block;font-size:17px;line-height:1.3}
.af-row small{display:block;font-size:13px;font-weight:600;color:var(--muted);word-break:keep-all}
.af-tag{padding:3px 9px;background:#d8e9df;border-radius:6px;color:#287777;font-size:11px;font-weight:850;letter-spacing:.06em;white-space:nowrap}
.af-row-actions{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;margin-top:2px}
.af-row-primary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px}
.af-row-meta-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;padding-top:9px;border-top:1px dashed #cfc6a6}
.af-row-settings,.af-row-manage{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.af-row-actions label{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:700;color:var(--ink);cursor:pointer}
.af-row-actions input{width:18px;height:18px;margin:0;accent-color:var(--teal);cursor:pointer}
.af-row-meta-bar .quiet{font-size:13.5px;min-height:30px;padding:2px 0}
.af-danger-link{color:#9b3a2e !important}
.af-danger-link:hover{color:#b52b1d !important}
.af-see-btn{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:4px 12px;border:2px solid var(--ink);border-radius:7px;background:#fffdf7;color:var(--ink);box-shadow:2px 2px 0 #c9c2a7;font-size:13.5px;font-weight:850;cursor:pointer;text-decoration:none}
.af-see-btn:hover{background:#f7f0db}
.af-see-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 #c9c2a7}
.af-row-head-end{display:flex;align-items:center;gap:8px}
.af-more{position:relative}
.af-more-btn{display:grid;place-items:center;width:32px;height:32px;border:1.5px solid #c9c2a7;border-radius:7px;background:#faf5e4;color:var(--ink);font:900 18px/1 inherit;letter-spacing:.04em;cursor:pointer;list-style:none;user-select:none}
.af-more-btn::-webkit-details-marker{display:none}
.af-more-btn:hover,.af-more[open] .af-more-btn{background:#f2e8cc;border-color:var(--ink)}
.af-more-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:30;min-width:176px;padding:6px;background:#fffdf7;border:2px solid var(--ink);border-radius:9px;box-shadow:4px 5px 0 rgba(38,55,71,.24);display:flex;flex-direction:column;gap:2px}
.af-more-item{display:flex;align-items:center;width:100%;padding:8px 11px;border:0;border-radius:6px;background:transparent;color:var(--ink);font:750 13.5px/1.3 inherit;text-align:left;cursor:pointer;white-space:nowrap}
.af-more-item:hover{background:#f5edd6}
.af-more-item.is-danger{color:#9b3a2e}
.af-more-item.is-danger:hover{background:#fdebe8;color:#b52b1d}
.af-more-sep{border:0;border-top:1px dashed #d5ceb2;margin:4px 6px}
.af-row-panel{grid-column:1/-1;padding-top:10px;border-top:1px dashed #cfc6a6}
.af-row-panel[hidden]{display:none}
.af-row-panel .af-confirm,.af-danger-body .af-confirm{display:flex;flex-direction:column;gap:10px;padding:12px 14px;background:#fff8e6;border:2px solid #c9b57d;border-radius:9px}
.af-row-panel .af-confirm.is-danger,.af-danger-body .af-confirm.is-danger{background:#fff3f0;border-color:#c95443}
.af-row-panel .af-confirm b,.af-danger-body .af-confirm b{font-size:13.5px;line-height:1.5;color:var(--ink);word-break:keep-all}
.af-confirm-actions{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.af-pick.is-danger{background:#c94534;border-color:#7d2116;color:#fff}
.af-pick.is-danger:hover{background:#b53626}
.af-danger-fold{margin-top:14px}
.af-danger-fold summary{display:inline-block;font-size:12.5px;font-weight:700;color:#8a8370;cursor:pointer;list-style:none}
.af-danger-fold summary::-webkit-details-marker{display:none}
.af-danger-fold summary::after{content:" ▾";font-size:11px}
.af-danger-fold[open] summary::after{content:" ▴"}
.af-danger-fold summary:hover{color:#9b3a2e}
.af-danger-body{margin-top:10px;padding:12px 14px;background:#fff6f4;border:1.5px dashed #d6948a;border-radius:9px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.af-danger-body .fine{margin:0;color:#6e433d;font-size:13px;line-height:1.5}
.af-archived-box .af-row{background:#faf5e4;border-style:dashed;box-shadow:none}
.af-archived-box .af-row-actions{flex-direction:row;flex-wrap:wrap;gap:6px 14px}
.af-add{margin-top:16px}
.af-foot{display:flex;flex-wrap:wrap;gap:4px 22px;margin-top:18px;padding-top:8px;border-top:1px dashed #b8af91}

@media(max-width:720px){.landing-paper.af-flow{width:calc(100% - 40px);padding:30px 24px}.af-lists{grid-template-columns:1fr}.af-players{justify-content:center}}
@media(max-width:400px){.landing-paper.af-flow{padding-inline:19px}.af-choices{grid-template-columns:1fr}.af-choice{min-height:0;flex-direction:row;flex-wrap:wrap;align-items:center}.af-choice small{flex-basis:100%}}

/* Phone landscape (little height): a compact header and paper, and the wide steps in two columns so they fit without scrolling. */
@media(min-width:650px) and (max-height:520px){
header:has(+.landing-paper){padding-block:9px;border-bottom-width:4px}
.landing-paper{margin-block:14px;padding-block:18px}
.landing-paper h1{margin:8px 0;font-size:27px}
.landing-paper .intro{margin:0;font-size:15px}
.landing-paper .actions{margin-top:12px}
.landing-paper .primary{padding:10px 20px;font-size:18px}
.landing-paper .fine{margin-top:8px}
.landing-paper .preview{padding-block:14px}
.landing-paper.af-flow{width:calc(100% - 40px);max-width:800px;padding:16px 28px 18px}
.af-step h2{margin:6px 0 8px;font-size:22px}
html[lang=ko] .af-step h2{font-size:22px}
.af-step .lead{font-size:15px}
.af-two{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"a b" "c b";grid-template-rows:auto 1fr;column-gap:30px}
.af-a{grid-area:a}.af-b{grid-area:b}.af-c{grid-area:c}
.af-birth{gap:14px;margin:10px 0 6px}
.af-slot{min-width:98px;height:54px;font-size:23px}
.af-slot[data-slot=month]{min-width:76px}
.af-slot-box{gap:5px}
.af-tray-label{margin-bottom:5px;font-size:14px}
.af-year-head{margin-bottom:4px}
.af-year-input{width:158px;padding:3px 7px;font-size:12px}
.af-decades{gap:4px;margin-bottom:6px}
.af-decade{padding:2px 7px;font-size:11px}
.af-strip-box{margin-bottom:10px}
.af-strip{padding:11px 0 9px}
.af-num{height:44px;font-size:18px}
.af-tray{gap:9px 8px;padding:11px 12px}
.af-guardian{margin-top:4px;padding:14px 16px 16px}
.af-guardian .account-card{margin-top:10px}
.af-step .account-card{margin-top:12px}
.af-choices{margin-top:12px}
.af-choice{min-height:0;padding:12px 14px}
.af-child{margin:8px 0 10px}
.af-declare{margin-top:6px;padding-top:6px;font-size:13.5px;line-height:1.4}
.af-declare+.actions{margin-top:8px}
.af-declare+.actions .primary{padding:9px 16px;font-size:16px}
.af-consent .af-child .af-pcard{width:44px;height:52px;border-width:2px;box-shadow:3px 3px #b8ab87}
.af-consent .af-child .af-pcard::before{display:none}
.af-said{margin-top:6px;font-size:15px}
.af-pick{min-height:40px;padding:6px 10px;font-size:14px}
.af-list{padding:8px 12px}
.af-list h3{margin-bottom:2px}
.af-list ul{font-size:14px;line-height:1.4}
.af-step .af-after-lists{margin:6px 0 7px}
.af-notes{margin-top:0}
.af-players{margin:14px 0 6px}
.af-player{width:104px;gap:8px}
.af-player .af-card{font-size:9.5px}
.af-back{margin-top:6px}
.af-c>.af-declare:first-child{margin-top:0;border-top:0;padding-top:2px}
}

/* The guardian picks the child's card: three cards dealt on the paper, the same cards the game deals. */
.af-pick-hand{display:flex;justify-content:center;align-items:flex-start;gap:16px;margin:24px 0 10px}
.af-pick-hand .af-card{width:min(150px,calc((100% - 32px)/3));font-size:clamp(9px,2.6vw,12.5px);animation:af-pick .4s cubic-bezier(.2,.85,.3,1.12) backwards}
.af-pick-hand .af-card:nth-child(2){animation-delay:.08s}.af-pick-hand .af-card:nth-child(3){animation-delay:.16s}
@keyframes af-pick{from{opacity:0;transform:translateY(28px) rotate(var(--tilt,0deg))}}
.af-pick-hand .af-card.is-picked{z-index:1;transform:scale(1.06);box-shadow:0 0 0 4px var(--yellow),.4em .6em 0 rgba(38,55,71,.38)}
.af-pick-hand .af-card:disabled{cursor:wait}
.af-pick-hand .af-card:disabled:not(.is-picked){opacity:.45}
.af-pick-step .af-pick-again{width:auto;min-height:44px;margin:0;padding:8px 18px}
@media(min-width:650px) and (max-height:520px){.af-pick-hand{gap:14px;margin:4px 0 0}.af-pick-hand .af-card{width:118px;font-size:10.5px}.af-pick-step .af-pick-again{min-height:38px;padding:5px 14px}.af-pick-step .af-c .actions{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.af-pick-hand .af-card{animation:none}}

/* In-game: the keep-my-records slip in the completion window. */
.af-keep-slip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;margin-top:16px;padding:9px 12px;background:#fff9eb;border:2px dashed #b6a780;border-radius:4px;color:#657068;font:700 12px/1.5 system-ui,sans-serif;text-align:left}
.af-keep-slip a{color:#127d88;font-weight:800;text-underline-offset:4px;white-space:nowrap}

/* In-game: a paper tag hanging under the logo, the way to keep a guest's records or to the parent menu.
   It sits under the bar (not in it), above the board like the help strip, so the bar keeps its width
   for the spaces, clock, score and records. */
body.unified-shell .af-tag-entry{position:fixed;left:24px;top:calc(var(--shell-bottom,68px) + 2px);z-index:20;display:flex;align-items:baseline;gap:7px;max-width:calc(100vw - 40px);min-height:30px;padding:5px 11px 5px 10px;background:#f3e7ca;border:2px solid #14232e;border-radius:3px;box-shadow:3px 3px 0 #12212b;color:#263747;font:800 12px/1.25 "Avenir Next",Pretendard,"Noto Sans KR",sans-serif;text-align:left;white-space:nowrap;word-break:keep-all;text-wrap:balance;transform:rotate(-1.2deg);transform-origin:left top;cursor:pointer}
.af-tag-entry small{font-size:11px;font-weight:750;color:#6a6650}
.af-tag-entry b{font-weight:900;color:#127d88;text-decoration:underline;text-underline-offset:3px}
.af-tag-entry:hover{background:#fff3b8}
body.unified-shell .af-tag-entry:active{transform:rotate(-1.2deg) translate(1px,2px);box-shadow:1px 1px 0 #12212b}
.af-tag-entry:focus-visible{outline:3px solid #f3c84b;outline-offset:3px}
/* Only over the board: the map and the skills put their own titles right under the bar. */
body.unified-shell:not([data-space=play]) .af-tag-entry{display:none}
@media(max-width:1279px){body.unified-shell .af-tag-entry{left:20px}}
@media(max-width:800px){body.unified-shell .af-tag-entry{left:12px}}
@media(max-width:560px){.af-tag-entry small{display:none}}
/* Beside the logo on the first line of a two-line bar (a phone held upright): small, on two lines if need be. */
body.unified-shell .af-tag-entry.is-in-bar{z-index:5001;left:var(--af-tag-left);top:var(--af-tag-top);max-width:var(--af-tag-width);min-height:36px;align-items:center;padding:3px 9px;font-size:11px;line-height:1.2;white-space:normal;box-shadow:2px 2px 0 #0b1720;transform:translateY(-50%) rotate(-1.2deg);transform-origin:left center}
body.unified-shell .af-tag-entry.is-in-bar:active{transform:translateY(-50%) rotate(-1.2deg) translate(1px,1px)}
/* Under a help strip that reaches it. */
body.unified-shell .af-tag-entry.is-low{top:var(--af-tag-top);max-width:min(124px,calc(100vw - 40px));white-space:normal;min-height:26px;padding:3px 8px;font-size:11px}
@media(min-width:620px) and (max-height:520px){body.unified-shell .af-tag-entry{left:var(--af-nav-left,14px);min-height:26px;padding:3px 9px;font-size:11px}.af-tag-entry small{font-size:10px}}
@media(prefers-reduced-motion:reduce){body.unified-shell .af-tag-entry,body.unified-shell .af-tag-entry:active{transform:none}body.unified-shell .af-tag-entry.is-in-bar,body.unified-shell .af-tag-entry.is-in-bar:active{transform:translateY(-50%)}}

/* In-game: the player and where the records live, in the records notebook heading. */
.pr-dialog .af-identity-actions{display:flex;flex-wrap:wrap;gap:2px 20px;margin-top:5px}
/* Opened from the parent menu (「기록 보기」): a look at the child's notebook, with no way to play on as the child. */
.pr-parent-view [data-pr=resume],.pr-parent-view [data-pr=retry],.pr-parent-view [data-pr=challenge],.pr-parent-view .pr-import{display:none}
.pr-parent-view [data-pr=go-parent-menu]{font-weight:900}
.af-stored{display:inline-block;margin-left:6px;padding:0 8px;background:#f0dfb8;border:1px solid #b8af91;color:#5c5a45;font-weight:800}
.af-stored.account{background:#d8e9df;border-color:#7caa94;color:#24745e}

/* In-game: choosing a player card. Three cards are dealt on the table; tapping one takes it. */
.af-text{word-break:keep-all}
.fb-actions .af-go{background:#f3c84b;color:#263747;box-shadow:3px 3px 0 #263747}
/* 「이 기기의 연결이 끊겼어요」 is said over whatever is open, the puzzle-complete sheet (1500) and the key sheet (2200) included. */
.fb-scrim.af-unlinked{z-index:2300}
/* The cards are dealt over the completion window (z-index 1500), which waits underneath. */
.fb-scrim.af-deal-scrim{z-index:1600;place-items:center;padding:12px;background:rgba(57,47,34,.66);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.af-deal{display:grid;justify-items:center;gap:26px;width:100%}
.af-deal-title{margin:0;padding:9px 24px 10px;background:#f3e7ca;border:3px solid #14232e;box-shadow:5px 5px 0 #12212b;color:#263747;font:900 23px/1.3 "Avenir Next",Pretendard,"Noto Sans KR",sans-serif;text-align:center;transform:rotate(-1.5deg)}
.af-deal-title small{display:block;color:#167b87;font-size:11px;letter-spacing:.14em}
.af-hand{display:flex;flex-wrap:wrap;justify-content:center;gap:22px 28px}
.af-hand .af-card{animation:af-deal .55s cubic-bezier(.2,.85,.3,1.12) backwards;animation-delay:calc(var(--i,0)*110ms)}
@keyframes af-deal{from{opacity:0;transform:translateY(70vh) rotate(28deg)}}
.af-hand .af-card.is-picked{z-index:2;transform:scale(1.1);box-shadow:0 0 0 5px #f3c84b,.5em .8em 0 rgba(38,55,71,.4)}
.af-hand .af-card.is-out{opacity:0;transform:translateY(46px) rotate(var(--tilt,0deg)) scale(.88);pointer-events:none}
.af-deal-actions{display:flex;align-items:center;gap:20px}
.af-reshuffle{padding:9px 18px;background:#fff9eb;color:#263747;border:2px solid #263747;border-radius:3px;box-shadow:3px 3px 0 #12212b;font:900 14px "Avenir Next",Pretendard,sans-serif;cursor:pointer}
.af-later{padding:8px 2px;background:none;border:0;color:#f3e7ca;font:800 14px "Avenir Next",Pretendard,sans-serif;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.af-reshuffle:focus-visible,.af-later:focus-visible{outline:3px solid #f3c84b;outline-offset:3px}
.pr-entry>.af-entry-ori{display:grid;place-items:center;width:28px;height:28px}
.af-entry-ori .af-ori{width:100%}
@media(max-width:649px){.af-deal{gap:20px}.af-hand{gap:18px 14px}.af-hand .af-card{width:150px;font-size:13px}.af-deal-title{font-size:20px}}
/* Phone landscape: everything sits under the game header in one row. */
@media(min-width:650px) and (max-height:520px){.fb-scrim.af-deal-scrim{place-items:end center;padding:0 12px 10px}.af-deal{gap:12px}.af-deal-title{padding:4px 18px 5px;font-size:17px}.af-deal-title small{display:none}.af-hand .af-card{width:150px;font-size:13px}.af-reshuffle{padding:6px 14px}}
@media(prefers-reduced-motion:reduce){.af-pcard{transform:none}.af-hand .af-card{animation:none}}
/* Linking a device: the QR code, the same link to send or copy, and the devices linked to one child. */
.af-qr{width:min(100%,232px);margin:14px auto 10px;padding:10px;background:#fffaf0;border:2px solid var(--ink);border-radius:8px;box-shadow:4px 5px 0 #c9c2a7}
.af-qr .qr-code{display:block;width:100%;height:auto}
.af-share{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:4px 18px}
.af-share .social-button{width:auto;min-height:44px;margin:0;padding:8px 18px}
.af-link-text{margin:6px 0 0;font:600 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--muted);text-align:center;word-break:break-all;overflow-wrap:anywhere;user-select:text;-webkit-user-select:text}
.af-guardian .af-qr{margin-top:12px}
.af-devices{grid-column:1/-1;display:flex;flex-direction:column;gap:2px;padding-top:6px;border-top:1px dashed #d8d0b6;font-size:13.5px}
.af-devices[hidden]{display:none}
.af-devices-title{font-size:13px;font-weight:800;color:var(--muted)}
.af-device{display:flex;flex-wrap:wrap;align-items:center;gap:0 14px}
/* The first screen: 「보호자로 시작」 is an outlined paper button on its own row, under 「바로 시작」, which stays the main way in. */
.af-parent-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin-top:14px}
.af-parent-start{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:9px 20px;border:2px solid var(--ink);border-radius:7px;background:#fffcf3;color:var(--ink);box-shadow:3px 3px 0 var(--ink);font-size:16px;font-weight:850;line-height:1.2;word-break:keep-all;cursor:pointer}
.af-parent-start:hover{background:#fff3b8}
.af-parent-start:active{transform:translate(2px,2px);box-shadow:1px 1px 0 var(--ink)}
.af-parent-start:disabled{opacity:.55;cursor:wait}
.af-parent-row .quiet{color:var(--muted);font-size:14px}
@media(min-width:650px) and (max-height:520px){.af-qr{width:168px;margin:6px auto;padding:7px}.af-link-text{display:none}.af-parent-row{margin-top:10px}.af-parent-start{min-height:38px;padding:5px 16px;font-size:15px}}
/* The two-digit number both screens show when a device asks to be linked. */
.af-check{display:flex;align-items:center;gap:14px;margin:14px 0 6px}
.af-check b{flex:none;min-width:76px;padding:2px 12px;background:#fffaf0;border:3px solid var(--ink);border-radius:9px;box-shadow:4px 5px 0 #c9c2a7;font-size:44px;font-weight:900;line-height:1.15;font-variant-numeric:tabular-nums;text-align:center;color:var(--ink)}
.af-check span{font-size:14px;font-weight:700;color:var(--muted);word-break:keep-all}
@media(min-width:650px) and (max-height:520px){.af-check{margin:6px 0 2px}.af-check b{min-width:58px;font-size:30px}}
/* The privacy policy and terms inside the paper; the footer below it is then not repeated. */
.af-legal-line a{color:var(--muted);text-underline-offset:4px;white-space:nowrap}
.welcome>.af-legal-line{margin-top:18px}
body:has(.welcome>.af-legal-line) .af-legal{display:none}

/* Phase 1+2 Account Redesign: Who bar, fixed labels, slot meter, archive, 6-digit code, PIN */
.af-signup-btn{background:#d9f0ef;border-color:var(--teal);color:#0f5860}
.af-signup-btn:hover{background:#c5e7e6}
.af-who-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:8px 0 4px;padding:10px 14px;background:#fff9e9;border:2px solid #b4b296;border-radius:8px}
.af-session-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;background:#d8e9df;border:1.5px solid #287777;border-radius:999px;color:#1b5b52;font-size:12.5px;font-weight:800}
.af-slot-pill,.af-slot-meter{display:inline-flex;align-items:center;padding:3px 10px;background:#fff3b8;border:1.5px solid var(--ink);border-radius:999px;color:var(--ink);font-size:12px;font-weight:850;white-space:nowrap}
.af-player-label{font-size:14px;font-weight:900;color:var(--ink);line-height:1.25;text-align:center;word-break:keep-all}
.af-menu-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:6px 0 10px}
.af-menu-meta .fine{margin:0}
.af-slot-cap-note{margin:14px 0 6px;padding:11px 14px;background:#fff7df;border:2px dashed #c29b40;border-radius:8px;color:#5d4612;font-size:13.5px;font-weight:700;line-height:1.5}
.af-label-field{margin:14px 0 6px}
.af-label-input{width:100%;max-width:340px;height:42px;padding:7px 11px;border:2px solid #a9af9a;border-radius:6px;background:#fffdf7;color:var(--ink);font:650 15px/1.3 "Avenir Next",Pretendard,sans-serif}
.af-label-input:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 2px rgba(22,126,139,.2)}
.af-inline-form{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0}
.af-inline-form .af-label-input{width:190px;height:36px;font-size:14px}
.af-inline-form .af-pick{min-height:36px;padding:5px 12px;font-size:14px}
.af-pin-inline{width:110px;height:36px;padding:5px 10px;border:2px solid var(--ink);border-radius:6px;background:#fffdf7;font:800 18px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.22em;text-align:center}
.af-archived-box{margin:18px 0 4px;padding:12px 15px;background:#f7f1e0;border:2px dashed #b8af91;border-radius:8px}
.af-archived-box summary{font-size:14px;font-weight:850;color:var(--muted);cursor:pointer}
.af-row.is-archived{opacity:.82}
.af-tag.is-archived{background:#ece3cd;color:#6c6657}
.af-pin-card{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:18px 0 4px;padding:14px 16px;background:#fff9e9;border:2px solid #b4b296;border-radius:8px}
.af-pin-card b{display:block;font-size:15px;color:var(--ink)}
.af-pin-card small{display:block;font-size:12.5px;color:var(--muted);line-height:1.45;word-break:keep-all}
.af-pin-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.af-pair-code-box{margin:14px 0 4px;padding:14px 16px;background:#fffcf3;border:3px solid var(--ink);border-radius:10px;box-shadow:4px 5px 0 var(--teal);text-align:center}
.af-pair-code-label{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;color:var(--teal)}
.af-pair-code{display:block;margin:6px 0 4px;font:900 36px/1.1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.12em;color:var(--ink);font-variant-numeric:tabular-nums;user-select:all;-webkit-user-select:all}
.af-pair-code-box small{display:block;font-size:12.5px;font-weight:650;color:var(--muted);word-break:keep-all}
.af-code-form,.af-pin-form{margin-top:18px;display:flex;flex-direction:column;gap:12px}
.af-code-input,.af-pin-input{width:100%;max-width:260px;height:66px;padding:8px 16px;border:3px solid var(--ink);border-radius:10px;background:#fffdf7;box-shadow:4px 5px 0 #c9c2a7;color:var(--ink);font:900 34px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.16em;text-align:center;font-variant-numeric:tabular-nums}
.af-code-input:focus,.af-pin-input:focus{outline:none;border-color:var(--teal);box-shadow:4px 5px 0 var(--teal)}
.af-code-alt{margin-top:18px}
.af-parent-guide-card{margin-top:26px;padding:18px 20px 18px;background:#fff9e9;border:2px solid #b4b296;border-radius:10px;box-shadow:4px 5px 0 #c9c2a7}
.af-parent-guide-card h3{margin:8px 0 6px;font-size:19px;font-weight:900;color:var(--ink);line-height:1.3;word-break:keep-all}
.af-guide-lead{margin:0 0 10px;font-size:14.5px;color:var(--muted);line-height:1.5;word-break:keep-all}
.af-guide-steps{margin:0 0 14px;padding-left:20px;font-size:14px;line-height:1.6;color:var(--ink);word-break:keep-all}
.af-guide-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.af-guide-actions .social-button{width:auto;min-height:44px;padding:8px 16px;font-size:14.5px}
.af-guide-actions .af-parent-start{min-height:44px;padding:8px 16px;font-size:14.5px;background:#d9f0ef;border-color:var(--teal);color:#0f5860}
.af-guide-actions .af-parent-start:hover{background:#c5e7e6}
.af-parent-guide-card .af-link-text{margin-top:10px;text-align:left}
.af-guide-here{margin-top:12px;padding-top:10px;border-top:1px dashed #b8af91}

/* Guest Trial Gate (Mockup 2) & Locked Map Cues */
.af-trial-dialog{padding:0;border:0;background:transparent;max-width:none;max-height:none;overflow:visible}
.af-trial-dialog::backdrop{background:rgba(34,43,51,.68);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.af-trial-card{width:min(calc(100vw - 32px),500px);max-height:calc(100vh - 32px);overflow-y:auto;padding:26px 26px 22px;background:#f6edd7;border:3px solid #263747;border-radius:14px;box-shadow:8px 9px 0 #263747;color:#263747;font-family:"Avenir Next",Pretendard,"Noto Sans KR",sans-serif;text-align:left}
.af-trial-tape{display:inline-block;padding:3px 10px;background:#f3c84b;border:2px solid #263747;font-size:11px;font-weight:900;letter-spacing:.08em;transform:rotate(-1.5deg)}
.af-trial-card h2{margin:14px 0 8px;font-size:24px;font-weight:900;line-height:1.28;word-break:keep-all}
.af-trial-lead{margin:0 0 14px;font-size:14.5px;line-height:1.55;color:#52615c;word-break:keep-all}
.af-trial-notice{margin:0 0 16px;padding:10px 13px;background:#fff9eb;border:2px dashed #b8a77b;border-radius:8px;font-size:13px;line-height:1.45}
.af-trial-notice b{display:block;font-weight:850;color:#263747;margin-bottom:2px}
.af-trial-notice span{color:#5d675f;word-break:keep-all}
.af-trial-actions{display:flex;flex-direction:column;gap:10px}
.af-trial-btn{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;padding:13px 16px;border:2.5px solid #263747;border-radius:9px;box-shadow:3px 4px 0 #263747;color:#263747;text-align:left;cursor:pointer;transition:transform .12s,box-shadow .12s}
.af-trial-btn b{font-size:16px;font-weight:900;line-height:1.25}
.af-trial-btn small{font-size:12.5px;font-weight:650;color:#4a5854;line-height:1.35;word-break:keep-all}
.af-trial-btn.is-primary{background:#f5ce4c}
.af-trial-btn.is-child{background:#d9f0ef;border-color:#167e8b}
.af-trial-btn.is-login{background:#fffcf3}
.af-trial-btn:hover{transform:translate(-1px,-1px);box-shadow:4px 5px 0 #263747}
.af-trial-btn:active{transform:translate(2px,3px);box-shadow:1px 1px 0 #263747}
.af-trial-foot{margin-top:14px;text-align:center}
.af-trial-replay{border:0;background:none;color:#5a6963;font:750 13.5px/1.3 inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:6px 10px}
.af-trial-slip{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;margin-top:14px;padding:10px 13px;background:#fff9eb;border:2px dashed #167e8b;border-radius:7px;color:#263747;font:700 12.5px/1.45 "Avenir Next",Pretendard,sans-serif;text-align:left}
.af-trial-slip-btn{padding:4px 11px;background:#f5ce4c;border:2px solid #263747;border-radius:6px;box-shadow:2px 2px 0 #263747;color:#263747;font:850 12.5px/1.2 inherit;cursor:pointer;white-space:nowrap}
.lm-arch-node.is-trial-locked,.lm-stage-stone.is-trial-locked{opacity:.72;filter:saturate(.65)}
.lm-arch-lock{position:absolute;top:-6px;right:-6px;display:grid;place-items:center;width:22px;height:22px;background:#f6edd7;border:2px solid #263747;border-radius:50%;font-size:11px;line-height:1;box-shadow:1.5px 2px 0 rgba(38,55,71,.3)}
.lm-stage-lock{font-size:15px;line-height:1}

/* Simplified single-model login & under-13 2-card UX */
.af-code-hint{margin-top:10px}
.af-auth-tabs{display:inline-flex;gap:6px;margin:6px 0 14px;padding:4px;background:#efe6cd;border:2px solid var(--ink);border-radius:10px}
.af-auth-tab{min-height:38px;padding:6px 18px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:800 14.5px/1.2 inherit;cursor:pointer;transition:background .12s,color .12s}
.af-auth-tab:hover{color:var(--ink)}
.af-auth-tab.is-active{background:#fffcf3;color:var(--ink);box-shadow:0 1px 0 rgba(38,55,71,.18),inset 0 0 0 1.5px var(--ink)}
.af-guardian-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:18px 0 8px}
.af-gcard{display:flex;flex-direction:column;gap:10px;padding:18px 18px 16px;background:#fffcf3;border:2.5px solid var(--ink);border-radius:12px;box-shadow:4px 5px 0 #c9c2a7}
.af-gcard.is-remote{background:#f3faf9;border-color:var(--teal);box-shadow:4px 5px 0 rgba(22,126,139,.28)}
.af-gcard h3{margin:0;font-size:18px;font-weight:900;color:var(--ink);line-height:1.25;word-break:keep-all}
.af-gcard p{margin:0;font-size:14px;color:var(--muted);line-height:1.45;word-break:keep-all;flex:1}
.af-gcard-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
.af-gcard-badge{display:inline-flex;align-items:center;padding:2px 8px;background:#d9f0ef;border:1.5px solid var(--teal);border-radius:999px;color:#0f5860;font-size:11.5px;font-weight:850;white-space:nowrap}
.af-gcard-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.af-gcard .primary,.af-gcard .secondary{width:100%;justify-content:center;padding:12px 14px;font-size:15.5px;line-height:1.25}
.af-gcard .primary:hover,.af-gcard .secondary:hover{transform:none}
.af-which-divider{margin:10px 0 2px;padding-top:10px;border-top:1.5px dashed #c4bc9e;font-size:13px;font-weight:800;color:var(--muted)}
.af-which-new{background:#faf5e4;border-style:dashed}
.af-link-code-btn{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:4px 12px;border:2px solid var(--teal);border-radius:7px;background:#d9f0ef;color:#0f5860;box-shadow:2px 2px 0 var(--ink);font-size:13.5px;font-weight:850;cursor:pointer;text-decoration:none}
.af-link-code-btn:hover{background:#c5e7e6}
.af-link-code-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}
.af-play-btn{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:4px 12px;border:2px solid var(--ink);border-radius:7px;background:var(--yellow);color:var(--ink);box-shadow:2px 2px 0 var(--ink);font-size:13.5px;font-weight:850;cursor:pointer;text-decoration:none}
.af-play-btn:hover{background:#f9d866}
.af-play-btn:active{transform:translate(1px,1px);box-shadow:1px 1px 0 var(--ink)}
.af-done-actions{align-items:center}
.af-done-toggle{display:flex;align-items:flex-start;gap:10px;margin:0 0 12px;padding:12px 14px;background:#fffcf3;border:2px solid #b4b296;border-radius:9px;cursor:pointer}
.af-done-toggle input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--teal);cursor:pointer}
.af-done-toggle b{display:block;font-size:14.5px;font-weight:850;color:var(--ink);line-height:1.3}
.af-done-toggle small{display:block;margin-top:2px;font-size:12.5px;color:var(--muted);line-height:1.4;word-break:keep-all}
.af-records-view{display:flex;flex-direction:column;gap:16px}
.af-records-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.af-records-head{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fffcf3;border:2.5px solid var(--ink);border-radius:10px;box-shadow:4px 5px 0 #c9c2a7}
.af-records-head h2{margin:0;font-size:22px;line-height:1.25}
.af-records-head small{display:block;color:var(--muted);font-size:13px;font-weight:700}
.af-records-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.af-stat-box{padding:12px 10px;background:#fff9e9;border:2px solid #b4b296;border-radius:8px;text-align:center}
.af-stat-box small{display:block;font-size:12px;font-weight:750;color:var(--muted)}
.af-stat-box strong{display:block;margin-top:4px;font-size:22px;font-weight:900;color:var(--ink);font-variant-numeric:tabular-nums}
.af-records-sec h3{margin:0 0 8px;font-size:14px;font-weight:850;letter-spacing:.03em;color:var(--teal)}
.af-chapter-grid{display:flex;flex-wrap:wrap;gap:8px}
.af-chapter-pill{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;background:#fffcf3;border:2px solid #b4b296;border-radius:8px;font-size:13.5px;font-weight:750;color:var(--ink)}
.af-chapter-pill b{color:var(--teal);font-weight:900}
.af-run-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.af-run-item{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:10px 13px;background:#fffcf3;border:1.5px solid #c9c2a7;border-radius:8px;font-size:13.5px}
.af-run-main{display:flex;flex-direction:column;gap:2px}
.af-run-main b{color:var(--ink);font-weight:850}
.af-run-main small{color:var(--muted);font-size:12px}
.af-run-meta{display:flex;align-items:center;gap:8px;font-weight:800;font-variant-numeric:tabular-nums}
.af-run-badge{padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:850;background:#ece5d0;color:var(--ink)}
.af-run-badge.is-clean{background:#d8e9df;color:#1b5b52}
.af-player-slot{display:flex;flex-direction:column;align-items:center;gap:4px}
.af-drop-guest{padding:2px 6px;font-size:12px}
@media(max-width:480px){.af-records-stats{grid-template-columns:1fr}}
