/* Shared visual system for every learning and account screen. */
.card{position:relative;isolation:isolate;box-shadow:inset 0 2px 0 #c8e4fa25,inset 0 -2px 0 #020910,0 9px 0 #020a12,0 20px 45px #0005}
.card:before{content:'';position:absolute;inset:5px;border:1px solid #8eb9d51c;border-radius:15px;pointer-events:none;z-index:-1}
.card.start{padding:clamp(24px,5vw,46px)}
.start h1,#analysis h1,#wrong h1,#weekly h1,#mock h1,#work-review h1,#admin h1,#member h1{font-size:clamp(28px,5vw,42px);line-height:1.25;letter-spacing:-.035em;margin:4px 0 25px;color:#f2f7ff;text-shadow:0 3px 2px #0005}
.card h2{font-size:clamp(20px,3vw,25px);line-height:1.4}.card p{line-height:1.75}.muted{color:#b3c9dd}
.section-game-icon{width:78px;height:78px;margin:-12px 0 9px;display:block}
#login,#register{max-width:690px;margin:0 auto}#login .section-game-icon{width:96px;height:96px;margin-bottom:12px}#login .primary{margin-top:20px}
.login-label{font-size:15px;color:#d4e5f3}.login-input,.share-url{font-size:16px;min-height:50px;border:1px solid #4e718d;border-radius:12px;background:#0b1c2d;box-shadow:inset 0 2px 5px #0003;color:#edf7ff}
.login-input:focus,.share-url:focus{outline:2px solid #69bfff;outline-offset:2px}.signup-card{border:1px solid #637d93;box-shadow:inset 0 1px #d1e9ff24,0 3px #06111f;background:linear-gradient(120deg,#263e58,#142b43)}
.top{align-items:center;gap:18px;flex-wrap:wrap}.account-tools{display:flex;gap:10px;align-items:center}.account-tools>.ghost{font-size:14px;padding:11px 15px}.brand-logo{border-radius:13px}
.entry-modes #analysis-mode{background:linear-gradient(120deg,#174a67,#112c45)!important;border-color:#619dc0!important}
.entry-modes #wrong-mode{background:linear-gradient(120deg,#45395c,#23283f)!important;border-color:#a69bc0!important}
.entry-modes #mock-mode{background:linear-gradient(120deg,#314f75,#182d48)!important;border-color:#779dc9!important}
.review-menu-group{border:1px solid #849db2;border-radius:14px;background:linear-gradient(120deg,#223b55,#12283e);box-shadow:inset 0 2px #e4f6ff30,0 5px #05111c}
.review-menu-group>summary{list-style:none;display:flex;align-items:center;gap:17px;padding:14px 24px;cursor:pointer;min-height:120px}
.review-menu-group>summary::-webkit-details-marker{display:none}.review-menu-group>summary .game-icon{width:100px;height:100px}.review-menu-group>summary strong{display:block;font-size:25px;color:#e8f4ff}.review-menu-group>summary small{display:block;font-size:14px;color:#bfd4e5;margin-top:6px}.review-menu-toggle{margin-left:auto;font-size:24px;color:#adcde5}.review-menu-group[open] .review-menu-toggle{transform:rotate(45deg)}
.review-menu-items{display:grid;gap:14px;padding:0 20px 20px}.review-menu-items .select{min-height:103px!important}.review-menu-items .select strong{font-size:20px}.review-menu-items .select .game-icon{width:82px;height:82px}
.learning-guide,.register-notice{background:linear-gradient(120deg,#173a53,#122e44);border:1px solid #3c627f;border-radius:13px;padding:18px;color:#c0d8e8;font-size:15px}.learning-guide p{margin-top:0}.learning-guide p:last-child{margin-bottom:0}
.learning-stats>div,.learning-question,.subject-analysis,.work-list>details{border:1px solid #405f79;background:linear-gradient(130deg,#1b344b,#102439);border-radius:13px;box-shadow:inset 0 1px #a9d3f01a,0 3px 0 #06111f}
.learning-stats>div strong{color:#ffe0a1}.subject-analysis{padding:18px;margin:15px 0}.subject-analysis small{font-size:14px;line-height:1.5;color:#abc5d9}.learning-meta{font-size:14px}.learning-question{padding:19px;margin:14px 0}.learning-question h3{font-size:18px;line-height:1.6}
progress{height:13px;border:0;border-radius:20px;overflow:hidden;background:#233f56;accent-color:#36a9ed}progress::-webkit-progress-bar{background:#233f56}progress::-webkit-progress-value{background:linear-gradient(90deg,#237ac2,#55c6f7);border-radius:20px}
table{border-collapse:collapse;width:100%}th{background:#224b68;color:#e9f6ff;font-size:14px}td{font-size:15px;line-height:1.6;border-color:#375771}td,th{padding:12px 13px}tbody tr:nth-child(2n){background:#17304855}
.work-list summary{line-height:1.6;font-size:16px;padding:8px 0;cursor:pointer}.work-list img{max-width:100%;height:auto;border-radius:9px}
.subjects .select,.counts .select{font-size:17px;min-height:56px;border-radius:12px}.counts .select.selected,.counts .select[aria-pressed=true]{border-color:#66c4ff;background:#1c5e90}
.choice{border-radius:13px}.choice b{background:#26465f;color:#d4eeff}.choice.selected b{background:#0c77c8;color:white}.choice:focus-visible,.challenge-option:focus-visible{outline:3px solid #97dcff;outline-offset:3px}
.rank-description{font-size:14px}.rank-passes span{font-size:14px}.hud-rank-copy small{font-size:13px}.hud-stat small{font-size:12px}.rank-criteria{font-size:15px}.challenge-status,.challenge-count{font-size:15px}
.rank-roman{width:62px;border:1px solid #a79577;border-radius:5px;background:linear-gradient(#37434b,#171e25);margin:-9px auto 0;padding:2px 0;box-shadow:0 2px #020910;position:relative;font-size:19px}
.rank-row.current .rank-roman{border-color:#eab56a;background:linear-gradient(#775135,#38261c)}
.rank-row.current:after{content:'';position:absolute;inset:-3px;border:1px solid #d9994b75;border-radius:14px;pointer-events:none;box-shadow:0 0 18px #f7b95122}
.rank-padlock{font-size:0}.rank-padlock:after{content:'';width:6px;height:13px;border-radius:5px;background:#102536;box-shadow:0 1px #cbe4f955}
.challenge-begin{position:relative;min-height:66px;border:2px solid #78c8ff!important;border-radius:12px;background:linear-gradient(120deg,#2197e5,#0b64b6 72%);box-shadow:inset 0 3px #c8f0ff66,inset 0 -3px #083e79,0 5px #03294a,0 10px 22px #1c94d333;font-size:25px!important;letter-spacing:.06em}
.challenge-begin:before{content:'';position:absolute;inset:5px;border:1px solid #b6e9ff44;border-radius:7px;pointer-events:none}.challenge-begin:disabled{filter:saturate(.4);opacity:.5}.challenge-begin:hover:enabled{filter:brightness(1.1)}
.challenge-passage-item>span{min-width:2em}.challenge-passage-item p{margin:0}.challenge-review summary{font-size:16px;line-height:1.6}.challenge-review details{border:1px solid #385d79;border-radius:10px;padding:15px;margin:12px 0;background:#122b40}.challenge-review h2{font-size:25px}
.account-summary{display:flex;flex-direction:column;gap:8px;padding:22px;border:1px solid #527493;border-radius:13px;background:#142e45;margin-bottom:25px}.account-summary strong{font-size:23px;color:#ffe0a1}.account-summary span{color:#aac6da}.account-summary p{margin:0;font-size:15px}.account-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:25px}.account-actions button{flex:1;min-width:140px}
.footer{margin-top:30px;color:#89a9c1}.fine{line-height:1.7;font-size:13px!important}button,summary,input,select{scroll-margin-top:110px}.ghost{font-size:15px}
@media(max-width:650px){.entry-modes .select small{font-size:14px!important}.hud-rank-copy small{font-size:12px}.hud-stat small{font-size:11px}.rank-description{font-size:12px}.rank-passes span{font-size:12px}.rank-roman{width:48px;font-size:16px}.rank-unlocked{font-size:13px}.challenge-meta{font-size:14px}.review-menu-group>summary{padding:14px;gap:13px;min-height:110px}.review-menu-group>summary .game-icon{width:79px;height:79px}.review-menu-group>summary strong{font-size:20px}.review-menu-group>summary small{font-size:14px}.review-menu-items{padding:0 12px 15px}.review-menu-items .select strong{font-size:18px}.review-menu-items .select{grid-template-columns:70px minmax(0,1fr)!important}.review-menu-items .select .game-icon{width:72px;height:72px}.rank-row{grid-template-columns:76px minmax(0,1fr) 78px}.rank-passes{margin-top:5px}.rank-passes span{padding:3px}.section-game-icon{width:65px;height:65px}td,th{padding:10px 7px}#member,#admin{padding:22px 16px}.learning-stats{gap:10px}.subject-analysis{padding:14px}.account-tools>.ghost{font-size:14px;padding:10px 13px}.challenge-begin{font-size:23px!important}.challenge-result-table{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.rank-row{grid-template-columns:63px minmax(0,1fr) 65px;gap:6px}.rank-name{font-size:20px}.rank-unlocked{font-size:12px}.rank-passes span{font-size:11px}.rank-hud .hud-rank-copy small{font-size:11px}.review-menu-group>summary strong{font-size:18px}.account-tools{gap:7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.entry-modes .select,.primary{transition:none}.challenge-star.earned{animation:none!important}}
body.reduced-game-motion .challenge-star.earned{animation:none!important}
h1,h2{word-break:keep-all;text-wrap:balance}
@media(max-width:650px){.rank-row{grid-template-columns:70px minmax(0,1fr) 58px;gap:8px;padding:12px 9px}.rank-row .game-icon{width:70px;height:70px}.card .rank-name{font-size:21px;line-height:1.3;white-space:nowrap}.rank-description{font-size:11px;line-height:1.5}.rank-unlocked{font-size:11px}.rank-chain b{width:16px}.rank-passes{gap:3px}.rank-passes span{font-size:10px;padding:3px}.rank-roman{width:48px;margin-left:10px}}
