/* Cinnabar hub apps: Classroom, Forums, Calendar, Games — shared layout and components */
.hub { position: relative; z-index: 1; display: grid; grid-template-columns: 210px 1fr; height: 100vh; }
.hub-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--line); background: rgba(6,5,5,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: auto; }
.hub-side .brand { padding: 2px 6px 14px; }
.hub-side .brand img.word { height: 28px; }
.hub-side a { display: flex; align-items: center; gap: 11px; height: 34px; padding: 0 11px; border-radius: 9px; text-decoration: none; color: var(--text); transition: background .15s, transform .15s; }
.hub-side a svg { width: 17px; height: 17px; color: var(--muted); }
.hub-side a:hover { background: rgba(255,236,228,.06); transform: translateX(2px); }
.hub-side a.on { background: rgba(226,54,31,.16); color: #ffd9cf; }
.hub-side a.on svg { color: #ff8f73; }
.hub-side .cap { margin-top: 14px; }
.hub-main { overflow: auto; padding: 0 28px 60px; scroll-behavior: smooth; }
.hub-main.full { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.hub-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; height: 56px; margin: 0 -28px; padding: 0 28px; background: linear-gradient(rgba(6,5,5,.88), rgba(6,5,5,.6) 70%, transparent); }
.hub-bar h1 { margin: 0; font: 600 19px var(--display); letter-spacing: .01em; display: flex; align-items: center; gap: 10px; min-width: 0; }
.hub-bar h1 .crumb { color: var(--muted); font-weight: 400; cursor: pointer; }
.hub-bar h1 .crumb:hover { color: var(--text); }
.hub-bar .grow { flex: 1; }
.hub-bar .me { width: 32px; height: 32px; cursor: pointer; margin: 0; }

/* entrance animation for anything rendered into the page */
@keyframes hubIn { from { opacity: 0; transform: translateY(8px); } }
@keyframes hubPop { from { opacity: 0; transform: scale(.96); } }
.anim > * { animation: hubIn .32s cubic-bezier(.2,.8,.2,1) both; }
.anim > *:nth-child(2) { animation-delay: .03s; } .anim > *:nth-child(3) { animation-delay: .06s; } .anim > *:nth-child(4) { animation-delay: .09s; }
.anim > *:nth-child(5) { animation-delay: .12s; } .anim > *:nth-child(6) { animation-delay: .15s; } .anim > *:nth-child(n+7) { animation-delay: .18s; }
.dialog { animation: hubPop .18s cubic-bezier(.2,.8,.2,1); }
.menu { animation: hubPop .12s ease-out; transform-origin: top left; }
@media (prefers-reduced-motion: reduce) { .anim > *, .dialog, .menu { animation: none !important; } }

/* tiles: the big picture buttons */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 8px; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 150px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--panel); backdrop-filter: blur(14px); cursor: pointer; text-align: left; padding: 0; color: var(--text); text-decoration: none; transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-3px); border-color: rgba(255,122,26,.55); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.tile .ban { position: relative; height: 82px; padding: 12px 14px; color: #fff; overflow: hidden; }
.tile .ban::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.tile .ban b { position: relative; z-index: 1; display: block; font: 600 17px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .ban span { position: relative; z-index: 1; font-size: 12.5px; opacity: .88; }
.tile .body { flex: 1; padding: 10px 14px 12px; font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.tile .big-ico { position: absolute; right: 12px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.2); font: 700 18px var(--display); color: #fff; }
.tile.add { align-items: center; justify-content: center; gap: 8px; border-style: dashed; background: rgba(16,12,11,.5); color: var(--muted); font-weight: 600; }
.tile.add svg { width: 30px; height: 30px; }
.tile.add:hover { color: var(--text); }

/* tabs */
.tabs { display: flex; gap: 4px; margin: 4px 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; padding: 9px 14px; border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #ffcfc2; }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red); animation: hubIn .2s; }

/* class header banner */
.cbanner { position: relative; border-radius: 16px; padding: 22px 24px; min-height: 130px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.cbanner::before { content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cbanner::after { content: ""; position: absolute; right: 90px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(0,0,0,.12); }
.cbanner h2 { position: relative; z-index: 1; margin: 0; font: 700 28px/1.1 var(--display); }
.cbanner p { position: relative; z-index: 1; margin: 4px 0 0; opacity: .9; }
.cbanner .code { position: absolute; z-index: 1; top: 14px; right: 16px; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.3); font: 700 15px var(--display); letter-spacing: .12em; cursor: pointer; }
.cbanner .code small { font: 500 10px var(--sans); letter-spacing: .06em; opacity: .75; text-transform: uppercase; }

/* cards for posts, threads, events */
.cols { display: grid; grid-template-columns: 200px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 700px) { .cols { grid-template-columns: 1fr; } .hub { grid-template-columns: 1fr; } .hub-side { display: none; } }
.stack { display: flex; flex-direction: column; gap: 10px; }
.post { padding: 14px 16px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(14px); transition: border-color .15s, transform .15s; }
.post.click { cursor: pointer; } .post.click:hover { border-color: rgba(255,122,26,.45); transform: translateY(-1px); }
.post .head { display: flex; align-items: center; gap: 10px; }
.post .head .avatar { margin: 0; width: 32px; height: 32px; }
.post .head .who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.post .head .who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post .head .who span { color: var(--muted); font-size: 12px; }
.post .txt { margin-top: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post .meta { display: flex; gap: 10px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.glyph { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.glyph svg { width: 18px; height: 18px; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(255,236,228,.07); border: 1px solid var(--line2); color: var(--muted); }
.chip.red { background: rgba(226,54,31,.18); color: #ffb3a6; border-color: rgba(226,54,31,.35); }
.chip.green { background: rgba(80,190,120,.15); color: #9fe0b2; border-color: rgba(80,190,120,.35); }
.chip.amber { background: rgba(244,168,58,.15); color: #ffd28a; border-color: rgba(244,168,58,.35); }
.compose { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); cursor: text; color: var(--muted); transition: border-color .15s; }
.compose:hover { border-color: var(--line2); color: var(--text); }
.compose .avatar { margin: 0; }
textarea.field { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.side-card { padding: 14px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); }
.side-card h3 { margin: 0 0 8px; font: 600 13px var(--display); color: var(--muted); }
.comments { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.comments .c { display: flex; gap: 8px; font-size: 13px; }
.comments .c .avatar { margin: 0; width: 24px; height: 24px; font-size: 10px; }
.comments .c div { flex: 1; overflow-wrap: anywhere; }
.comments input { height: 32px; }
.empty-art { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-art .ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, rgba(255,122,26,.35), rgba(226,54,31,.12)); border: 1px solid rgba(255,122,26,.3); animation: hubPop .4s; }
.empty-art .ring svg { width: 40px; height: 40px; color: #ffb39c; }
.empty-art b { color: var(--text); font: 600 16px var(--display); }

/* people & grades */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); text-align: center; position: relative; }
.person .avatar { margin: 0; width: 54px; height: 54px; font-size: 20px; }
.person b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .x { position: absolute; top: 6px; right: 6px; }
.gradebook { overflow: auto; border-radius: 13px; border: 1px solid var(--line); background: var(--panel); }
.gradebook table { border-collapse: collapse; min-width: 100%; }
.gradebook th, .gradebook td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.gradebook th:first-child, .gradebook td:first-child { text-align: left; position: sticky; left: 0; background: var(--panel-solid); }
.gradebook th { font-size: 12px; color: var(--muted); font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.att { display: inline-flex; gap: 4px; }
.att button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); background: none; cursor: pointer; font-weight: 700; font-size: 12px; color: var(--muted); transition: background .12s, transform .12s; }
.att button:hover { transform: scale(1.08); }
.att button.on.present { background: #2f8f55; color: #fff; border-color: transparent; }
.att button.on.late { background: #c98a1d; color: #fff; border-color: transparent; }
.att button.on.absent { background: var(--red); color: #fff; border-color: transparent; }
.att button.on.excused { background: #5b6bbf; color: #fff; border-color: transparent; }

/* forums */
.vote { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 44px; flex: none; }
.vote button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line2); background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; transition: transform .12s, background .12s; }
.vote button:hover { transform: translateY(-2px); }
.vote button.on { background: rgba(226,54,31,.25); color: #ffb3a6; border-color: rgba(226,54,31,.5); }
.vote b { font-size: 13px; }
.thread-row { display: flex; gap: 12px; align-items: flex-start; }
.thread-row .t { flex: 1; min-width: 0; }
.thread-row .t b { font-size: 15px; }

/* calendar */
.cal-head { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; }
.cal-head h2 { margin: 0 8px 0 4px; font: 700 22px var(--display); min-width: 210px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dow { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 0 6px; }
.cal .day { min-height: 104px; padding: 6px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; overflow: hidden; transition: border-color .15s, background .15s; }
.cal .day:hover { border-color: var(--line2); background: rgba(30,22,19,.85); }
.cal .day.out { opacity: .4; }
.cal .day .n { font-weight: 700; font-size: 12.5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .n { background: var(--red); color: #fff; }
.cal .ev { font-size: 11.5px; padding: 2px 6px; border-radius: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: filter .12s; }
.cal .ev:hover { filter: brightness(1.15); }
.cal .ev.due { background: rgba(255,236,228,.08); color: #ffd2c6; border-left: 3px solid var(--orange); border-radius: 3px; }

/* games */
.game { min-height: 210px; }
.game .art { height: 130px; display: grid; place-items: center; position: relative; overflow: hidden; }
.game .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.game:hover .art img { transform: scale(1.06); }
.game .art .glyph-big { font: 800 40px var(--display); color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.player { position: fixed; inset: 0; z-index: 950; background: #000; display: flex; flex-direction: column; animation: cbfade .2s; }
.player .pbar { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; background: #0d0a09; border-bottom: 1px solid var(--line); }
.player iframe { flex: 1; border: 0; width: 100%; background: #000; }

/* ── nothing gets cut off ─────────────────────────────────────────────────── */
.hub { grid-template-columns: 236px minmax(0, 1fr); }            /* minmax(0,…): wide tables scroll inside, they don't push the page off screen */
.hub-side { overflow-x: hidden; }
.hub-side a.cb-logo { height: auto; padding: 0; flex-wrap: wrap; gap: 6px; background: none !important; transform: none !important; box-shadow: none !important; }
.hub-side .brand img.word { height: 26px; max-width: 100%; }
.hub-side a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-side .cb-logo .beta { margin-left: 0; overflow: visible; }
.hub-bar { gap: 8px; }
.hub-bar h1 { flex: 0 1 auto; overflow: hidden; }
.hub-bar h1 > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hub-bar > div:last-of-type, .hub-bar .btn { flex: none; white-space: nowrap; }
.tabs { max-width: 100%; flex-wrap: wrap; border-radius: 22px !important; overflow: visible; }
.cbanner h2, .post b, .tile .body { overflow-wrap: anywhere; }
.cbanner h2 { padding-right: 150px; }
.cbanner .code { flex-direction: column; align-items: flex-end; gap: 0; font-size: 22px; letter-spacing: .18em; }
.dialog { max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow: auto; }
@media (max-width: 700px) {
  .hub { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .hub-side { display: flex; flex-direction: row; align-items: center; height: auto; margin: 8px 8px 0; padding: 6px 8px; border-radius: 18px; overflow-x: auto; }
  .hub-side .brand, .hub-side .cap, .hub-side a span { display: none; }
  .hub-side a { flex: none; width: 40px; padding: 0; justify-content: center; }
  .hub-main { padding: 0 14px 40px; } .hub-bar { margin: 0 -14px; padding: 0 14px; }
  .cbanner h2 { font-size: 22px; padding-right: 110px; }
}

/* ── live activities ──────────────────────────────────────────────────────── */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff4d3a; box-shadow: 0 0 0 0 rgba(255, 77, 58, .7); animation: livePulse 1.6s infinite; flex: none; }
@keyframes livePulse { to { box-shadow: 0 0 0 9px rgba(255, 77, 58, 0); } }
.live-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(226, 54, 31, .16); border: 1px solid rgba(255, 122, 82, .4); }
.live-bar .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.live-chip { gap: 8px; max-width: 40vw; } .live-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.live-chip .live-dot { background: #fff; }

/* ── classwork rows, questions and the answer grid ────────────────────────── */
.work { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; color: var(--text); border-left: 5px solid var(--k, var(--red)); }
.work .who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.work .who small { font: 700 10.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--k); filter: brightness(1.5); }
.work .who b { font-size: 15.5px; } .work .who span { font-size: 12.5px; }
.work-prog { display: grid; grid-template-columns: auto auto; column-gap: 5px; align-items: baseline; width: 110px; flex: none; }
.work-prog .fq-bar { grid-column: 1 / -1; margin-top: 4px; }
.fq-bar { height: 6px; border-radius: 6px; background: rgba(255, 236, 228, .1); overflow: hidden; }
.fq-bar i { display: block; height: 100%; width: 0; border-radius: 6px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.fq-nav { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 10px 14px; border-radius: 16px; background: var(--panel-solid, #1a1210); border: 1px solid var(--line2); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.fq-nav .fq-bar { grid-column: 1 / -1; }
.fq-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.fq-dots button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line2); background: none; color: var(--muted); font-weight: 700; font-size: 12px; cursor: pointer; transition: all .2s; }
.fq-dots button:hover { border-color: var(--text); color: var(--text); }
.fq-dots button.done { background: #2f8f55; border-color: #2f8f55; color: #fff; }
.fq { display: flex; gap: 14px; align-items: flex-start; padding: 18px; scroll-margin-top: 140px; }
.fq-n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; font: 700 15px var(--display); }
.fq-main { flex: 1; min-width: 0; }
.fq-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; }
.fq-head b { font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; } .fq-head .chip { flex: none; }
.fq-body { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.fq-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line2); cursor: pointer; overflow-wrap: anywhere; transition: border-color .15s, background .15s, transform .15s; }
.fq-opt:hover { border-color: rgba(255, 236, 228, .45); transform: translateX(2px); }
.fq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fq-l { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid var(--line2); font-weight: 700; font-size: 12.5px; color: var(--muted); }
.fq-opt:has(input:checked) { border-color: #ff7a52; background: rgba(226, 54, 31, .16); }
.fq-opt:has(input:checked) .fq-l { background: var(--red); border-color: var(--red); color: #fff; }
.fq-opt:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }
.fq-grid td, .fq-grid th { padding: 6px 8px; }
.fq-cell { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 700; background: rgba(255, 236, 228, .08); color: var(--muted); }
.fq-cell.right { background: #2f8f55; color: #fff; } .fq-cell.wrong { background: #c0392b; color: #fff; } .fq-cell.none { background: none; border: 1px dashed var(--line2); }
@media (max-width: 560px) { .fq { padding: 14px; gap: 10px; } .work-prog { display: none; } }
.gradebook th { white-space: normal; max-width: 170px; min-width: 70px; overflow: visible; line-height: 1.25; vertical-align: bottom; }
.person span { max-width: 100%; }
.play-frame { flex: 1; width: 100%; margin: 0; border: 0; background: rgba(8, 6, 6, .62); animation: hubIn .35s cubic-bezier(.2,.8,.2,1) both; }
.hub-side a.sub { height: 30px; margin-left: 22px; font-size: 13px; color: var(--muted); }
.hub-side a.sub.on { color: #ffd9cf; }
.hub-dot { width: 10px; height: 10px; border-radius: 4px; flex: none; margin: 0 4px 0 3px; box-shadow: 0 0 0 3px rgba(255,255,255,.06); }
.hub-school .cap { margin-top: 14px; }
.hub-school { display: flex; flex-direction: column; gap: 2px; }
/* quizzes, tests and worksheets as flashcards */
.fq-deck { position: relative; display: grid; perspective: 1600px; min-height: 340px; margin: 14px 10px 22px; }
.fq-deck::before, .fq-deck::after { content: ""; grid-area: 1 / 1; border-radius: 28px; background: rgba(46, 28, 24, .7); border: 1px solid rgba(255, 236, 228, .1); }
.fq-deck::before { transform: translate(14px, 14px) rotate(1.6deg); }
.fq-deck::after { transform: translate(7px, 7px) rotate(.8deg); background: rgba(58, 34, 29, .78); }
.fq-deck > .fq { grid-area: 1 / 1; z-index: 1; display: none; min-height: 320px; padding: 34px 34px 28px; border-radius: 28px; align-items: flex-start;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 50%), rgb(36, 23, 20); border: 1px solid rgba(255, 236, 228, .14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .16); transform-origin: left center; backface-visibility: hidden; }
.fq-deck > .fq.on, .fq-deck > .fq.gone { display: flex; }
.fq-deck > .fq.gone { pointer-events: none; }
.fq-deck > .fq.gone.fwd { z-index: 3; animation: fqFlapOut .55s cubic-bezier(.55, 0, .7, .4) both; }
.fq-deck > .fq.on.fwd { animation: fqRise .55s cubic-bezier(.2, .8, .2, 1) both; }
.fq-deck > .fq.on.back { z-index: 3; animation: fqFlapIn .55s cubic-bezier(.25, .7, .3, 1.05) both; }
.fq-deck > .fq.gone.back { animation: fqSink .55s ease both; }
@keyframes fqFlapOut { 0% { transform: none; } 30% { transform: rotateY(-14deg) translateZ(30px); box-shadow: 30px 30px 70px rgba(0, 0, 0, .6); } 100% { transform: rotateY(-108deg) translateZ(30px); opacity: 0; } }
@keyframes fqFlapIn { 0% { transform: rotateY(-108deg) translateZ(30px); opacity: 0; } 70% { transform: rotateY(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes fqRise { from { transform: translate(7px, 7px) rotate(.8deg) scale(.97); filter: brightness(.7); } to { transform: none; filter: none; } }
@keyframes fqSink { to { transform: translate(7px, 7px) rotate(.8deg) scale(.97); filter: brightness(.6); opacity: 0; } }
.fq-deck > .fq .fq-head b { font: 600 clamp(19px, 2.2vw, 26px)/1.3 var(--display); }
.fq-deck > .fq .fq-n { width: 46px; height: 46px; font-size: 18px; }
.fq-deck .fq-opt { padding: 14px 16px; border-radius: 16px; font-size: 15.5px; transition: transform .15s, background .15s, border-color .15s; }
.fq-deck .fq-opt:hover { transform: translateY(-2px); }
.fq-deck .fq-opt:has(input:checked) { border-color: var(--red); background: rgba(226, 54, 31, .2); box-shadow: 0 0 0 3px rgba(226, 54, 31, .18); }
.fq-dots button.here { outline: 2px solid #fff; outline-offset: 2px; }
.fq-move { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.fq-move .btn { height: 44px; padding: 0 22px; border-radius: 22px; }
.fq-move .btn svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .fq-deck > .fq.on, .fq-deck > .fq.gone { animation: none !important; } .fq-deck > .fq.gone { display: none; } }
.hub-main > .anim { container-type: inline-size; }
@container (max-width: 720px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > * { min-width: 0; }

.hub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 2px 2px 4px; }
.hub-side .hub-tiles a, .side .hub-tiles a { flex-direction: column; justify-content: center; gap: 4px; height: 54px; padding: 4px 2px; border-radius: 14px; margin: 0;
  background: rgba(226, 54, 31, .11); border: 1px solid rgba(255, 150, 120, .12); font-size: 11.5px; font-weight: 600; text-align: center; }
.hub-side .hub-tiles a:hover, .side .hub-tiles a:hover { transform: translateY(-1px); background: rgba(226, 54, 31, .2); }
.hub-side .hub-tiles a.on, .side .hub-tiles a.on { background: rgba(226, 54, 31, .32) !important; border-color: rgba(255, 150, 120, .35); }
.hub-tiles a svg, .hub-tiles a .kind { width: 19px !important; height: 19px !important; color: #ff8f73 !important; flex: none; }
.hub-tiles a span { max-width: 100%; }
.hub-tiles.office a { background: rgba(255, 236, 228, .05); border-color: rgba(255, 236, 228, .08); }
.hub-side { gap: 1px; } .hub-side > a:not(.sub), .hub-school > a:not(.sub) { height: 32px; } .hub-side .hub-tiles a { height: 54px; } .hub-side .cap, .hub-school .cap { margin-top: 10px; }
@media (max-width: 700px) {
  .hub-side .hub-school, .hub-side .hub-tiles { display: contents; }
  .hub-side .hub-tiles a { height: 40px !important; width: 40px; padding: 0; border-radius: 12px; }
  .hub-side a.sub { display: none; }
}
@media (max-width: 700px) {
  .hub-side .hub-tiles a { width: 56px; height: 46px !important; gap: 2px; }
  .hub-side .hub-tiles a span { display: block !important; font-size: 9.5px; }
}

.hub-side.rail { position: fixed; left: 0; top: 0; bottom: 0; width: 64px; z-index: 40; transition: width .22s var(--spring, ease); }
body.has-rail { padding-left: 64px; }
body.rail-open .hub-side.rail { width: 210px; box-shadow: 18px 0 40px rgba(0,0,0,.45); }
@media (min-width: 1280px) { body.has-rail.rail-open { padding-left: 210px; } body.rail-open .hub-side.rail { box-shadow: none; } }
body:not(.rail-open) .hub-side.rail span, body:not(.rail-open) .hub-side.rail .cap, body:not(.rail-open) .hub-side.rail .brand img.word,
body:not(.rail-open) .hub-side.rail .brand .beta, body:not(.rail-open) .hub-side.rail a.sub { display: none; }
body:not(.rail-open) .hub-side.rail .hub-tiles { grid-template-columns: 1fr !important; }
body:not(.rail-open) .hub-side.rail .hub-tiles a { height: 34px !important; font-size: 0 !important; }
body:not(.rail-open) .hub-side.rail > a, body:not(.rail-open) .hub-side.rail .hub-school > a { justify-content: center; padding: 0; }
.rail-toggle { display: grid; place-items: center; width: 40px; height: 36px; margin: 0 0 8px 2px; border: 0; border-radius: 10px; background: rgba(255,236,228,.06); color: var(--text); cursor: pointer; }
body:not(.rail-open) .hub-side.rail.fit-2 .hub-tiles a, body:not(.rail-open) .hub-side.rail.fit-2 > a { height: 28px !important; }
body:not(.rail-open) .hub-side.rail.fit-3 .hub-tiles a, body:not(.rail-open) .hub-side.rail.fit-3 > a, body:not(.rail-open) .hub-side.rail.fit-3 .hub-school > a { height: 24px !important; }
body:not(.rail-open) .hub-side.rail.fit-3 .rail-toggle { height: 28px; margin-bottom: 2px; }
.rail-toggle:hover { background: rgba(226,54,31,.2); } .rail-toggle svg { width: 18px; height: 18px; }
.hub-side.rail .brand { display: flex; flex-direction: column; align-items: flex-start; }



.game-live { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; border-color: rgba(255, 120, 90, .4); }
.game-live .grow, .game-past .grow, .game-row .grow { flex: 1; min-width: 0; }
.game-make { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.game-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.game-opt { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 11px 13px; border-radius: 12px; background: rgba(255, 236, 228, .04); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.game-opt:hover { border-color: rgba(255, 150, 120, .35); } .game-opt.on { background: rgba(226, 54, 31, .16); border-color: rgba(255, 150, 120, .6); }
.game-opt span { font-size: 12.5px; line-height: 1.35; }
.game-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; } .game-row .field { width: auto; }
.game-check { display: flex; align-items: center; gap: 7px; }
.game-past { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }

/* EyeCandy / EarCandy as their own apps */
.hub.solo, .hub.solo.solo { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
.solo-mark { font-weight: 700; font-size: 18px; letter-spacing: .01em; margin-right: 14px; background: linear-gradient(180deg, #fff, #b9bec7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.solo-mark { display: inline-flex; align-items: center; gap: 10px; }
.solo-mark img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.solo-mark span { background: linear-gradient(180deg, #fff, #b9bec7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.solo .hub-bar h1 { font-weight: 500; opacity: .62; font-size: 15px; }
.solo .hub-bar h1::before { content: "/"; margin-right: 10px; opacity: .5; }
