body[data-arena-game="line"]{--line-ink:#345a4b;--line-muted:#7b8d7d}.line-hud{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;width:100%;color:#37644d;font-variant-numeric:tabular-nums}.line-hud>div:last-child{text-align:right}.line-hud small{display:block;font-size:10px;font-weight:500;color:#83927f;margin-bottom:3px}.line-hud b{font-size:22px;font-weight:700;letter-spacing:-.04em}.line-round{font-size:12px;color:#7b8d79;white-space:nowrap}.line-stage{position:relative;width:100%;aspect-ratio:1/1;min-height:0;overflow:hidden;border:1px solid #dde5d6;border-radius:20px;background:#fafbf5;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;isolation:isolate}.line-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}.line-stage:focus-within{outline:2px solid #8cac90;outline-offset:2px}.line-stage canvas:focus-visible{outline:none}.line-brief{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px;font-size:11px;line-height:1.5;color:#82917c}.line-brief strong{color:#457456;font-weight:600}.line-meter{height:3px;background:#e0e8d8;border-radius:9px;overflow:hidden;width:100%;flex-shrink:0}.line-meter i{display:block;height:100%;width:100%;transform-origin:left;background:#82aa89;will-change:transform}.line-round-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#fafbf5dd;pointer-events:none;z-index:2;text-align:center;padding:16px}.line-round-overlay strong{font-size:30px;letter-spacing:-.05em;color:#376b50}.line-round-overlay span{font-size:13px;color:#7a8e76}.line-shot-label{position:absolute;bottom:12px;left:12px;right:12px;text-align:center;color:#7e927a;font-size:10px;letter-spacing:.06em;pointer-events:none}.line-board{display:flex;flex-direction:column;align-items:stretch}.line-board>div{flex-shrink:0}.line-board .line-stage{flex-shrink:1}body[data-arena-game="line"].series-playing #game .play-board{width:min(100%,650px);max-width:650px;overflow:hidden;gap:9px;background:#f5f8ee;padding:16px}body[data-arena-game="line"].series-playing #game .line-stage{height:auto;flex:0 1 auto;max-height:calc(100dvh - 330px)}body[data-arena-game="line"] #game .instruction p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body[data-arena-game="line"] #game .ready{background:#d95f57}body[data-arena-game="line"] .poster{background:#edf2e4}body[data-arena-game="line"] .poster svg{width:100%;height:100%}.line-share{width:100%;margin-top:12px;min-height:42px;border:1px solid #d9e1d2;background:#fafbf5;border-radius:12px;font:600 12px/1.5 inherit;color:#4d7358}.line-share-status{min-height:20px;font-size:11px;color:#83917c}.line-record-line{font-size:12px;line-height:1.8;color:#7f8e7b;overflow-wrap:anywhere}
@media(max-width:600px){.line-hud b{font-size:19px}.line-round{font-size:10px}.line-brief{font-size:10px}body[data-arena-game="line"].series-playing #game .play-board{padding:10px;gap:7px}body[data-arena-game="line"].series-playing #game .line-stage{max-height:calc(100dvh - 310px);border-radius:14px}.line-round-overlay strong{font-size:24px}.line-shot-label{bottom:8px;font-size:9px}.line-share{font-size:12px}}
@media(max-height:600px){body[data-arena-game="line"].series-playing #game .line-stage{max-height:calc(100dvh - 245px)}.line-hud small{display:none}.line-hud b{font-size:15px}.line-brief{min-height:16px}body[data-arena-game="line"].series-playing #game .play-board{padding:8px;gap:4px}}
@media(prefers-reduced-motion:reduce){.line-meter i{will-change:auto}}

body[data-arena-game="line"].series-playing #game .line-stage{flex:0 0 auto;max-height:none;margin-inline:auto}
body[data-arena-game="line"] #result.so-official #result-score{display:none!important}
body[data-arena-game="line"] #result .so-score #journey-points{font-size:clamp(42px,6vw,72px);font-weight:800;line-height:1.15;letter-spacing:-.05em;margin:14px 0 28px}

.line-speed-legend{list-style:none;padding:0;margin:14px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;line-height:1.5;color:#667c70}.line-speed-legend li{display:flex;align-items:center;gap:7px}.line-speed-legend i{width:9px;height:9px;border-radius:50%;flex:none;background:#6caa95}.line-speed-legend .tone-1{background:#b3bc86}.line-speed-legend .tone-2{background:#c5ae86}.line-speed-legend .tone-3{background:#91b6bc}

#line-lives{color:#aa685b;letter-spacing:3px;background:#fffaf0;border:1px solid #e6d9c2;border-radius:12px;padding:3px 7px}.line-stage canvas{cursor:grab}.line-stage canvas:active{cursor:grabbing}

.line-stage{aspect-ratio:1/1!important;background:#fbfcf7}.line-stage canvas{cursor:crosshair}.line-brief span:last-child{letter-spacing:0!important}.line-stage canvas:focus-visible{outline:3px solid #47785a;outline-offset:-3px}

/* ONE-LINE RESULT STYLE */
/* Same score typography and colors as Reflex; loaded only by the three new games. */
body[data-arena-game="line"] .trio-result-header{display:none;align-items:center;justify-content:space-between;gap:16px;min-height:50px;margin:0 0 24px;font:700 14px/1.5 'Noto Sans KR',system-ui,sans-serif;color:#192d25}
body.so-showing-result:not(.so-gated) .trio-result-header{display:flex}
.trio-result-header .back{display:grid;place-items:center;box-sizing:border-box;width:38px;min-width:38px;height:38px;padding:0;border:1px solid #dbe3d9;border-radius:10px;background:#fff;color:#176b4b;text-decoration:none}
body[data-arena-game="line"] #result>.so-back{display:none!important}
body[data-arena-game="line"] #result .so-score #journey-points{font:800 clamp(42px,7vw,80px)/1.15 'Noto Sans KR',system-ui,sans-serif;letter-spacing:-3px;color:#192d25;margin:22px 0 12px}
body[data-arena-game="line"] #result .so-score .trio-summary{font:400 13px/1.8 'Noto Sans KR',system-ui,sans-serif;color:#5b6d63;margin:0 0 10px;overflow-wrap:anywhere}
body[data-arena-game="line"] #result .so-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:25px 0 0}
body[data-arena-game="line"] #result .so-actions button{width:100%;margin:0}
body[data-arena-game="line"] #result .trio-share{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin:8px 0 0;padding:12px 17px;border:1px solid #dbe3d9;border-radius:13px;background:#fff;color:#192d25;font:700 14px/1.5 'Noto Sans KR',system-ui,sans-serif;white-space:normal}
body[data-arena-game="line"] #result .trio-share:hover{background:#f7faf3}
.so-score textarea[readonly]{box-sizing:border-box;width:100%;min-height:100px;margin-top:10px;padding:10px;border:1px solid #dbe3d9;border-radius:10px;font:400 12px/1.6 system-ui}
@media(max-width:600px){body[data-arena-game="line"] #result .so-heading{font-size:33px}.trio-result-header span{font-size:12px}body[data-arena-game="line"] #result .so-score #journey-points{font-size:64px;letter-spacing:-2px}}

.so-score [id$="-share-status"]:empty{display:none}

/* Match Color Spot intro artwork framing. */
body[data-arena-game="line"] #intro .poster{background:#fff}body[data-arena-game="line"] #intro .poster img,body[data-arena-game="line"] #intro .poster svg{display:block;width:100%;height:256px;max-width:300px;object-fit:contain;margin:auto}
@media(max-width:700px){body[data-arena-game="line"] #intro .poster img,body[data-arena-game="line"] #intro .poster svg{height:194px}}

/* Align the back button with Color Spot on the intro screen. */
body[data-arena-game="line"]:has(#intro:not([hidden])) main{padding-top:30px}body[data-arena-game="line"] #intro{margin-top:0}
