/* Soroban Academy R35 — refined student competition UI */
.r31CompetitionPage{--r35-ink:#153f39;--r35-green:#176f5b;--r35-green2:#2f9078;--r35-mint:#eaf7f1;--r35-gold:#e2b556;--r35-cream:#fbfaf4;--r35-line:#dce8e2;background:radial-gradient(circle at 92% 2%,#dfeee7 0,#dfeee700 28%),linear-gradient(180deg,#f7faf8 0,#fff 42%,#faf8f2 100%)}
.r31CompetitionPage .r31CompHero{background:linear-gradient(135deg,#fff 0,#f6fbf8 68%,#fff7e6 100%)!important;border:1px solid #dbe8e1!important;border-radius:30px!important;padding:24px 25px!important;box-shadow:0 18px 48px rgba(35,78,64,.08)!important;position:relative;overflow:hidden}.r31CompetitionPage .r31CompHero:before{content:"";position:absolute;inset:0 auto 0 0;width:7px;background:linear-gradient(#1b7963,#e2b556)}.r31CompetitionPage .r31CompHero h2{color:var(--r35-ink)!important;font-size:clamp(27px,5vw,39px)!important;margin:5px 0!important}.r31CompetitionPage .r31CompHero small{color:#578177!important;font-weight:900!important}.r31CompetitionPage .r31CompHero p{color:#72837d!important;line-height:1.8!important}
.r31CompGrid{gap:14px!important}.r35CompCard{background:#fff!important;border:1px solid var(--r35-line)!important;border-radius:24px!important;padding:19px!important;box-shadow:0 12px 30px rgba(35,74,62,.055)!important}.r35CompCard h3{margin:13px 0 7px!important;color:var(--r35-ink)!important;font-size:21px!important}.r35CompCard p{color:#70807b!important;line-height:1.7!important}.r35CardHead{display:flex;justify-content:space-between;align-items:center;gap:8px}.r35AttemptBadge{min-width:48px;text-align:center;border-radius:999px;padding:6px 9px;background:#fff7e6;border:1px solid #ead9a8;color:#7a5c20;font-size:11px;font-weight:950}.r35Meta{display:flex;gap:6px;flex-wrap:wrap;margin:13px 0}.r35Meta span{border-radius:999px;padding:6px 9px;background:#f3f7f5;border:1px solid #e0e9e5;color:#627870;font-size:11px;font-weight:850}.r35Meta span.score{background:#eaf7f1;color:#176d58;border-color:#cce5da}.r35StartBtn{width:100%;min-height:51px!important;border-radius:15px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important}.r35StartBtn span{font-size:15px;font-weight:950}.r35StartBtn small{font-size:10px;opacity:.78}.r35DoneLabel,.r35LockedLabel{border-radius:15px;padding:12px;text-align:center;background:#f2f6f4;border:1px solid #dfe8e4;color:#587069}.r35LockedLabel{background:#fff7e8;border-color:#eadbb4;color:#725c31}.r35LockedLabel b,.r35LockedLabel small{display:block}.r35LockedLabel small{margin-top:4px;font-size:10px;line-height:1.5}
body.r35CompetitionRunning{background:#f7f9f6}.r35Runner{--pad-h:0;position:relative;padding-bottom:8px}.r35RunnerTop{position:sticky;top:0;z-index:50;display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border:1px solid #dce8e2;border-radius:22px 22px 0 0;padding:13px 15px;box-shadow:0 8px 24px rgba(31,72,59,.06)}.r35RunnerIdentity small{display:block;color:#6a8179;font-weight:850;font-size:10px}.r35RunnerIdentity h3{margin:3px 0 0;color:#153f39;font-size:21px}.r35RunnerIdentity h3 span{color:#7f918b;font-size:13px;font-weight:800}.r35Timer{min-width:102px;border-radius:17px;padding:8px 11px;text-align:center;background:#ecf8f2;border:1px solid #cce6da;color:#176b57;font-variant-numeric:tabular-nums}.r35Timer small{display:block;font-size:9px;font-weight:850;opacity:.8}.r35Timer b{display:block;margin-top:1px;font-size:24px;line-height:1.05}.r35Timer.danger{background:#fff0ed;border-color:#efc9c1;color:#b34e3f;animation:r35pulse .9s ease-in-out infinite alternate}@keyframes r35pulse{to{transform:scale(1.035)}}
.r35Progress{height:7px;background:#e7eeea;overflow:hidden}.r35Progress i{display:block;height:100%;background:linear-gradient(90deg,#1b7761,#72c09f);border-radius:0 999px 999px 0}.r35QuestionStage{position:relative;background:linear-gradient(180deg,#fbfaf4 0,#f8faf7 100%);border:1px solid #e5e8de;border-top:0;border-radius:0 0 25px 25px;padding:20px 16px 18px}.r35QuestionBadge{position:absolute;top:16px;right:17px;width:38px;height:38px;border-radius:13px;background:#153f39;color:#fff;display:grid;place-items:center;font-weight:950;box-shadow:0 8px 20px rgba(21,63,57,.15)}.r35MathCard{min-height:200px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #dfe8e3;border-radius:25px;padding:25px 55px;box-shadow:0 12px 30px rgba(37,72,60,.055)}.r35MathCard .r31HorizontalMath,.r35MathCard .r31VerticalMath{font-size:clamp(36px,8vw,60px)!important;color:#153e38!important;font-weight:850!important}.r35AnswerPanel{max-width:520px;margin:15px auto 10px;text-align:center}.r35AnswerPanel>span{display:block;color:#5f786f;font-size:11px;font-weight:900;margin-bottom:5px}.r35AnswerDisplay{height:69px;border-radius:20px;background:#fff;border:2px solid #afd8c8;display:grid;place-items:center;color:#123f37;font-size:34px;font-weight:950;font-variant-numeric:tabular-nums;box-shadow:inset 0 2px 8px rgba(30,80,63,.04)}.r35AnswerDisplay.empty{color:#a8b6b1}.r35AnswerPanel small{display:block;margin-top:6px;color:#85938e;font-size:10px}.r35QuestionDots{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;max-width:720px;margin:12px auto}.r35QDot{width:31px;height:31px;border:1px solid #dce6e1;border-radius:10px;background:#fff;color:#697d76;font-size:11px;font-weight:900;cursor:pointer}.r35QDot.done{background:#eaf7f1;color:#176b57;border-color:#c9e4d8}.r35QDot.on{background:#176f5b;color:#fff;border-color:#176f5b;box-shadow:0 5px 14px rgba(23,111,91,.2)}.r35RuleNote{max-width:620px;margin:10px auto 0;padding:9px 11px;border-radius:13px;background:#fff8ea;border:1px solid #eadcb8;color:#705f3a;font-size:10px;line-height:1.65;text-align:center}.r35RuleNote span{font-weight:950;margin-left:4px}
.r35KeypadShell{max-width:540px;margin:14px auto 0;background:#fff;border:1px solid #dce7e2;border-radius:24px;padding:10px;box-shadow:0 17px 38px rgba(31,72,59,.10)}.r35KeyNav{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:7px;margin-bottom:7px}.r35KeyNav button{min-height:43px;border-radius:13px;border:1px solid #dbe5e1;background:#f5f8f6;color:#526c64;font-size:12px;font-weight:900}.r35KeyNav .submit{background:#176f5b;color:#fff;border-color:#176f5b}.r35KeyNav button:disabled{opacity:.35}.r35Keypad{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.r35Keypad button{min-height:53px;border:0;border-radius:14px;background:#f4f7f5;color:#153f39;font-size:22px;font-weight:950;box-shadow:inset 0 0 0 1px #e0e7e3;touch-action:manipulation;user-select:none}.r35Keypad button:active{transform:scale(.97);background:#eaf5ef}.r35Keypad .tool{background:#fff6e4;color:#775d27;box-shadow:inset 0 0 0 1px #eddfbc;font-size:16px}.r35Keypad .blank{background:#fafbfa;opacity:.35}.r35Keypad .blank:active{transform:none}
.r35Loading,.r35StartError,.r35ClosedCard,.r35Receipt{max-width:650px;margin:24px auto;background:#fff;border:1px solid #dce7e1;border-radius:28px;padding:29px 22px;text-align:center;box-shadow:0 20px 50px rgba(30,70,58,.09)}.r35Loading{display:grid;gap:8px}.r35Loading>span{width:38px;height:38px;border-radius:50%;border:4px solid #dfece6;border-top-color:#176f5b;margin:auto;animation:r35spin .8s linear infinite}@keyframes r35spin{to{transform:rotate(360deg)}}.r35Loading b,.r35StartError b{color:#173f39;font-size:19px}.r35Loading small,.r35StartError small{color:#74847f;line-height:1.6}.r35ClosedIcon,.r35ReceiptMark{width:72px;height:72px;border-radius:23px;margin:0 auto 12px;display:grid;place-items:center;background:#eaf7f1;color:#176d58;font-size:34px;font-weight:950;border:1px solid #cde5da}.r35ClosedCard .r35ClosedIcon{background:#fff0ed;color:#ac4c3e;border-color:#efcbc4;font-size:20px}.r35ClosedCard>small,.r35Receipt>small{color:#719087;font-weight:900}.r35ClosedCard h3,.r35Receipt h3{margin:5px 0 8px;color:#173f39;font-size:26px}.r35ClosedCard p,.r35Receipt p{color:#6f817b;line-height:1.8}.r35ClosedStatus{max-width:500px;margin:13px auto;padding:10px;border-radius:13px;background:#f5f8f6;color:#637970;font-size:10px;line-height:1.7}.r35ReceiptGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;max-width:410px;margin:14px auto}.r35ReceiptGrid div{background:#f7faf8;border:1px solid #e0e9e4;border-radius:14px;padding:10px}.r35ReceiptGrid span{display:block;color:#7a8b85;font-size:9px}.r35ReceiptGrid b{font-size:20px;color:#173f39}
@media(max-width:680px){body.r35CompetitionRunning{overflow-x:hidden}.r35RunnerTop{border-radius:16px 16px 0 0;padding:10px 11px}.r35RunnerIdentity h3{font-size:18px}.r35Timer{min-width:88px;padding:7px 8px}.r35Timer b{font-size:21px}.r35QuestionStage{padding:13px 10px 315px;border-radius:0 0 19px 19px}.r35QuestionBadge{width:32px;height:32px;top:10px;right:11px;border-radius:10px;font-size:12px}.r35MathCard{min-height:132px;padding:18px 42px;border-radius:20px}.r35MathCard .r31HorizontalMath,.r35MathCard .r31VerticalMath{font-size:clamp(31px,11vw,49px)!important}.r35AnswerPanel{margin:10px auto 6px}.r35AnswerDisplay{height:58px;font-size:30px;border-radius:17px}.r35AnswerPanel small{display:none}.r35QuestionDots{max-height:72px;overflow:auto;margin:9px auto}.r35QDot{width:28px;height:28px;border-radius:9px;font-size:10px}.r35RuleNote{display:none}.r35KeypadShell{position:fixed;z-index:1000;left:7px;right:7px;bottom:max(6px,env(safe-area-inset-bottom));margin:0 auto;max-width:570px;border-radius:22px;padding:8px;background:rgba(255,255,255,.985);backdrop-filter:blur(18px);box-shadow:0 -9px 34px rgba(24,64,52,.16)}.r35KeyNav{gap:5px;margin-bottom:5px}.r35KeyNav button{min-height:39px;border-radius:11px;font-size:11px}.r35Keypad{gap:5px}.r35Keypad button{min-height:46px;border-radius:12px;font-size:19px}.r35Keypad .tool{font-size:13px}.r35CompCard{border-radius:20px!important}.r35StartBtn{align-items:flex-start!important;flex-direction:column!important}.r35ReceiptGrid{grid-template-columns:1fr 1fr}}
@media(max-height:680px) and (max-width:680px){.r35QuestionStage{padding-bottom:284px}.r35MathCard{min-height:104px}.r35Keypad button{min-height:41px}.r35KeyNav button{min-height:35px}.r35AnswerDisplay{height:50px}.r35QuestionDots{display:none}}

/* R35 strict focus mode: once a competition starts, only the official question workspace is visible. */
body.r35CompetitionRunning #app>.top,body.r35CompetitionRunning #championship>.r31CompHero,body.r35CompetitionRunning #r31CompetitionList{display:none!important}
body.r35CompetitionRunning #championship{max-width:100%!important;padding-top:6px!important}
body.r35CompetitionRunning #r31Runner{margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
