main{min-width:0}h1{margin-bottom:20px}.section-gap{margin-top:22px}.filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.filters label{font-size:14px}.filters input,.filters select{font-size:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.form-grid input[type=number]{min-width:0}input[type=number]{appearance:textfield}input[name=minRatio],input[name=actualCost],input[name^=tierValue]{step:any}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.metric-grid strong{display:block;font:700 32px/1.5 Georgia,serif;color:#23569a}.metric-grid small{font-size:14px}.button-link{display:inline-block;padding:10px 16px;color:white;background:#235cc1;border-radius:4px;margin:12px}.order-head{display:flex;justify-content:space-between;align-items:start;gap:12px}form>button{margin-top:16px}details{margin:12px 0}summary{cursor:pointer;line-height:1.8}table button{padding:6px 9px;margin:3px;font-size:14px}.saving button{pointer-events:none;opacity:.65}code{overflow-wrap:anywhere}.batch-warning{color:#904628}.batch-success{color:#227357}.treasure-grid{grid-template-columns:repeat(4,minmax(0,1fr))}#account small{font-size:13px}.spirit-stats article{border:0}.realm-heading{background:transparent!important;border:0!important;padding:0!important}.realm-progress{flex-wrap:wrap}.realm-more article{max-height:360px;overflow:auto}@media(max-width:1000px){.metric-grid{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr 1fr}.treasure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){header{flex-wrap:wrap}#account{width:100%;display:flex;justify-content:space-between;align-items:center}.treasure-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.filters{gap:6px}.metric-grid strong{font-size:28px}.order-head{flex-wrap:wrap}.card{padding:16px}.realm-step{padding:11px}.realm-heading b{font-size:19px}.spirit-footer{flex-wrap:wrap}}

.preview-link{font-size:14px;display:inline-block;margin:4px 7px}.student-login{max-width:520px;margin:24px auto}.student-login h1{font-size:28px}#account{max-width:70%;text-align:right}@media(max-width:650px){#account{max-width:100%;flex-wrap:wrap}.preview-link{font-size:13px}}
.student-main .yesterday-hero{min-height:250px;margin:0 0 22px;padding:30px;background:linear-gradient(90deg,#103e80f2,#235b9ca0);border:1px solid #bda16b;outline:1px solid #c7d9e9;outline-offset:4px;box-shadow:0 9px 30px #21549a18}.student-main .yesterday-hero h1{font-family:'STKaiti','KaiTi',serif;font-size:34px;letter-spacing:2px;margin-bottom:8px;color:white}.student-main .yesterday-hero p{font-size:16px;line-height:1.8}.student-main .yesterday-hero button{background:#f9fcff;color:#235cc1;border:1px solid #d4bb81;border-radius:3px;margin-top:12px}.student-main>.split{align-items:start}.student-main .spirit-panel{margin-top:20px;border-radius:6px;border:1px solid #bda16b}.student-main .card{border-top-color:#c0a471;box-shadow:0 5px 22px #345b8910}.student-main .realm-sigil{margin:0 12px}.receipt-reminder{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;background:#fff8e7;color:#805b1c;border:1px solid #d9c28f;padding:14px 18px;border-radius:5px;margin:20px 0}.receipt-reminder p{font-size:14px;margin:0}.receipt-reminder button{font-size:14px;padding:7px 12px;margin-left:auto}.search-form .batch-tools{margin-bottom:0}.search-form label{margin-top:0}.search-form button{margin-top:0}.batch-tools label{margin:0;min-width:200px}.batch-tools{align-items:end}#config-form,#staff-form{margin-top:22px}.filters{grid-template-columns:repeat(3,minmax(0,1fr))}.batch-tools select{min-width:170px}button,input[type=checkbox],summary{touch-action:manipulation}@media(max-width:650px){.student-main .yesterday-hero{min-height:230px;padding:24px}.student-main .yesterday-hero h1{font-size:27px}.student-main .yesterday-hero p{font-size:14px}.student-main .spirit-panel{padding:17px}.filters{grid-template-columns:1fr 1fr}.receipt-reminder{padding:12px;font-size:14px}.receipt-reminder button{margin-left:0}.student-main .steps.realm-steps{gap:10px}.student-main .realm-step{padding:12px}}

.feed-viewport{height:220px;overflow:hidden;position:relative}.feed-track{animation:feed-scroll var(--feed-duration,30s) linear infinite}.feed-group{display:flow-root}.feed-group .feed-entry{margin:0;padding:15px 10px;min-height:72px;box-sizing:border-box}.feed-viewport:hover .feed-track,.feed-viewport:focus-within .feed-track{animation-play-state:paused}@keyframes feed-scroll{to{transform:translateY(-50%)}}.rules-notice{padding:18px;background:#edf4ff;border-left:3px solid #b88b36;line-height:1.9;margin-bottom:20px}@media(prefers-reduced-motion:reduce){.feed-track{animation:none}.feed-viewport{overflow:auto}.feed-group[aria-hidden]{display:none}}

.student-home-stack{display:flex;flex-direction:column;gap:20px;min-width:0}.student-home-stack>.card,.student-home-stack>.spirit-panel{width:100%;box-sizing:border-box;margin:0}

.study-reminders{margin-bottom:20px}.reminder-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.reminder-grid article{min-width:0}.reminder-warning{color:#a74324;font-weight:600}.reminder-grid details{padding:12px 0;line-height:1.8}.reminder-grid p{overflow-wrap:anywhere}@media(max-width:700px){.reminder-grid{grid-template-columns:1fr;gap:12px}}

.prize-editor-photo{width:140px;height:140px;object-fit:contain;border-radius:12px;background:#eef4fa;display:block;margin:16px 0}

.order-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.order-detail-grid article{min-width:0;overflow-wrap:anywhere}.order-detail-grid h3{margin-top:12px}@media(max-width:1000px){.order-detail-grid{grid-template-columns:1fr}}

.name-link{background:transparent!important;color:#205db9!important;border:0!important;text-decoration:underline;text-underline-offset:4px;font-weight:600;cursor:pointer}.name-link:hover{color:#103b83!important}

.gift-tier-section{margin:28px 0}.bundle-panel{border-color:#ba973d}.bundle-items{margin:20px 0;gap:14px}.bundle-choice{padding:12px;border:1px solid #bdd1e9;border-radius:12px;background:#f3f8ff}.bundle-choice h3{font-size:18px}.bundle-choice p{font-size:14px}.bundle-choice small{color:#6d7d93}.bundle-choice img{border-radius:10px}.bundle-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px;background:#e9f1ff;border-radius:10px}.order-bundle-items{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}.order-bundle-items h3{width:100%;margin-bottom:0}.order-bundle-items article{display:flex;align-items:center;gap:12px;max-width:360px}.order-bundle-items img{width:78px;height:78px;object-fit:contain;border-radius:10px}

.phase-reminder{padding:22px;border:1px solid #b5bce0;border-left:5px solid #8d65c3;border-radius:14px;margin:20px 0;background:linear-gradient(110deg,#faf7ff,#e9efff)}.phase-reminder h2{margin:0}.phase-numbers{display:flex;gap:30px;flex-wrap:wrap}.phase-numbers strong{font-size:30px;color:#6a429e;padding:0 5px}.phase-reminder p{margin:10px 0}

.student-main .hero-unified{display:block;padding:30px 32px 26px;background:linear-gradient(115deg,#10386bf5 0%,#174d88df 50%,#467ebba8 100%);border-radius:10px}.hero-unified .hero-top{display:grid;grid-template-columns:minmax(0,1fr) 155px;align-items:center;gap:24px}.hero-unified .hero-copy{min-width:0}.student-main .hero-unified h1{font-size:32px;line-height:1.5;margin:12px 0 8px;letter-spacing:1px}.hero-unified .hero-week{font-weight:600;margin:8px 0}.hero-unified .hero-motto{margin:8px 0 0;color:#e2edff}.student-main .hero-unified .realm-sigil{display:flex;width:150px;height:150px;min-width:0;margin:0;box-sizing:border-box}.hero-phase-panel{padding:20px 22px;margin-top:24px;border:1px solid #d1b77988;background:linear-gradient(100deg,#102e5bbc,#386c9b66);border-radius:12px;backdrop-filter:blur(5px)}.hero-phase-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#ffdfa0;font-size:18px}.hero-phase-heading>span{font-size:14px;white-space:nowrap;color:#dcecff}.hero-phase-counts{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0 12px}.hero-phase-counts article{padding:0 12px 0 0;border-right:1px solid #b1c8e64d}.hero-phase-counts article:last-child{border:0;padding-left:8px}.hero-phase-counts article>span{font-size:14px;color:#d9e8ff}.hero-phase-counts article>div{display:flex;align-items:baseline;gap:10px;margin-top:4px}.hero-phase-counts strong{font-size:44px;line-height:1.2;color:#ffdf9c;font-weight:700}.hero-phase-counts article>div>span{font-size:17px}.student-main .hero-unified .hero-encouragement{font-size:16px;line-height:1.8;margin:14px 0 10px;color:white}.hero-phase-notes{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.hero-phase-notes span{padding:4px 8px;border-radius:5px;background:#e0edff1a;color:#fce4b1;font-size:14px}.student-main .hero-unified .hero-phase-footnote{font-size:14px;line-height:1.8;color:#cedff3;margin:12px 0 0;padding-top:12px;border-top:1px solid #b4cae337}.hero-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.student-main .hero-unified .hero-actions button{margin:0;padding:12px 18px;font-size:16px}.student-main .hero-unified .hero-actions .hero-records{background:transparent;color:#e5efff;border-color:#b6cae380}@media(max-width:650px){.student-main .hero-unified{padding:24px 22px}.hero-unified .hero-top{grid-template-columns:minmax(0,1fr) 105px;gap:12px}.student-main .hero-unified h1{font-size:26px;letter-spacing:0}.student-main .hero-unified .realm-sigil{width:104px;height:104px}.hero-unified .realm-sigil span{font-size:28px}.hero-unified .realm-sigil small{font-size:11px}.hero-phase-panel{padding:17px;margin-top:20px}.hero-phase-heading{font-size:17px}.hero-phase-counts{gap:12px}.hero-phase-counts strong{font-size:38px}.student-main .hero-unified p.hero-week,.student-main .hero-unified p.hero-motto{font-size:14px}.hero-actions{gap:10px}.student-main .hero-unified .hero-actions button{font-size:15px;padding:11px 13px}}@media(max-width:390px){.hero-unified .hero-top{grid-template-columns:minmax(0,1fr) 84px}.student-main .hero-unified .realm-sigil{width:82px;height:82px}.hero-unified .realm-sigil small{display:none}.student-main .hero-unified h1{font-size:23px}.hero-phase-heading{flex-wrap:wrap}}

.exchange-block-reason{background:#fff4e8;color:#8b4a16;border-left:3px solid #d79b57;padding:8px 10px;margin:10px 0;font-size:13px}.realm-sigil span{font-size:34px}.realm-sigil small:first-child{font-size:12px;margin:0 0 4px;color:#dceaff}
.post-agreement{white-space:pre-line;line-height:1.85;overflow-wrap:anywhere}
.gateway-content{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,.8fr);align-items:center;gap:clamp(26px,5vw,86px);width:min(1200px,90vw);min-height:calc(100svh - 185px);margin:0 auto 56px}.gateway-content .gate-copy{margin:0;max-width:590px}.gate-journey{justify-self:end;width:min(100%,430px);padding:25px 27px 22px;background:linear-gradient(155deg,#f8fcfff0,#e4f1ffdb);border:1px solid #b5d3f2;border-top:3px solid #bc9958;border-radius:16px;box-shadow:0 20px 55px #16488625;backdrop-filter:blur(12px)}.gate-journey-heading small{font-size:10px;letter-spacing:2.4px;color:#2869ba}.gate-journey-heading h2{margin:7px 0 5px;color:#174985;font:700 26px/1.35 'STKaiti','KaiTi','Microsoft Yahei',serif}.gate-journey-heading p{font-size:13px;color:#527397;line-height:1.7}.gate-journey ol{list-style:none;margin:20px 0 16px;padding:0}.gate-journey li{position:relative;display:flex;align-items:center;gap:15px;padding:8px 0}.gate-journey li:not(:last-child):after{content:'';position:absolute;left:21px;top:51px;bottom:-8px;border-left:1px dashed #94b5d8}.gate-journey li>span{flex:0 0 43px;width:43px;height:43px;display:grid;place-items:center;background:#e6f2ff;border:1px solid #9fc1e7;border-radius:50%;color:#1f5da7;font:700 15px Georgia,serif}.gate-journey li b{display:block;color:#184d8d;font-size:17px}.gate-journey li small{display:block;color:#6582a2;font-size:12px}.gate-journey-foot{border-top:1px solid #bbd2e9;padding-top:13px;color:#34669c;font-size:12px;letter-spacing:1px;text-align:center}@media(max-width:800px){.gateway-content{grid-template-columns:minmax(0,1fr) minmax(260px,.85fr);gap:24px;width:calc(100% - 48px);min-height:calc(100svh - 152px);margin:0 24px 56px}.gateway-content .gate-copy{margin:0;max-width:none}.gate-journey{padding:19px 19px 16px}.gate-journey-heading h2{font-size:20px;white-space:nowrap}.gate-journey-heading p{font-size:12px}.gate-journey li{gap:10px}.gate-journey li b{font-size:16px}}@media(max-width:690px){.gateway-content{display:block;min-height:0;margin:3vh 24px 95px}.gateway-content .gate-copy{margin:0}.gate-journey{width:100%;max-width:520px;margin:34px auto 0}.gate-bottom{position:relative;bottom:auto;margin:0 24px 24px;left:auto;right:auto}}

/* Decorative clouds sit behind the interface, leaving a light reading area. */
:root {
  --cloud-bank:
    radial-gradient(ellipse at 4% 90%, #fff 1%, #f8fcffef 10%, transparent 27%),
    radial-gradient(ellipse at 21% 100%, #fff 2%, #e8f5ff 16%, transparent 33%),
    radial-gradient(ellipse at 83% 98%, #f8fdff 7%, #d6ebffb0 21%, transparent 38%),
    radial-gradient(ellipse at 103% 77%, #fff 2%, #e5f4ffcc 14%, transparent 36%);
  --sky: radial-gradient(ellipse at 48% -14%, #fff 3%, #daf2ff9e 27%, transparent 58%),
    linear-gradient(155deg, #92c7f0, #dfedff 57%, #c3e1fb);
}
body { background: var(--cloud-bank), var(--sky); background-attachment: fixed; }
body:has(#app-world:not([hidden])):before { background: none; }
.gateway-art { background: var(--cloud-bank), var(--sky); }
.gateway-shade {
  background: linear-gradient(90deg,#f2f8ffba,transparent 72%),
    repeating-conic-gradient(from 82deg at 69% 4%,#fff4 0deg 2deg,transparent 2deg 14deg);
}
.hero, .hero.yesterday-hero {
  background: radial-gradient(ellipse at 96% 11%,#b8ebff94,transparent 35%),
    radial-gradient(ellipse at 107% 103%,#b4d8f273 3%,transparent 46%),
    radial-gradient(ellipse at 68% 123%,#87b7df7a,transparent 48%),
    linear-gradient(112deg,#123b72,#255989 67%,#477fab);
}
@media(max-width:800px) {
  body { background-attachment: scroll; }
  .gateway-shade { background: linear-gradient(180deg,#f2f9ffb0 0%,transparent 62%); }
  .gate-bottom span { display: none; }
  .gate-bottom { color:#355f88; }
  .hero, .hero.yesterday-hero { background: radial-gradient(ellipse at 102% 8%,#acd9f572,transparent 48%),linear-gradient(155deg,#153e77,#376e9f); }
}

/* Login keeps the art and form in separate regions on wide screens. */
.gateway { display:grid; place-items:center; padding:clamp(22px,5vw,68px); background:var(--cloud-bank),var(--sky); }
.login-landing {
  display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);
  grid-template-areas:"brand panel" "scene panel"; grid-template-rows:auto 1fr;
  width:min(1080px,100%); overflow:hidden; border:1px solid #d7bc86; border-radius:24px;
  background:#f6fbff; box-shadow:0 24px 80px #1b52972c;
}
.login-brand { grid-area:brand; display:flex; align-items:center; gap:10px; padding:22px 30px; background:#f9fcff; font-weight:750; }
.login-brand img { width:36px; height:36px; object-fit:contain; }
.login-scene {
  grid-area:scene; min-height:500px; display:flex; flex-direction:column; justify-content:space-between; gap:36px;
  padding:28px 30px 24px; background:
    linear-gradient(180deg,#f3fafff2 0%,#eef7ffaa 32%,transparent 62%,#163b77a6 100%),
    url('/activity/assets/login-cloudscape.png') center 47%/cover no-repeat;
}
.login-title h1 { margin:0; display:flex; align-items:baseline; flex-wrap:wrap; gap:0 .17em;
  font:800 clamp(38px,5.4vw,80px)/1.08 'STKaiti','KaiTi',serif; letter-spacing:0; color:#103b88; }
.login-title em { font-family:Georgia,serif; }
.login-title p { color:#1a4b81; font:700 clamp(15px,2vw,22px)/1.45 'KaiTi',serif; margin:12px 0 0; }
.login-realms { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin:0; padding:0; list-style:none; }
.login-realms li { text-align:center; background:#143e79ec; border:1px solid #e0c187; border-radius:10px; color:#ffebbd; padding:8px 3px; }
.login-realms b,.login-realms small { display:block; }
.login-realms small { margin-top:3px; color:#e0edff; font-size:11px; white-space:nowrap; }
.login-panel { grid-area:panel; background:linear-gradient(160deg,#fff,#edf5ff); display:grid; align-content:center; min-width:0; padding:clamp(24px,4vw,52px); }
.login-panel h2 { font:750 29px/1.2 'STKaiti','KaiTi',serif; color:#14386d; margin:0 0 16px; }
.activity-role-picker button { flex:1; min-width:0!important; padding:9px 3px; border-radius:8px; }
.login-panel .activity-role-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; margin:0 0 18px; }
.login-panel label { color:#244c76; font-size:14px; font-weight:650; }
.login-panel input { background:#fff; border:1px solid #b8cee8; border-radius:8px; padding:11px 12px; font-size:16px; }
.login-panel form button { width:100%; margin-top:5px; padding:12px; border:1px solid #bc9f64; border-radius:8px; background:linear-gradient(110deg,#143e87,#2562b8); }
.login-error { color:#9a352b; margin:8px 0 0; font-size:14px; }
@media(max-width:720px) {
  .gateway { place-items:start center; min-height:100svh; padding:14px; }
  .login-landing { grid-template-columns:minmax(0,1fr); grid-template-areas:"brand" "scene" "panel"; grid-template-rows:auto; border-radius:16px; }
  .login-brand { padding:12px 16px; }
  .login-brand img { width:29px; height:29px; }
  .login-scene { min-height:200px; gap:20px; padding:18px 15px 12px; background-position:center 24%; }
  .login-title h1 { font-size:clamp(32px,9vw,52px); }
  .login-title p { margin-top:5px; }
  .login-panel { padding:20px 16px 24px; }
  .login-panel h2 { font-size:24px; margin-bottom:12px; }
}

/* The activity landing leads to the separate identity-selection view. */
.gateway:not(.gateway-login-mode) .login-landing {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"brand" "scene";
}
.gateway:not(.gateway-login-mode) .login-scene {
  min-height:clamp(450px,66vh,680px);
  padding:clamp(30px,6vw,76px);
  background:
    linear-gradient(90deg,#edf7fff7 1%,#edf7ffd8 33%,#d8edff35 76%),
    linear-gradient(0deg,#245c9973,transparent 30%),
    url('/activity/assets/login-cloudscape.png') center 28%/cover no-repeat;
}
.gateway:not(.gateway-login-mode) .login-title h1 { max-width:8em; }
.landing-intro { margin:16px 0 24px; max-width:24em; line-height:1.7; color:#274d79; }
.landing-login {
  display:inline-block; padding:13px 28px; border:1px solid #d7b475; border-radius:7px;
  background:linear-gradient(110deg,#123d88,#2565c2); color:white;
  box-shadow:0 8px 22px #19468636; text-decoration:none; font-weight:700; font-size:17px;
}
.gateway:not(.gateway-login-mode) .login-realms { max-width:550px; width:100%; }
.gateway-login-mode .landing-intro,.gateway-login-mode .landing-login { display:none; }
.login-back { width:max-content; margin:0 0 19px; color:#315d89; font-size:14px; text-decoration:none; }
.login-back:hover { text-decoration:underline; }
@media(max-width:720px) {
  .gateway:not(.gateway-login-mode) .login-scene {
    min-height:525px; padding:32px 19px 20px;
    background:
      linear-gradient(180deg,#edf7fff0 1%,#e9f4ffc2 45%,#d9ecff35 78%,#143e7866),
      url('/activity/assets/login-cloudscape.png') center 20%/cover no-repeat;
  }
  .gateway:not(.gateway-login-mode) .login-title h1 { display:block; font-size:clamp(52px,12vw,72px); }
  .gateway:not(.gateway-login-mode) .login-title h1 span { display:block; }
}

.login-brand small { display:block; margin-top:5px; font-size:9px; letter-spacing:.19em; color:#3b6497; }
.gateway:not(.gateway-login-mode) .login-landing {
  grid-template-areas:"brand" "scene" "route" "footer";
  grid-template-rows:auto;
  background:linear-gradient(155deg,#eff7ff 25%,#bad6f3 66%,#294f90);
}
.gateway:not(.gateway-login-mode) .login-scene { min-height:0; }
.landing-kicker { letter-spacing:.34em; color:#375e8c; font-size:13px; margin-bottom:16px; }
.gateway:not(.gateway-login-mode) .login-title p:before { content:''; display:block; width:58px; height:2px; margin:18px 0; background:#bd9a54; }
.landing-features { display:flex; flex-wrap:wrap; align-items:center; gap:9px; color:#1c4d88; font-size:13px; }
.landing-features span { color:#9c712e; }
.landing-action { display:grid; justify-items:center; width:max-content; gap:12px; margin-top:28px; color:#27548c; }
.landing-action .landing-login { outline:1px solid #bd9a54; outline-offset:3px; }
.landing-action small { letter-spacing:.14em; }
.landing-route {
  grid-area:route; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,.75fr);
  gap:24px; margin:20px clamp(14px,5vw,54px); padding:clamp(18px,4vw,40px);
  background:#f2f8fff2; border:1px solid #a9c7ed; border-top:3px solid #bd9a54; border-radius:16px;
}
.landing-route-heading>small { color:#255c9c; letter-spacing:.15em; font-size:11px; }
.landing-route-heading h2 { margin:8px 0; color:#164680; }
.landing-route-heading p { margin:0; color:#3d628c; line-height:1.7; font-size:14px; }
.landing-route .login-realms { display:grid; grid-template-columns:1fr; gap:14px; }
.landing-route .login-realms li { display:flex; align-items:center; gap:10px; padding:0; color:#17477d; background:none; border:0; text-align:left; }
.landing-route .login-realms li>span { display:grid; place-items:center; flex:0 0 36px; height:36px; border-radius:50%; border:1px solid #a9c7eb; background:#e9f4ff; font:bold 14px Georgia,serif; }
.landing-route .login-realms small { color:#45698d; white-space:normal; }
.landing-route-summary { border-top:1px solid #b3cbea; padding-top:12px; color:#315b8b; font-size:13px; line-height:1.6; }
.landing-footer { grid-area:footer; margin:8px clamp(14px,5vw,54px) 24px; color:#fff; font-size:12px; }
.gateway-login-mode .landing-kicker,.gateway-login-mode .landing-features,.gateway-login-mode .landing-action,
.gateway-login-mode .landing-route,.gateway-login-mode .landing-footer { display:none; }
@media(max-width:720px) {
  .gateway:not(.gateway-login-mode) .login-scene { min-height:0; padding:28px 19px 32px; }
  .landing-route { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px 12px; }
  .landing-route-summary { grid-column:1/-1; }
}
@media(max-width:390px) {
  .landing-route { grid-template-columns:1fr; }
  .landing-route .login-realms { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(min-width:901px) {
  .gateway:not(.gateway-login-mode) .login-landing {
    grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);
    grid-template-areas:"brand brand" "scene route" "footer footer";
    align-items:center;
    background:
      linear-gradient(90deg,#edf7fff7 0%,#edf7ffda 37%,#d6eaff78 70%,#cfebff60),
      url('/activity/assets/login-cloudscape.png') center 29%/cover no-repeat;
  }
  .gateway:not(.gateway-login-mode) .login-scene {
    min-height:500px; justify-content:center; padding:clamp(35px,5vw,66px);
    background:none;
  }
  .gateway:not(.gateway-login-mode) .login-title h1 { display:block; font-size:clamp(52px,6vw,82px); }
  .gateway:not(.gateway-login-mode) .login-title h1 span { display:block; }
  .landing-route {
    grid-template-columns:1fr; gap:20px;
    margin:26px clamp(22px,4vw,52px) 26px 0; padding:24px;
    box-shadow:0 12px 34px #1f4b7929;
  }
  .landing-footer { color:#284b77; }
}
@media(min-width:721px) and (max-width:900px) {
  .gateway:not(.gateway-login-mode) .login-scene { padding:36px; }
  .landing-route { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .landing-route-summary { grid-column:1/-1; }
}

@media(max-width:720px) {
  .gateway:not(.gateway-login-mode) .login-landing {
    background:linear-gradient(180deg,#f3f9ff 8%,#dcecff 48%,#bed9f5 75%,#345f9d);
  }
  .gateway:not(.gateway-login-mode) .login-scene {
    padding-bottom:66px;
    background:
      linear-gradient(180deg,#edf7fff0 1%,#e9f4ffc2 42%,#e3f0ff28 69%,#deedfb 100%),
      url('/activity/assets/login-cloudscape.png') center 20%/cover no-repeat;
  }
  .gateway:not(.gateway-login-mode) .landing-route {
    position:relative; margin-top:-43px; margin-bottom:16px;
    background:linear-gradient(155deg,#f8fcff,#e6f1ff);
    box-shadow:0 10px 28px #214c8224;
  }
  .gateway:not(.gateway-login-mode) .landing-footer { margin-top:2px; }
}

@media(max-width:720px) {
  .gateway:not(.gateway-login-mode) .login-scene {
    padding-left:clamp(96px,34vw,245px);
    background:
      linear-gradient(180deg,transparent 72%,#deedfb 100%),
      linear-gradient(90deg,#e9f4ff16 4%,#edf6ff8c 27%,#f2f8ffef 45%,#f5faff 100%),
      url('/activity/assets/login-cloudscape.png') left 20%/cover no-repeat;
  }
  .gateway:not(.gateway-login-mode) .login-title h1 {
    font-size:clamp(35px,10vw,65px);
  }
  .gateway:not(.gateway-login-mode) .landing-kicker { letter-spacing:.18em; }
  .gateway:not(.gateway-login-mode) .landing-intro { font-size:14px; }
}
@media(max-width:380px) {
  .gateway:not(.gateway-login-mode) .login-scene { padding-left:28%; }
  .gateway:not(.gateway-login-mode) .landing-kicker { letter-spacing:.11em; }
}

.adjustment-choices { border:1px solid #bfd3ea; border-radius:8px; margin:12px 0; padding:10px; }
.adjustment-choices>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(125px,1fr)); gap:6px; }
.adjustment-choices label { display:flex; align-items:center; gap:6px; margin:0; padding:6px; }
.adjustment-choices input { width:auto; margin:0; accent-color:#235cc1; }

.rank-self {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px;
  margin:14px 0 18px; padding:16px 20px; border-radius:10px; border:1px solid #99bde5;
  border-left:4px solid #245fb8; background:linear-gradient(120deg,#f7fbff,#dfedff);
}
.rank-self p,.rank-self h2 { margin:0 0 4px; }
.rank-self p,.rank-self span { color:#345578; font-size:14px; }
.rank-self h2 { color:#173b69; }
.rank-self strong { color:#164f9f; font:700 35px/1.1 system-ui,sans-serif; }
.rank-top-1 { --medal-bg:#fff0ce; --medal-ink:#704a06; --medal-border:#c69b45; }
.rank-top-2 { --medal-bg:#e9eef6; --medal-ink:#354d66; --medal-border:#9bacbf; }
.rank-top-3 { --medal-bg:#f4e4da; --medal-ink:#784a32; --medal-border:#b98463; }
.rank-top td { background:var(--medal-bg); }
.rank-medal,.rank-me { display:inline-block; padding:3px 8px; border-radius:12px; font-weight:700; white-space:nowrap; }
.rank-medal { color:var(--medal-ink); border:1px solid var(--medal-border); background:var(--medal-bg); }
.rank-own td { background:#d8eaff; font-weight:700; }
.rank-own td:first-child { box-shadow:inset 4px 0 #1c58ab; }
.rank-own:focus { outline:2px solid #1c58ab; outline-offset:-2px; }
.rank-me { color:white; background:#2258aa; }
@media(max-width:600px) {
  .rank-self { padding:12px 14px; }
  .rank-self strong { font-size:30px; }
}
