/* ================= Shared modal ================= */
.f-modal { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 14px; background: rgba(15,5,40,.6); animation: fadeIn .2s; }
.f-card { width: min(640px, 100%); max-height: 94vh; overflow-y: auto; background: var(--card); color: var(--ink); border-radius: 30px; padding: 20px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: fbIn .5s cubic-bezier(.2,1.5,.4,1); }
.f-card h2 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 34px); }
.f-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.f-lbl2 { display: block; font-weight: 800; color: #5b21b6; margin: 10px 0 4px; text-align: right; }
.f-input { width: 100%; font-family: var(--font); font-size: 22px; padding: 10px 14px; border-radius: 16px; border: 3px solid #ddd6fe; background: #faf8ff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.f-input:focus { outline: none; border-color: #7c3aed; background: #fff; }
.f-hint { margin: 0 0 8px; color: #6b5fa0; }

/* ================= Profiles ================= */
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pf-item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 22px; background: #f5f3ff; border: 4px solid transparent; color: var(--ink); transition: transform .15s; animation: optIn .4s both; }
.pf-item:hover { transform: translateY(-3px); }
.pf-item.on { border-color: var(--green); background: #f0fdf4; }
.pf-av { font-size: 54px; line-height: 1.1; }
.pf-nm { font-size: 18px; font-weight: 800; }
.pf-st { font-size: 14px; color: #92400e; }
.pf-add { background: #fff; border: 4px dashed #c4b5fd; }
.pf-avs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pf-avb { width: 58px; height: 58px; font-size: 36px; border-radius: 18px; background: #f5f3ff; border: 3px solid transparent; transition: transform .15s; }
.pf-avb.on { border-color: #7c3aed; background: #ede9fe; transform: scale(1.12); }

/* ================= Team race ================= */
.mode-seg { display: flex; background: rgba(255,255,255,.2); border-radius: 999px; padding: 4px; }
.mode-seg button { height: 44px; padding: 0 16px; border-radius: 999px; font-size: 17px; font-weight: 800; background: transparent; color: #fff; }
.mode-seg button.on { background: #fff; color: var(--ink); }
.race { width: min(900px, 100%); display: flex; flex-direction: column; gap: 6px; position: relative; margin-top: 4px; }
.race-lane { display: flex; align-items: center; gap: 8px; opacity: .75; transition: opacity .3s, transform .3s; }
.race-lane.active { opacity: 1; transform: scale(1.02); }
.race-team { flex: none; width: 170px; font-weight: 800; color: #fff; font-size: 16px; background: var(--tc); padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.race-team b { background: #fff; color: var(--tc); border-radius: 999px; padding: 0 8px; margin-right: 4px; }
.race-road { position: relative; flex: 1; height: 50px; border-radius: 999px; background: repeating-linear-gradient(90deg, #fde68a 0 22px, #fcd34d 22px 44px); box-shadow: inset 0 -5px 0 rgba(0,0,0,.12); border: 3px solid rgba(255,255,255,.6); }
.race-lane.active .race-road { box-shadow: 0 0 0 4px var(--tc), inset 0 -5px 0 rgba(0,0,0,.12); }
.race-finish { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; }
.race-racer { position: absolute; right: 0; top: 50%; transform: translateY(-58%) scaleX(1); font-size: 44px; transition: right 1s cubic-bezier(.3,1.4,.5,1); filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); }
.race-racer.hop { animation: hop .5s ease-in-out 2; }
@keyframes hop { 50% { transform: translateY(-95%) rotate(-8deg); } }
.race-turn { position: absolute; top: -56px; left: 50%; transform: translateX(-50%) scale(0); color: #fff; font-size: clamp(20px, 4vw, 28px); font-weight: 800; padding: 6px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,.3); z-index: 3; pointer-events: none; }
.race-turn.show { animation: turnIn 2.2s forwards; }
@keyframes turnIn { 0% { transform: translateX(-50%) scale(0) rotate(-10deg); } 15% { transform: translateX(-50%) scale(1.15); } 25%, 80% { transform: translateX(-50%) scale(1); opacity: 1; } 100% { transform: translateX(-50%) scale(.8); opacity: 0; } }
body.team-mode .trail { display: none; }
.team-result { background: rgba(255,255,255,.95); color: var(--ink); border-radius: 26px; padding: 12px 20px; width: min(640px, 100%); animation: fbIn .7s cubic-bezier(.2,1.6,.4,1); }
.tr-title { font-size: clamp(26px, 5vw, 38px); font-weight: 800; color: #b45309; }
.tr-scores { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.tr-scores span { font-size: 22px; font-weight: 800; padding: 4px 16px; border-radius: 999px; border: 3px solid var(--tc); background: rgba(255,255,255,.9); color: var(--ink); }
.tr-scores span.win { background: var(--tc); color: #fff; transform: scale(1.1); }

/* ================= Stickers ================= */
.stk-badge {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 42px; color: #fff; font-weight: 800;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.7) 0 14%, transparent 15%), radial-gradient(circle, var(--c, #7c3aed) 0 62%, #fff 63% 70%, var(--c, #7c3aed) 71%);
  box-shadow: 0 6px 0 rgba(0,0,0,.15), 0 0 0 3px rgba(255,255,255,.6);
}
.stk-toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 95; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 10px 20px 10px 14px; border-radius: 999px; font-size: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: toastIn .6s cubic-bezier(.2,1.6,.4,1); }
.stk-toast .stk-badge { width: 58px; height: 58px; font-size: 32px; animation: spin 1.2s ease-out; }
.stk-toast.out { animation: toastOut .4s forwards; }
@keyframes toastIn { from { transform: translateX(-50%) translateY(-120px) scale(.5); } }
@keyframes toastOut { to { transform: translateX(-50%) translateY(-120px); opacity: 0; } }
.alb { max-width: 1000px; margin: 0 auto; text-align: center; color: #fff; padding-bottom: 14vh; }
.alb h2 { margin: 0; font-size: clamp(28px, 5.5vw, 40px); }
.alb-count { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 20px; margin: 6px 0 12px; }
.alb-bar { width: min(320px, 60vw); height: 18px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.alb-bar span { display: block; height: 100%; background: linear-gradient(90deg, #ffd23f, #ff9f1c); border-radius: 999px; transition: width 1s; }
.alb-page { background: #fffdf2; color: var(--ink); border-radius: 26px; padding: 12px 14px 16px; margin-bottom: 14px; box-shadow: 0 10px 0 rgba(0,0,0,.12); background-image: radial-gradient(#e9e2c9 1px, transparent 1px); background-size: 18px 18px; }
.alb-page h3 { margin: 0 0 10px; font-size: 20px; }
.alb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.alb-st { display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; color: var(--ink); }
.alb-st .stk-badge { transition: transform .2s; }
.alb-st.has .stk-badge { animation: stickIn .6s both cubic-bezier(.2,1.6,.4,1); transform: rotate(-4deg); }
.alb-st.has:nth-child(even) .stk-badge { transform: rotate(5deg); }
.alb-st.lock .stk-badge { background: #e5e7eb; color: #9ca3af; box-shadow: inset 0 4px 8px rgba(0,0,0,.12); border: 3px dashed #cbd5e1; font-size: 34px; }
.alb-st.wig .stk-badge { animation: wiggle .6s; }
.alb-nm { font-size: 13px; font-weight: 700; line-height: 1.4; min-height: 36px; }
@keyframes stickIn { from { transform: scale(0) rotate(-60deg); } }
.alb-tip { position: fixed; z-index: 96; width: 260px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 14px; font-size: 15px; text-align: center; animation: fadeIn .2s; pointer-events: none; }

/* ================= Certificate ================= */
.cert-ov { position: fixed; inset: 0; z-index: 90; background: rgba(15,5,40,.7); overflow: auto; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: fadeIn .3s; }
.cert-tools { display: flex; gap: 10px; }
.cert { width: min(1000px, 100%); aspect-ratio: 1.414; background: #fffdf5; border-radius: 10px; padding: 2.2%; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: fbIn .7s cubic-bezier(.2,1.4,.4,1); color: #3b2a1a; container-type: inline-size; }
.cert-frame { position: relative; height: 100%; border: 1.2cqw double #c9a227; border-radius: 8px; outline: .4cqw solid #2e7d6b; outline-offset: -2.4cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9cqw; background: radial-gradient(circle at center, #fff 40%, #fdf6dc); }
.cert-corner { position: absolute; font-size: 4cqw; }
.cert-corner.c1 { top: 2cqw; right: 2.4cqw; } .cert-corner.c2 { top: 2cqw; left: 2.4cqw; } .cert-corner.c3 { bottom: 2cqw; right: 2.4cqw; } .cert-corner.c4 { bottom: 2cqw; left: 2.4cqw; }
.cert-lanterns { font-size: 4cqw; letter-spacing: 1cqw; }
.cert-title { font-size: 7cqw; font-weight: 800; color: #b45309; line-height: 1.1; text-shadow: 0 .3cqw 0 #fde68a; }
.cert-sub { font-size: 2.4cqw; color: #6b4f2a; }
.cert-name { font-size: 5.6cqw; font-weight: 800; color: #1e6b5a; border-bottom: .3cqw dashed #c9a227; padding: 0 3cqw; min-width: 30cqw; outline: none; user-select: text; -webkit-user-select: text; }
.cert-reason { font-size: 2.5cqw; max-width: 80%; line-height: 1.7; }
.cert-stars { font-size: 4cqw; letter-spacing: .6cqw; }
.cert-dua { font-size: 2.2cqw; color: #2e7d6b; font-weight: 700; }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-around; width: 80%; margin-top: 1cqw; font-size: 2cqw; }
.cert-foot small { color: #8a6d3b; }
.cert-line { border-bottom: .2cqw solid #8a6d3b; padding: 0 2cqw .4cqw; font-weight: 700; }
.cert-line.sig { font-size: 2.6cqw; color: #1e3a8a; font-style: italic; }
.cert-seal { font-size: 7cqw; filter: drop-shadow(0 .4cqw .4cqw rgba(0,0,0,.2)); }
.cert-app { position: absolute; bottom: 1.4cqw; font-size: 1.3cqw; color: #a08a5c; }

/* ================= Good-deeds tree ================= */
.deeds { max-width: 1100px; margin: 0 auto; text-align: center; color: #fff; padding-bottom: 12vh; }
.deeds h2 { margin: 0; font-size: clamp(26px, 5vw, 40px); }
.deeds-sub { margin: 4px 0 10px; font-size: 18px; opacity: .9; }
.deeds-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: center; }
.tree-wrap { position: relative; width: 100%; aspect-ratio: 1; max-height: 62vh; margin: 0 auto; }
.tree-svg { width: 100%; height: 100%; transform: scale(var(--s)); transform-origin: bottom center; transition: transform 1s cubic-bezier(.2,1.5,.4,1); }
.tree-svg .crown { animation: sway 5s ease-in-out infinite; transform-origin: 50% 70%; }
.tree-svg.grow { animation: treePulse .6s; }
.tree-svg.grow-big { animation: treeBig 1.2s; }
@keyframes sway { 50% { transform: rotate(1.5deg); } }
@keyframes treePulse { 50% { filter: brightness(1.2) drop-shadow(0 0 20px #bbf7d0); } }
@keyframes treeBig { 0% { transform: scale(calc(var(--s) * .8)); } 60% { transform: scale(calc(var(--s) * 1.1)); } }
.tree-decor { position: absolute; inset: 0; pointer-events: none; transform: scale(var(--s, 1)); }
.tree-decor span { position: absolute; transform: translate(-50%, -50%); font-size: clamp(16px, 2.6vw, 28px); animation: leafIn .6s both cubic-bezier(.2,1.6,.4,1); }
@keyframes leafIn { from { transform: translate(-50%, -50%) scale(0) rotate(-90deg); } }
.tree-count { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.35); padding: 4px 16px; border-radius: 999px; font-weight: 800; font-size: 20px; white-space: nowrap; }
.deeds-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.deed { display: flex; align-items: center; gap: 8px; text-align: right; padding: 10px 12px; border-radius: 20px; background: #fff; color: var(--ink); font-size: 17px; font-weight: 800; line-height: 1.4; box-shadow: 0 5px 0 rgba(0,0,0,.15); transition: transform .12s; }
.deed .di { font-size: 30px; }
.deed:active { transform: translateY(4px); box-shadow: none; }
.deed.done { animation: deedDone .6s; }
@keyframes deedDone { 40% { background: #dcfce7; transform: scale(1.06); } }
.deed-fly { position: fixed; z-index: 70; font-size: 40px; transform: translate(-50%, -50%); transition: all .85s cubic-bezier(.4,-0.3,.4,1.2); pointer-events: none; }
.deeds-today { margin-top: 10px; font-size: 22px; }

/* ================= Dress up ================= */
.dress { max-width: 900px; margin: 0 auto; text-align: center; color: #fff; padding-bottom: 12vh; }
.dress h2 { margin: 0; font-size: clamp(28px, 5.5vw, 42px); }
.dress-pts { font-size: 18px; margin: 4px 0; }
.dress-stage { display: grid; place-items: center; height: 280px; padding-top: 40px; }
.dress-mascot { width: 200px !important; height: 200px !important; }
.dress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.dress-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 22px; background: #fff; color: var(--ink); border: 4px solid transparent; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.dress-item.on { border-color: var(--gold); background: #fffbeb; transform: scale(1.06); }
.dress-item.lock { background: #e5e7eb; color: #6b7280; }
.dress-item.shk { animation: shake .4s; }
.dr-ic { font-size: 40px; }
.dr-nm { font-size: 15px; font-weight: 800; }
.dr-need { font-size: 13px; font-weight: 800; color: #92400e; }
/* accessory worn by every mascot */
.mascot { position: relative; container-type: inline-size; }
.mascot > .outfit { position: absolute; pointer-events: none; line-height: 1; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); animation: bounceIn .6s; }
.mascot > .outfit.pos-top { top: -18cqi; left: 50%; transform: translateX(-50%) rotate(-10deg); font-size: 44cqi; }
.mascot > .outfit.pos-eyes { top: 33cqi; left: 50%; transform: translateX(-50%); font-size: 34cqi; }
.mascot > .outfit.pos-side { top: 2cqi; left: 64cqi; transform: rotate(18deg); font-size: 32cqi; }
.mascot > .outfit.pos-hand { top: 50cqi; left: -14cqi; transform: rotate(-10deg); font-size: 36cqi; animation: bounceIn .6s, swing 2.5s ease-in-out infinite alternate; transform-origin: top center; }

/* ================= Daily question ================= */
.home-tile { position: relative; }
.home-tile.pending::after { content: "!"; position: absolute; top: -6px; left: -6px; width: 26px; height: 26px; border-radius: 50%; background: #ef4444; color: #fff; font-weight: 800; display: grid; place-items: center; animation: pulse 1s infinite; box-shadow: 0 2px 0 #991b1b; }
.f-card.daily { width: min(720px, 100%); }
.dy-week { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.dy-day { display: flex; flex-direction: column; align-items: center; width: 62px; padding: 4px 0; border-radius: 14px; background: #f5f3ff; }
.dy-day.today { background: #fef3c7; box-shadow: 0 0 0 3px #f59e0b; }
.dy-mark { font-size: 24px; }
.dy-day small { font-size: 11px; color: #6b5fa0; }
.dy-streak { font-weight: 800; color: #c2410c; font-size: 18px; }
.dy-lesson { display: inline-block; background: #ede9fe; color: #5b21b6; padding: 2px 14px; border-radius: 999px; font-size: 15px; margin: 6px 0; }
.dy-q { font-size: clamp(22px, 4.4vw, 32px); font-weight: 800; line-height: 1.8; margin: 4px 0 12px; }
.dy-opts { display: grid; gap: 10px; }
.dy-msg { min-height: 30px; font-size: 20px; font-weight: 800; color: #16a34a; margin-top: 10px; }

/* ================= Wheel ================= */
.wh { max-width: 700px; margin: 0 auto; text-align: center; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 12vh; }
.wh h2 { margin: 0; font-size: clamp(28px, 5.5vw, 42px); }
.wh-modes { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.wh-modes button { font-size: 17px; font-weight: 800; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.2); color: #fff; }
.wh-modes button.on { background: #fff; color: var(--ink); }
.wh-box { position: relative; width: min(460px, 86vw, 52vh); aspect-ratio: 1; margin-top: 18px; }
.wh-box canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 14px #ffd23f, 0 20px 50px rgba(0,0,0,.4); cursor: pointer; }
.wh-pointer { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 46px; color: #ef4444; z-index: 2; filter: drop-shadow(0 3px 0 #fff); }
.wh-pointer.tick { animation: tick .12s; }
@keyframes tick { 50% { transform: translateX(-50%) rotate(-18deg); } }
.wh-result { min-height: 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.wh-win { font-size: clamp(28px, 6vw, 46px); font-weight: 800; background: #fff; color: var(--ink); padding: 6px 26px; border-radius: 999px; animation: fbIn .6s cubic-bezier(.2,1.6,.4,1); }

/* ================= Class report ================= */
#screen-report { background: #f8f7ff; }
.rp { max-width: 1200px; margin: 0 auto; color: var(--ink); padding-bottom: 40px; }
.rp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rp-head h2 { margin: 0; font-size: 34px; }
.rp-actions { display: flex; gap: 8px; }
.rp h3 { font-size: 22px; margin: 22px 0 8px; }
.rp-kpis { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.rp-kpi { flex: 1; min-width: 150px; background: #fff; border-radius: 20px; padding: 12px; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rp-kpi b { display: block; font-size: 34px; color: #7c3aed; }
.rp-kpi span { color: #6b5fa0; }
.rp-scroll { overflow-x: auto; background: #fff; border-radius: 18px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.rp-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.rp-table th, .rp-table td { border-bottom: 1px solid #ede9fe; padding: 6px 4px; text-align: center; white-space: nowrap; }
.rp-table th { background: #f5f3ff; position: sticky; top: 0; }
.rp-table .rp-kid { text-align: right; padding-right: 12px; font-weight: 800; position: sticky; right: 0; background: #fff; }
.rp-table th.rp-kid { background: #f5f3ff; }
.rp-li { display: block; font-size: 20px; }
.rp-st { font-size: 11px; letter-spacing: -2px; }
.rp-none { color: #cbd5e1; }
.rp-legend { font-size: 13px; color: #6b5fa0; line-height: 1.9; }
.rp-missed { display: grid; gap: 8px; }
.rp-m { background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 3px 10px rgba(0,0,0,.06); }
.rp-bar { height: 8px; border-radius: 999px; background: #fee2e2; overflow: hidden; margin-bottom: 6px; }
.rp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #f97316, #ef4444); }
.rp-mq { font-size: 18px; font-weight: 800; }
.rp-mi { font-size: 14px; color: #6b5fa0; }
.rp-empty { font-size: 18px; color: #16a34a; }
.rp-foot { margin-top: 24px; text-align: center; }

/* ================= Teacher voice ================= */
.tv-box { margin-top: 14px; background: #fff7ed; border: 2px dashed #fdba74; border-radius: 16px; padding: 10px 12px; }
.tv-title { font-weight: 800; color: #9a3412; margin-bottom: 6px; }
.tv-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #fed7aa; }
.tv-row:first-of-type { border-top: none; }
.tv-lbl { font-weight: 800; }
.tv-lbl small { display: block; font-weight: 600; color: #9a3412; font-size: 12px; }
.tv-btns { display: flex; align-items: center; gap: 6px; }
.tv-btns button { font-size: 16px; font-weight: 800; padding: 7px 14px; border-radius: 12px; background: #fff; border: 2px solid #fdba74; color: #9a3412; }
.tv-rec.rec-on { background: #ef4444 !important; color: #fff !important; border-color: #b91c1c !important; animation: pulse .8s infinite; }
.tv-ok { color: #16a34a; font-weight: 800; font-size: 14px; }
.badge.tvoice { background: #ffedd5; color: #9a3412; }

/* ================= Printing ================= */
@media print {
  body.printing-cert > *:not(.cert-ov) { display: none !important; }
  body.printing-cert .cert-ov { position: static; background: none; padding: 0; overflow: visible; }
  body.printing-cert .cert-tools { display: none; }
  body.printing-cert .cert { width: 100%; box-shadow: none; animation: none; }
  body.printing-report #sky, body.printing-report #topbar, body.printing-report #fx, body.printing-report .no-print { display: none !important; }
  body.printing-report .screen { display: none !important; }
  body.printing-report #screen-report { display: block !important; position: static; padding: 0; overflow: visible; }
  html, body { overflow: visible !important; height: auto !important; background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { size: landscape; margin: 8mm; }

/* ================= Responsive ================= */
@media (max-width: 700px) {
  .deeds-body { grid-template-columns: 1fr; }
  .race-team { width: 110px; font-size: 13px; }
  .race-racer { font-size: 34px; }
  .home-tile { width: 78px; }
  .mg-title { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mg-back { font-size: 14px; padding: 6px 10px; }
  .mg-mascot { width: 52px !important; height: 52px !important; }
  .teacher-btn { position: static; display: block; margin: -8vh auto 24px; font-size: 14px; }
  .home-tile .hi { font-size: 32px; }
  .home-tile .hl { font-size: 13px; }
  .profile-chip .pn { display: none; }
  .profile-chip { padding: 0 8px; }
  .dy-day { width: 42px; }
}
