:root {
  --yellow: #ffdd00;
  --yellow-soft: #fffce5;
  --yellow-deep: #e4c500;
  --white: #ffffff;
  --ink: #000000;
  --muted: #666666;
  --soft: #f7f7f7;
  --line: #e5e5e5;
  --green: #00a859;
  --red: #c52b2b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.demo-bar {
  position: relative;
  z-index: 80;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(0,0,0,.16);
  background: var(--yellow);
  font-size: 13px;
}
.demo-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--ink);
  padding: 3px 5px;
  font-weight: 800;
}

.app-shell { min-height: calc(100vh - 42px); display: flex; flex-direction: column; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; width: max-content; }
.brand img { width: 118px; height: auto; }
.brand-product { border-left: 2px solid var(--yellow); padding-left: 14px; font-weight: 900; letter-spacing: -.03em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 5px; }
.nav-link {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
}
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--yellow-soft); color: var(--ink); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 3px;
  border-radius: 4px;
  background: var(--yellow);
}
.user-menu { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--yellow);
  font-weight: 950;
}
.user-copy { line-height: 1.15; text-align: right; }
.user-copy strong { display: block; font-size: 14px; }
.user-copy span { color: var(--muted); font-size: 12px; }

main { flex: 1; }
.page { width: min(1220px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 72px; }
.page-narrow { width: min(820px, calc(100% - 36px)); }
.page-wide { width: min(1420px, calc(100% - 36px)); }
.eyebrow { margin: 0 0 9px; font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { display: inline-block; background: var(--yellow); padding: 4px 8px; border-radius: 6px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(38px, 6vw, 78px); line-height: .94; letter-spacing: -.055em; font-weight: 950; }
h2 { margin-bottom: 12px; font-size: clamp(27px, 4vw, 42px); line-height: 1.02; letter-spacing: -.04em; }
h3 { margin-bottom: 8px; font-size: 20px; line-height: 1.16; letter-spacing: -.02em; }
.lead { max-width: 720px; color: #3f3f3f; font-size: clamp(17px, 2vw, 21px); }
.muted { color: var(--muted); }
.micro { color: var(--muted); font-size: 12px; }
.yellow-mark { background: linear-gradient(transparent 54%, var(--yellow) 54%); }

.login-page {
  min-height: calc(100vh - 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
}
.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 82px);
  background: var(--yellow);
}
.login-visual::before, .login-visual::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(0,0,0,.15);
  border-radius: 50%;
}
.login-visual::before { width: 470px; height: 470px; right: -230px; top: 14%; }
.login-visual::after { width: 680px; height: 680px; right: -390px; top: 2%; }
.login-logo { position: relative; z-index: 2; width: max-content; padding: 16px 20px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.login-logo img { display: block; width: 150px; }
.login-thesis { position: relative; z-index: 2; max-width: 720px; }
.login-thesis h1 { font-size: clamp(56px, 8vw, 112px); }
.login-thesis p { max-width: 580px; font-size: 19px; font-weight: 650; }
.sound-track { position: relative; z-index: 2; display: flex; align-items: end; gap: 7px; height: 78px; }
.sound-track i { display: block; width: 8px; border-radius: 10px; background: var(--ink); animation: equalize 1.2s ease-in-out infinite alternate; }
.sound-track i:nth-child(3n) { animation-delay: -.4s; }.sound-track i:nth-child(2n) { animation-delay: -.7s; }
@keyframes equalize { from { height: 14px; } to { height: 72px; } }
.login-panel { display: grid; align-items: center; padding: clamp(28px, 6vw, 90px); background: var(--white); }
.auth-box { width: min(100%, 470px); margin: auto; }
.auth-tabs { display: flex; gap: 5px; margin-bottom: 28px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.auth-tab { flex: 1; border: 0; border-radius: 10px; background: transparent; padding: 11px; font-weight: 850; }
.auth-tab.active { background: var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.08); }

.field { display: grid; gap: 7px; margin-bottom: 17px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field-label { font-size: 13px; font-weight: 850; }
.input, .select, .textarea {
  width: 100%;
  border: 1.5px solid #cfcfcf;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px var(--yellow-soft); outline: 0; }
.form-help { color: var(--muted); font-size: 12px; }
.form-error { color: var(--red); font-size: 13px; font-weight: 750; }

.button {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.button:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.button.secondary { background: var(--white); box-shadow: none; }
.button.ghost { border-color: var(--line); background: var(--white); box-shadow: none; color: var(--muted); }
.button.danger { background: var(--white); border-color: var(--red); color: var(--red); box-shadow: none; }
.button.small { min-height: 36px; padding: 7px 11px; border-width: 1.5px; border-radius: 9px; box-shadow: none; font-size: 13px; }
.button.full { width: 100%; }
.button[disabled] { cursor: not-allowed; opacity: .46; box-shadow: none; transform: none; }
.icon-button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: stretch;
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  background: var(--yellow);
}
.hero-copy { position: relative; z-index: 2; padding: clamp(34px, 6vw, 70px); }
.hero-copy h1 { max-width: 720px; }
.hero-copy .lead { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; min-height: 310px; }
.vinyl { position: absolute; width: min(430px, 90%); aspect-ratio: 1; right: -60px; top: 50%; transform: translateY(-50%); border: 22px solid var(--white); border-radius: 50%; background: repeating-radial-gradient(circle, var(--ink) 0 5px, #242424 6px 11px); box-shadow: -20px 26px 0 rgba(0,0,0,.12); }
.vinyl::before { content: ""; position: absolute; width: 35%; aspect-ratio: 1; inset: 32.5%; border-radius: 50%; background: var(--yellow); border: 9px solid var(--white); }
.vinyl::after { content: "S"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font-size: 72px; font-weight: 950; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 38px 0 20px; }
.section-head h2 { margin-bottom: 0; }
.section-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 9px 26px rgba(0,0,0,.045);
}
.card-body { padding: 22px; }
.card-top { height: 9px; background: var(--yellow); }
.card-media { position: relative; min-height: 150px; display: grid; place-items: center; overflow: hidden; background: var(--yellow-soft); }
.card-media::before { content: ""; position: absolute; width: 140px; height: 140px; border: 2px solid rgba(0,0,0,.12); border-radius: 50%; }
.media-icon { position: relative; z-index: 2; font-size: 54px; }
.card-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; width: max-content; border-radius: 999px; background: var(--yellow); color: var(--ink); padding: 5px 9px; font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.badge.outline { border: 1px solid var(--ink); background: var(--white); }
.badge.soft { background: var(--soft); color: var(--muted); }
.badge.green { background: #e8f7ef; color: #006c3a; }
.badge.red { background: #fff0f0; color: var(--red); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.stat-card { min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stat-card.accent { background: var(--yellow); border-color: var(--yellow); }
.stat-label { display: block; color: var(--muted); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.stat-card.accent .stat-label { color: var(--ink); }
.stat-value { display: block; margin-top: 10px; font-size: clamp(34px, 5vw, 58px); font-weight: 950; line-height: 1; letter-spacing: -.055em; }
.stat-note { display: block; margin-top: 9px; color: var(--muted); font-size: 13px; }

.progress-track { position: relative; height: 12px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); overflow: hidden; }
.progress-track > span { display: block; height: 100%; background: var(--yellow); transition: width .3s ease; }
.game-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; margin-bottom: 28px; font-size: 13px; font-weight: 850; }
.game-card { overflow: hidden; border: 2px solid var(--ink); border-radius: 28px; background: var(--white); box-shadow: 8px 8px 0 var(--yellow); }
.game-header { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.timer { display: grid; min-width: 62px; height: 62px; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); font-size: 18px; font-weight: 950; }
.game-content { padding: clamp(22px, 5vw, 54px); }
.media-stage { position: relative; min-height: 260px; display: grid; place-items: center; overflow: hidden; margin: 0 0 28px; border-radius: 20px; background: var(--soft); }
.media-stage.audio { background: var(--yellow); }
.wave { display: flex; height: 110px; align-items: center; justify-content: center; gap: 8px; }
.wave i { width: 9px; height: 22px; border-radius: 9px; background: var(--ink); }
.wave.playing i { animation: wave .7s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { animation-delay: -.2s; }.wave i:nth-child(3n) { animation-delay: -.4s; }
@keyframes wave { from { height: 18px; } to { height: 102px; } }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); display: grid; width: 82px; height: 82px; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: var(--white); box-shadow: 5px 5px 0 var(--ink); font-size: 28px; }
.playing + .play-button { opacity: 0; pointer-events: none; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.answer-option { min-height: 72px; border: 2px solid var(--line); border-radius: 14px; background: var(--white); padding: 14px 17px; text-align: left; font-weight: 820; }
.answer-option:hover, .answer-option.selected { border-color: var(--ink); background: var(--yellow-soft); box-shadow: inset 7px 0 0 var(--yellow); }
.question-actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 24px; }

.mosaic-stage { position: relative; min-height: 390px; background: #dfe8d7; }
.mosaic-picture { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.machine-scene { position: absolute; inset: 0; }
.machine-sky { position:absolute; inset:0 0 38%; background:linear-gradient(#f5f1d1,#fff8bf); }
.machine-ground { position:absolute; inset:62% 0 0; background:#c6b088; }
.machine-body { position:absolute; width:250px; height:90px; left:50%; top:56%; transform:translate(-50%,-50%); border:5px solid #000; border-radius:20px 45px 16px 16px; background:#ffdd00; }
.machine-cab { position:absolute; width:90px; height:95px; left:50%; top:39%; transform:translate(-22%,-50%); border:5px solid #000; border-radius:15px 15px 4px 4px; background:#fff; }
.machine-wheel { position:absolute; width:66px; height:66px; top:63%; border:12px solid #000; border-radius:50%; background:#fff; }
.machine-wheel.one { left:calc(50% - 104px); }.machine-wheel.two { left:calc(50% + 42px); }
.machine-arm { position:absolute; width:240px; height:24px; left:calc(50% + 28px); top:28%; transform:rotate(-24deg); transform-origin:left center; border:4px solid #000; border-radius:12px; background:#ffdd00; }
.machine-bucket { position:absolute; width:64px; height:54px; right:12%; top:11%; border:5px solid #000; border-radius:8px 8px 28px 8px; background:#ffdd00; transform:rotate(12deg); }
.mosaic-grid { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); background: transparent; }
.mosaic-tile { background: var(--yellow); box-shadow: inset 0 0 0 1px var(--ink); transition: opacity .32s ease, transform .32s ease; }
.mosaic-tile.revealed { opacity: 0; transform: scale(.84); pointer-events: none; }

.admin-layout { display: grid; grid-template-columns: 230px minmax(0,1fr); min-height: calc(100vh - 124px); }
.admin-sidebar { position: sticky; top: 82px; height: calc(100vh - 82px); padding: 28px 20px; border-right: 1px solid var(--line); background: var(--yellow-soft); }
.admin-sidebar-title { margin: 0 10px 16px; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.side-link { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 11px 12px; border-radius: 11px; color: #4a4a4a; font-size: 14px; font-weight: 790; text-decoration: none; }
.side-link:hover, .side-link[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.admin-main { min-width: 0; padding: 38px clamp(22px,4vw,58px) 72px; }
.admin-title { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 28px; }
.admin-title h1 { margin: 0; font-size: clamp(36px,5vw,62px); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--yellow); color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--soft); }
tbody tr:last-child td { border-bottom: 0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; }

.podium { display: grid; grid-template-columns: 1fr 1.12fr 1fr; align-items: end; gap: 12px; margin: 32px 0; }
.podium-place { text-align: center; }
.podium-person { min-height: 110px; display: grid; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: var(--white); }
.podium-block { display: grid; place-items: center; min-height: 92px; background: var(--yellow-soft); border: 2px solid var(--yellow); font-size: 30px; font-weight: 950; }
.podium-place.first .podium-person { min-height: 142px; background: var(--yellow); border-color: var(--yellow); }
.podium-place.first .podium-block { min-height: 132px; background: var(--yellow); border-color: var(--ink); }
.podium-score { display: block; margin-top: 5px; font-size: 13px; font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: 24px; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.bar-chart { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.bar-rail { height: 12px; border-radius: 10px; background: var(--soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--yellow); border-right: 2px solid var(--ink); }

.empty-state { display: grid; min-height: 280px; place-items: center; text-align: center; padding: 34px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state .symbol { font-size: 54px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.56); }
.modal { width: min(620px, 100%); max-height: min(88vh, 820px); overflow-y: auto; border-radius: 24px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.modal-head h2 { margin: 0; font-size: 28px; }
.modal-body { padding: 24px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.toast-region { position: fixed; z-index: 160; right: 20px; bottom: 20px; display: grid; gap: 10px; width: min(390px, calc(100% - 40px)); }
.toast { display: flex; align-items: start; gap: 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); padding: 14px 16px; box-shadow: 5px 5px 0 var(--yellow); animation: toast-in .22s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.toast strong { display: block; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 18px clamp(18px,4vw,58px); background: var(--ink); color: var(--white); font-size: 13px; }
.site-footer div { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 38px; }

.print-only { display: none; }
.print-summary { width: min(980px, calc(100% - 40px)); margin: 32px auto 60px; }
.print-cover { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 26px; padding: 28px; border-radius: 20px; background: var(--yellow); }
.print-cover-logo { padding: 14px 18px; border-radius: 12px; background: var(--white); }
.print-cover-logo img { display: block; width: 130px; }

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { order: 3; grid-column: 1 / -1; overflow-x: auto; justify-content: flex-start; padding-top: 6px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 800px) {
  .demo-bar { align-items: flex-start; flex-direction: column; gap: 2px; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { min-height: 470px; }
  .login-panel { padding: 42px 24px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 11px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-sidebar-title { display: none; }
  .side-link { white-space: nowrap; margin: 0; }
  .split { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 44px; }
}
@media (max-width: 620px) {
  .site-header { min-height: 68px; padding: 10px 16px; gap: 10px; }
  .brand img { width: 96px; }.brand-product { display: none; }
  .user-copy { display: none; }
  .page, .page-wide, .page-narrow { width: min(100% - 24px, 1220px); padding-top: 28px; }
  .cards, .stats-grid, .answer-grid, .field-row { grid-template-columns: 1fr; }
  .hero-copy { padding: 30px 24px; }
  .hero-panel { min-height: auto; border-radius: 22px; }
  h1 { font-size: 44px; }
  .game-card { border-radius: 19px; box-shadow: 5px 5px 0 var(--yellow); }
  .game-header, .game-content { padding: 18px; }
  .question-actions, .section-head, .admin-title { align-items: stretch; flex-direction: column; }
  .podium { gap: 5px; }
  .podium-person { padding: 8px; font-size: 13px; }
  .podium-score { font-size: 11px; }
  .admin-main { padding: 26px 14px 56px; }
  th, td { padding: 12px 10px; }
  .mosaic-stage { min-height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@page { size: A4; margin: 12mm; }
@media print {
  .demo-bar, .site-header, .site-footer, .no-print, .toast-region { display: none !important; }
  body { font-size: 10pt; background: #fff; }
  .print-summary { width: 100%; margin: 0; }
  .print-only { display: block; }
  .print-cover { break-inside: avoid; border-radius: 0; }
  .podium { break-inside: avoid; }
  .table-wrap { overflow: visible; border-radius: 0; }
  table { font-size: 8.5pt; }
  th, td { padding: 7px 8px; }
  .button { display: none !important; }
}

/* --- Adaptation application (hors maquette) : pas de bandeau de démonstration. --- */
.app-shell { min-height: 100vh; }
.auth-tab { text-align: center; text-decoration: none; color: var(--ink); }
.user-menu form { margin: 0; }
.clip-track { position: relative; height: 14px; margin: 12px 0 6px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); cursor: pointer; overflow: hidden; }
.clip-track span { position: absolute; top: 0; bottom: 0; background: var(--yellow); }
.clip-track i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ink); }

/* Tableaux administrateurs : liste de cartes sur mobile (design system §6). */
.admin-cards { display: none; }
@media (max-width: 800px) {
    .admin-table { display: none; }
    .admin-cards { display: grid; gap: 12px; }
    .admin-cards .section-actions { margin-top: 12px; }
}

/* Impression : forcer les couleurs SALTI dans le PDF, même si le navigateur
   décoche « Graphiques d'arrière-plan » ; masquer le lien d'évitement. */
@media print {
    *, *::before, *::after {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .skip-link { display: none !important; }
}

/* Interview du moment : vidéo en fond du hero d'accueil. */
.hero-interview { grid-template-columns: 1fr; min-height: 440px; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(100deg, var(--yellow) 8%, rgba(255, 221, 0, 0.88) 34%, rgba(255, 221, 0, 0.05) 78%); transition: opacity 0.4s ease; }
.hero-interview .hero-copy { position: relative; z-index: 2; align-self: end; }
.hero-interview.playing .hero-veil { background: linear-gradient(100deg, var(--yellow) 0%, rgba(255, 221, 0, 0.8) 22%, rgba(255, 221, 0, 0) 60%); }
@media (max-width: 800px) {
    .hero-veil, .hero-interview.playing .hero-veil { background: linear-gradient(180deg, rgba(255, 221, 0, 0.15) 0%, rgba(255, 221, 0, 0.85) 55%, var(--yellow) 100%); }
}

/* Pendant la lecture : vidéo plein cadre, voile et texte au survol seulement
   (souris/clavier ; sur écran tactile, tout reste visible). */
.hero-veil, .hero-interview .hero-copy { transition: opacity 0.35s ease; }
@media (hover: hover) {
    .hero-interview.playing .hero-veil,
    .hero-interview.playing .hero-copy { opacity: 0; }
    .hero-interview.playing .hero-copy { pointer-events: none; }
    .hero-interview.playing:hover .hero-veil,
    .hero-interview.playing:focus-within .hero-veil,
    .hero-interview.playing:hover .hero-copy,
    .hero-interview.playing:focus-within .hero-copy { opacity: 1; }
    .hero-interview.playing:hover .hero-copy,
    .hero-interview.playing:focus-within .hero-copy { pointer-events: auto; }
    .hero-interview.playing { cursor: pointer; }
}
.mosaic-stage .play-button { z-index: 5; }
