/* Reflex is the visual contract for every completed Arena challenge. */
/* Use one geometric arrow: text glyph baselines and native button padding
   must not move it between anchors, buttons, languages or system fonts. */
:is(body.pg-result #app .game-header .back-btn,body.pg-playing #app .state-complete .game-header .back-btn,.series-standalone #result>.so-back,.series-standalone .so-complete .back){position:relative;display:inline-grid;place-items:center;box-sizing:border-box;flex-shrink:0;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;line-height:1;font-size:0!important;vertical-align:middle}
:is(body.pg-result #app .game-header .back-btn,body.pg-playing #app .state-complete .game-header .back-btn,.series-standalone #result>.so-back,.series-standalone .so-complete .back)::before{content:"";position:absolute;inset:0;margin:auto;width:20px;height:20px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m7-7-7 7 7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 12H5m7-7-7 7 7 7' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;pointer-events:none}
body.pg-playing #app>.pg-result-view.state-complete,body.pg-result #app>.view.active.pg-result-view{background:#f7f8f2!important;color:#192d25!important;border-color:#dbe3d9!important}
body:is(.pg-playing,.pg-result) #app>.pg-result-view:is(.state-complete,.state-result)>.game-header{background:#f7f8f2!important;color:#192d25!important}
body.pg-playing #app>.pg-result-view.state-complete .series-complete{background:transparent!important;color:#192d25!important;flex-direction:column;align-items:center;justify-content:center;text-align:center}
body.pg-playing #app>.pg-result-view.state-complete .series-complete-title{color:#192d25!important}
body.pg-result #app>.pg-result-view .pg-result-score{background:#e8eee0!important;color:#192d25!important}
body.pg-result #app>.pg-result-view .pg-result-value{color:#192d25!important}
.series-standalone{background:#f7f8f2;color:#192d25}.series-standalone.so-showing-result>main{padding-top:12px}.series-standalone.so-gated #result{display:none!important}
.series-standalone .so-complete{background:#f7f8f2;color:#192d25;min-height:480px}.so-complete>.back{margin:0 0 12px}.so-complete-body{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center;padding:32px 24px}.so-complete .so-done-title{font:700 24px/1.4 'Noto Sans KR',system-ui,sans-serif;color:#192d25;margin:0}.so-complete .primary{margin:0;width:auto;min-width:160px;min-height:48px;padding:13px 28px;border:1px solid #176b4b;border-radius:13px;background:#176b4b;color:#fff;font:700 15px/1.5 'Noto Sans KR',system-ui,sans-serif}.so-complete small{font:400 12px/1.7 'Noto Sans KR',system-ui,sans-serif;color:#5b6d63}
.series-standalone #result.so-result{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:30px;align-items:start;max-width:none;width:100%;padding:0 0 36px;margin:0;border:0;border-radius:0;background:transparent;text-align:left}
.series-standalone #result>.so-back{position:static;grid-column:1/-1;margin:0}.so-score,.so-details{min-width:0;width:100%;box-sizing:border-box}.so-score{background:#e8eee0;border-radius:24px;padding:30px;color:#192d25}.so-label{font-size:var(--chalna-text-small);font-weight:700;letter-spacing:1.6px;line-height:1.6;color:#176b4b}.series-standalone #result .so-heading{font:750 35px/1.25 'Noto Sans KR',system-ui,sans-serif;letter-spacing:-1px;color:#192d25;margin:24px 0 0}
.series-standalone #result :is(#result-score,#journey-points){display:block;font:800 clamp(42px,7vw,80px)/1.15 'Noto Sans KR',system-ui,sans-serif;letter-spacing:-3px;color:#192d25;margin:22px 0 12px;overflow-wrap:anywhere}.series-standalone #result.so-official #result-score{font:400 13px/1.8 'Noto Sans KR',system-ui,sans-serif;color:#5b6d63;letter-spacing:0;margin:12px 0 0}.series-standalone #result #result-sub{font:400 13px/1.8 'Noto Sans KR',system-ui,sans-serif;color:#5b6d63;margin:0 0 10px}.so-actions{display:flex;flex-wrap:wrap;gap:8px;margin:25px 0 0}.series-standalone #result .so-actions button{flex:0 1 auto;width:auto;max-width:100%;margin:0;min-height:46px;padding:12px 17px;border:1px solid #176b4b;border-radius:13px;background:#176b4b;color:white;font:700 14px/1.5 'Noto Sans KR',system-ui,sans-serif;white-space:normal}.series-standalone #result .so-actions .secondary{background:white;color:#192d25;border-color:#dbe3d9}
.so-details{padding:16px 0;color:#192d25}.so-details>h2{font:700 20px/1.4 'Noto Sans KR',system-ui,sans-serif;letter-spacing:-.5px;margin:0 0 24px}.series-standalone #result .stats{display:flex;flex-direction:column;gap:0;border:0;background:none;margin:0 0 20px;padding:0}.series-standalone #result .stats>div{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:16px;border:0;border-bottom:1px solid #dbe3d9;padding:15px 0}.series-standalone #result .stats span{font-size:13px;color:#5b6d63}.series-standalone #result .stats strong{font-size:20px;color:#192d25}.so-details .journey-submit{margin-top:18px;border-top:0;padding:0}.so-details .arena-result-rank{background:#fff;border:1px solid #dbe3d9;border-radius:18px;padding:16px}.so-details .journey-submit form{border-top:1px solid #dbe3d9;padding-top:18px}.so-details .journey-submit .primary{background:#176b4b}.so-details .local-note{font-size:12px;line-height:1.8}
@media(max-width:740px){.so-score{padding:24px}}
@media(max-width:600px){.series-standalone #result.so-result{grid-template-columns:minmax(0,1fr);gap:24px}.so-details{padding:0 6px}.series-standalone #result .so-heading{font-size:30px}.series-standalone #result :is(#result-score,#journey-points){font-size:clamp(38px,16vw,64px);letter-spacing:-2px}.series-standalone #result .so-actions button{flex:1 1 auto;font-size:13px;padding-inline:13px}.so-complete{min-height:400px}.so-complete-body{min-height:330px;padding:24px 12px}}
.series-standalone .so-complete{display:flex;flex-direction:column;border:1px solid #dbe3d9;border-radius:24px;min-height:calc(100dvh - 110px);overflow:hidden}.so-complete-header{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;gap:16px;font-size:14px;font-weight:700}.so-complete-body{flex:1}.series-standalone.so-gated>main{padding-top:20px}.series-standalone.so-gated .so-complete{background:#f7f8f2}.series-standalone #result #result-art{display:none!important}
.series-standalone #result .result-art{display:none!important}
@media(max-width:740px){.series-standalone>main{padding-inline:20px}}
@media(max-width:600px){.series-standalone>main{padding-inline:16px}.so-complete-header{padding:10px 12px;font-size:12px}.series-standalone .so-complete{border-radius:20px;min-height:calc(100dvh - 96px)}}

.series-standalone #result .so-score>.so-share-row{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}
.so-share-status{font:400 12px/1.6 'Noto Sans KR',system-ui,sans-serif;color:#5b6d63;margin:8px 0 0}.so-share-status:empty{display:none}.so-share-status+textarea:not([hidden]){box-sizing:border-box;width:100%;min-height:96px;margin-top:8px;padding:10px;border:1px solid #dbe3d9;border-radius:10px}

/* Scores already expressed in Arena points must appear only once. */
.series-standalone #result.so-score-only #result-score{display:none}
.series-standalone #result .so-raw-label{display:block;font-size:var(--chalna-text-small);font-weight:700;letter-spacing:0}
