/* ═══ SONG PRESENTER — Aurora Classroom ═══ */
* { box-sizing: border-box; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }
:root {
  --bg: #03091b; --panel: rgba(10, 20, 48, .9); --text: #f4f7ff; --muted: #8fa6d9;
  --line: rgba(143, 166, 255, .22); --blue: #6688ff; --yellow: #ffd84d; --mint: #65e6b8;
  --sky: #6fb5ff; --coral: #ff8f6b; --violet: #b28bff; --pink: #ff7ac8;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --display: "Barlow Condensed", "Segoe UI", sans-serif;
}
html, body { user-select: none; -webkit-user-select: none; }
body {
  min-width: 320px; min-height: 100vh; margin: 0; color: var(--text);
  background: radial-gradient(circle at 12% 10%, rgba(52, 87, 213, .24), transparent 30%),
              radial-gradient(circle at 86% 80%, rgba(39, 181, 139, .10), transparent 25%), var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
button { font: inherit; } .hidden { display: none !important; }
.app-shell { width: min(1500px, 100%); min-height: 100vh; margin: 0 auto; padding: 26px 30px; }

.brand-kicker, .panel-kicker { color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.primary-button, .secondary-button, .icon-button { border: 0; border-radius: 14px; cursor: pointer; font-weight: 950; letter-spacing: .06em; }
.primary-button { padding: 15px 26px; color: #111833; background: var(--yellow); }
.primary-button:hover { box-shadow: 0 0 22px rgba(255,216,77,.35); transform: translateY(-2px); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; box-shadow: none; transform: none; }
.secondary-button, .icon-button { padding: 13px 18px; color: var(--text); background: #142650; border: 1px solid var(--line); }
.secondary-button:hover, .icon-button:hover { border-color: var(--blue); transform: translateY(-2px); }

/* ═══ LIBRARY ═══ */
.library-screen { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.45fr); gap: 34px; align-items: start; min-height: calc(100vh - 52px); }
.brand-lockup { display: flex; flex-direction: column; justify-content: flex-start; gap: 16px; padding-top: 26px; position: sticky; top: 26px; }
.brand-ella { display: block; width: min(100%, 460px); height: auto; object-fit: contain; }
.brand-lockup h1 { margin: 10px 0 14px; font-family: var(--display); font-size: clamp(52px, 6.4vw, 96px); line-height: .9; letter-spacing: .04em; }
.brand-lockup h1 em { color: var(--yellow); font-style: normal; }
.brand-lockup p { margin: 0 0 22px; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; max-width: 420px; }
.brand-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-bottom: 26px; }
.brand-chip { padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: rgba(17, 35, 79, .6); color: #c4d2f5; font-size: 14px; font-weight: 700; }
.brand-credit { margin-top: 4px; color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.panel-tools { display: flex; gap: 10px; margin-top: 14px; }
.reset-progress-button { align-self: flex-start; padding: 8px 16px; font-size: 12px; letter-spacing: .1em; opacity: .7; text-decoration: none; display: inline-block; width: auto; }
.reset-progress-button:hover { opacity: 1; border-color: #ff8066; }
a.reset-progress-button:hover { border-color: var(--yellow); }
.menu-return-button:hover { border-color: var(--yellow); }
.corner-menu-return-button { position: fixed; top: 16px; right: 16px; z-index: 100; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border-radius: 12px; font-size: 23px; line-height: 1; }

.library-card { padding: clamp(22px, 3vw, 38px); border: 1px solid rgba(255,255,255,.10); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); }
.selection-heading { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.selection-heading > span { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--yellow); font-size: 17px; font-weight: 900; }
.selection-heading h2 { margin: 0; font-size: 21px; } .selection-heading p { margin: 4px 0 0; color: var(--muted); }
.library-filter-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.library-filter-bar strong { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .05em; color: var(--yellow); }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.artist-count { position: absolute; top: 10px; right: 10px; padding: 5px 11px; border-radius: 99px; background: rgba(3, 9, 27, .78); color: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.listened-badge { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #062a20; font-size: 16px; font-weight: 950; box-shadow: 0 0 12px rgba(34,197,94,.55); }
.song-card.listened .song-cover { filter: grayscale(1) brightness(.7); }
.song-card.listened .song-card-body { opacity: .7; }
.song-card { position: relative; overflow: hidden; display: block; aspect-ratio: 1 / 1; padding: 0; border: 2px solid var(--line); border-radius: 20px; background: #10224d; color: var(--text); text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.song-card:hover { transform: translateY(-4px); }
.song-cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(0,0,0,.28)); }
.song-cover img { width: 100%; height: 100%; object-fit: contain; }
.song-cover .cover-note { font-family: var(--display); font-size: clamp(52px, 5vw, 76px); line-height: 1; opacity: .9; text-shadow: 0 6px 26px rgba(0,0,0,.45); }
.song-card-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 40px 18px 16px; background: linear-gradient(to top, rgba(4,9,27,.94) 20%, rgba(4,9,27,.6) 60%, transparent 100%); }
.song-card-body span { font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.song-card-body strong { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); letter-spacing: .03em; line-height: 1.04; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.song-card.has-cover .song-card-body { display: none; }
/* 6-ton rotasyonu */
.song-card:nth-child(6n+1) { --tone: var(--yellow); } .song-card:nth-child(6n+2) { --tone: var(--mint); }
.song-card:nth-child(6n+3) { --tone: var(--sky); }    .song-card:nth-child(6n+4) { --tone: var(--coral); }
.song-card:nth-child(6n+5) { --tone: var(--violet); } .song-card:nth-child(6n+6) { --tone: var(--pink); }
.song-card .song-cover { background: linear-gradient(150deg, var(--tone), #0a1638 82%); }
.song-card .cover-note, .song-card-body span { color: var(--tone); }
.song-card .song-cover .cover-note { color: rgba(3, 9, 27, .82); }
.song-card:hover { border-color: var(--tone); box-shadow: 0 0 26px color-mix(in srgb, var(--tone) 34%, transparent); }

/* ═══ ACTIVITY SHELL ═══ */
.activity-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 18px; height: calc(100vh - 52px); }
.activity-header { display: grid; grid-template-columns: auto minmax(220px, 22vw) minmax(0, 1fr) auto auto auto; align-items: center; gap: 18px; }
.session-info { display: grid; gap: 3px; min-width: 0; }
.tool-credit { justify-self: start; color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.icon-button.lite-on { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 14px rgba(255,216,77,.25); }
.session-info span { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.session-info strong { display: block; max-width: 100%; overflow-wrap: normal; font-family: var(--display); font-size: clamp(19px, 2vw, 30px); line-height: .96; letter-spacing: .04em; white-space: normal; }
.stage-stepper { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.stage-stepper span { display: flex; align-items: center; gap: 7px; }
.stage-stepper b { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 50%; }
.stage-stepper i { width: 22px; height: 1px; background: var(--line); }
.stage-stepper span.active { color: var(--yellow); }
.stage-stepper span.active b { border-color: var(--yellow); color: var(--yellow); box-shadow: 0 0 14px rgba(255,216,77,.3); }
.stage-stepper span.done { color: var(--mint); }
.stage-stepper span.done b { border-color: var(--mint); color: var(--mint); }
.stage { min-height: 0; display: grid; }
.stage-card { min-height: 0; border: 1px solid rgba(255,255,255,.10); border-radius: 28px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; }
.activity-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.activity-footer .secondary-button { justify-self: start; min-width: 170px; }
.activity-footer .primary-button { justify-self: end; min-width: 170px; }
.invisible { visibility: hidden; }
.stage-status { color: var(--muted); text-align: center; font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.stage-status.complete { color: var(--mint); }
.panel-kicker { margin: 0; }
.panel-title { margin: 6px 0 8px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 42px); letter-spacing: .03em; line-height: 1; }
.panel-hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* ═══ PAGE 1 · PRE-LISTENING ═══ */
.pre-card { display: grid; grid-template-columns: minmax(230px, .62fr) minmax(0, 2.4fr); }
.pre-word-rail { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; padding: clamp(20px, 2.6vw, 34px); background: rgba(4, 12, 31, .72); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #29416f transparent; }
.pre-word-bank { display: grid; gap: 9px; margin-top: 4px; align-content: start; }
.word-chip { display: grid; place-items: center; min-height: 46px; padding: 7px 12px; border: 2px solid var(--blue); border-radius: 14px; color: var(--text); background: #193875; cursor: grab; font-family: var(--display); font-size: clamp(17px, 1.55vw, 23px); font-weight: 800; letter-spacing: .07em; text-align: center; touch-action: none; }
.word-chip:hover { border-color: var(--yellow); }
.word-chip.selected { border-color: var(--yellow); box-shadow: 0 0 18px rgba(255,216,77,.38); }
.word-chip.dragging { opacity: .35; }
.word-chip.placed { border-color: var(--mint); color: #7fd7bb; background: rgba(19,83,66,.4); cursor: default; opacity: .55; box-shadow: none; }
.pre-image-grid { display: grid; grid-template-columns: repeat(var(--pre-cols, 4), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: clamp(10px, 1.4vw, 18px); min-height: 0; padding: clamp(18px, 2.4vw, 30px); }
.pre-item { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; min-height: 0; width: fit-content; max-width: 100%; justify-self: center; cursor: pointer; }
.pre-item.drop-hover .pre-visual { border-color: var(--yellow); box-shadow: 0 0 16px rgba(255,216,77,.3); }
.pre-visual { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 0; border: 2px solid var(--line); border-radius: 16px; background: #fff; aspect-ratio: 1 / 1; justify-self: center; max-width: 100%; max-height: 100%; }
.pre-visual img { width: 100%; height: 100%; object-fit: contain; }
.pre-visual.tr-card { padding: 12px; background: linear-gradient(150deg, #142b5c, #0a1638); text-align: center; }
.pre-visual.tr-card span { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.pre-visual.tr-card { align-content: center; display: grid; gap: 8px; }
.pre-visual.tr-card p { margin: 0; color: var(--text); font-family: var(--display); font-size: clamp(19px, 1.8vw, 28px); font-weight: 800; line-height: 1.05; }
.pre-slot { display: grid; place-items: center; min-height: 52px; width: 100%; max-width: 100%; justify-self: center; border: 2px dashed #5570ad; border-radius: 13px; background: rgba(6, 14, 34, .6); color: #45598a; font-family: var(--display); font-size: clamp(18px, 1.6vw, 25px); font-weight: 800; letter-spacing: .07em; transition: border-color .14s ease, background .14s ease; }
.pre-slot.hover { border-color: var(--yellow); background: rgba(87, 74, 22, .4); }
.pre-slot.filled { border-style: solid; border-color: var(--mint); color: #e4fff5; background: #135342; box-shadow: 0 0 14px rgba(101,230,184,.28); }
.pre-slot.wrong { border-color: #ff8066; background: #6e2c25; animation: shake .35s ease-in-out; }
.pre-item.done .pre-visual { border-color: var(--mint); }

/* ═══ PAGE 2 · DURING-LISTENING ═══ */
.during-card { display: grid; grid-template-columns: minmax(280px, .78fr) minmax(0, 1.9fr); }
.player-rail { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: clamp(20px, 2.4vw, 32px); background: rgba(4, 12, 31, .72); border-right: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: #29416f transparent; }
.player-visual { position: relative; align-self: center; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; width: 90%; aspect-ratio: 1 / 1; max-height: 30.6vh; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, #1b3a7c, #0a1638); }
.player-visual .cover-note { font-size: clamp(40px, 5vw, 84px); }
.player-visual img { width: 100%; height: 100%; object-fit: contain; }
.player-visual video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
/* Video kaynaklı şarkıda videonun üstünde duran kapak katmanı */
.player-visual .cover-overlay { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: linear-gradient(150deg, #1b3a7c, #0a1638); }
.player-visual .cover-overlay img { width: 100%; height: 100%; object-fit: contain; }
/* Sansür anlarında videoyu tamamen örten siyah katman */
.player-visual .censor-overlay { position: absolute; inset: 0; z-index: 3; background: #000; }
.player-visual .cover-note { color: var(--yellow); font-family: var(--display); font-size: clamp(60px, 6vw, 96px); text-shadow: 0 8px 30px rgba(0,0,0,.5); }
.player-visual .cover-note.playing { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.player-meta { display: grid; gap: 2px; }
.player-song-title { margin: 0; font-family: var(--display); font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.player-song-artist { margin: 0; color: var(--muted); font-weight: 700; font-size: 14px; }
.player-progress { position: relative; height: 10px; border-radius: 99px; background: #1b2d57; cursor: pointer; overflow: hidden; }
.player-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5478ff, var(--yellow)); }
.player-time { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.player-buttons { display: flex; justify-content: center; gap: 12px; margin-top: 4px; }
.player-button { display: grid; place-items: center; width: 56px; height: 56px; border: 2px solid var(--line); border-radius: 50%; color: var(--text); background: #142650; cursor: pointer; font-size: 22px; transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease; }
.player-button:not(:disabled):hover { border-color: var(--yellow); transform: translateY(-2px); box-shadow: 0 0 18px rgba(255,216,77,.25); }
.player-button:disabled { opacity: .32; cursor: default; }
.player-button.play { width: 68px; height: 68px; border-color: var(--yellow); color: #111833; background: var(--yellow); font-size: 27px; }
.player-button.play:hover { box-shadow: 0 0 26px rgba(255,216,77,.45); }
.player-button.active { border-color: var(--mint); color: var(--mint); }
.player-button.video-btn { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.player-button.video-btn.active, .player-button.karaoke-btn.active { background: rgba(101,230,184,.14); }

/* ── Karaoke modu: sağ panel gizli, video kalan alanı kaplar (taşma imkânsız) ── */
.during-card.karaoke-mode { grid-template-columns: 1fr; }
.during-card.karaoke-mode .lyrics-rail { display: none; }
.during-card.karaoke-mode .player-rail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas: "video video" "buttons bar" "buttons time";
  column-gap: 20px; row-gap: 6px;
  overflow: hidden;
  width: min(1400px, 100%); height: 100%; margin: 0 auto; border-right: 0;
  padding: clamp(12px, 1.5vw, 18px);
}
.during-card.karaoke-mode .player-visual { grid-area: video; height: 100%; min-height: 0; aspect-ratio: auto; max-height: none; cursor: pointer; margin-bottom: 6px; }
.during-card.karaoke-mode .player-meta { display: none; } /* başlık videoda zaten var, alan videoya kalsın */
.during-card.karaoke-mode .player-buttons { grid-area: buttons; align-self: center; margin: 0; gap: 10px; }
.during-card.karaoke-mode .player-progress { grid-area: bar; align-self: end; }
.during-card.karaoke-mode .player-time { grid-area: time; }
.during-card.karaoke-mode .player-button { width: 48px; height: 48px; font-size: 19px; }
.during-card.karaoke-mode .player-button.play { width: 56px; height: 56px; font-size: 23px; }
.during-card.karaoke-mode .player-button.video-btn { font-size: 13px; }
.lyrics-rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: clamp(20px, 2.4vw, 32px); }
.during-word-bank { display: flex; flex-wrap: nowrap; gap: 8px; padding: 10px 12px; border: 1px dashed #4c659e; border-radius: 16px; background: rgba(5, 12, 30, .48); }
.during-word-bank .word-chip { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 4px 6px; font-size: clamp(11px, 1.05vw, 20px); white-space: nowrap; overflow: hidden; }
.lyrics-kicker { margin-top: 8px; }
.lyrics-box { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 14px 14px 2px; scrollbar-width: thin; scrollbar-color: #29416f transparent; }
@property --kp { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.lyric-line { margin: 0 0 4px; padding: 2px 10px; border-radius: 9px; color: #c4d2f5; font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; line-height: 1.55; }
.lyric-line.karaoke-active { color: var(--yellow); background: linear-gradient(90deg, rgba(255,216,77,.20) var(--kp, 0%), rgba(255,216,77,.05) var(--kp, 0%)); transition: --kp .3s linear; }
.lyric-gap { display: inline-grid; place-items: center; min-width: 108px; min-height: 34px; margin: 0 3px; padding: 1px 12px; border: 2px dashed #5570ad; border-radius: 10px; vertical-align: middle; color: #45598a; background: rgba(6, 14, 34, .6); font-family: var(--display); font-size: .95em; font-weight: 800; letter-spacing: .06em; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.lyric-gap:hover, .lyric-gap.hover { border-color: var(--yellow); background: rgba(87, 74, 22, .4); color: var(--yellow); }
.lyric-gap.filled { display: inline; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: var(--yellow); font-family: inherit; font-size: 1em; font-weight: 700; letter-spacing: normal; cursor: default; }
.lyric-gap.auto-filled { animation: gapPop .45s ease; }
@keyframes gapPop { 0% { transform: scale(.7); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
.lyric-gap.wrong { border-color: #ff8066; color: #ffb3a3; background: #6e2c25; animation: shake .35s ease-in-out; }

/* ═══ COMPLETE ═══ */
.complete-screen { display: grid; min-height: calc(100vh - 52px); place-items: center; }
.complete-card { display: grid; justify-items: center; max-width: 720px; padding: clamp(36px, 7vw, 84px); border: 1px solid rgba(255,255,255,.1); border-radius: 32px; text-align: center; background: var(--panel); box-shadow: var(--shadow); }
.complete-card h1 { margin: 12px 0 18px; font-family: var(--display); font-size: clamp(58px, 9vw, 110px); line-height: .9; letter-spacing: .04em; }
.complete-card h1 em { color: var(--yellow); font-style: normal; }
.complete-card > p:not(.brand-kicker) { margin: 0 0 30px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.complete-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ═══ DRAG GHOST ═══ */
#dragGhost { position: fixed; z-index: 9600; pointer-events: none; transform: translate(-50%, -50%) rotate(-3deg); box-shadow: 0 14px 40px rgba(0,0,0,.5); }

/* ═══ CLIMAX — yukarı süzülen emoji notalar ═══ */
#climaxLayer { position: fixed; inset: 0; z-index: 9500; overflow: hidden; pointer-events: none; }
.climax-emoji { position: absolute; bottom: -70px; line-height: 1; text-shadow: 0 4px 18px rgba(0,0,0,.35); animation: climaxRise var(--cd, 4s) linear forwards; }
@keyframes climaxRise {
  0%   { transform: translate(0, 0) rotate(0deg) scale(.5); opacity: 0; }
  8%   { opacity: 1; }
  55%  { transform: translate(var(--cx1, 40px), -55vh) rotate(var(--cr1, 12deg)) scale(1); opacity: 1; }
  100% { transform: translate(var(--cx2, -50px), -112vh) rotate(var(--cr2, -20deg)) scale(1.15); opacity: 0; }
}

@keyframes shake { 0%,100% { transform: translateX(0); } 30%,70% { transform: translateX(-7px); } 50% { transform: translateX(7px); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1060px) {
  .library-screen { grid-template-columns: 1fr; }
  .brand-lockup { position: static; }
  .stage-stepper span { font-size: 0; gap: 0; } .stage-stepper b { font-size: 12px; }
  .tool-credit { display: none; }
  .activity-screen { height: auto; min-height: calc(100vh - 52px); }
  .pre-card { grid-template-columns: 1fr; }
  .pre-word-rail { border-right: 0; border-bottom: 1px solid var(--line); overflow-y: visible; }
  .pre-word-bank { grid-template-columns: repeat(4, 1fr); }
  .pre-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .pre-item { width: 100%; justify-self: stretch; }
  .pre-visual { aspect-ratio: 1 / 1; width: 100%; }
  .during-card { grid-template-columns: 1fr; }
  .player-rail { border-right: 0; border-bottom: 1px solid var(--line); overflow-y: visible; }
  .lyrics-box { max-height: 52vh; }
}
@media (max-width: 640px) { .corner-menu-return-button { top: 10px; right: 10px; } }
@media (max-width: 620px) {
  .app-shell { padding: 16px; }
  .pre-word-bank { grid-template-columns: repeat(2, 1fr); }
  .pre-image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .activity-footer { grid-template-columns: 1fr 1fr; } .stage-status { display: none; }
}
