/* ==========================================================================
   2026 Classroom Student Awards — global styles
   ========================================================================== */

:root {
    --bg: #0e0b1f;
    --bg-2: #1a1140;
    --panel: #ffffff;
    --panel-ink: #1a1a2e;
    --ink: #f5f3ff;
    --muted: #b8b3d6;
    --accent: #ffd166;
    --accent-2: #ff5d9e;
    --accent-3: #5dd3ff;
    --accent-4: #b07cff;
    --good: #2ecc71;
    --bad: #ff4757;
    --radius: 14px;
    --shadow: 0 12px 35px rgba(0, 0, 0, .35);
    --font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1200px 800px at 20% -10%, #3b1d6e 0%, transparent 60%),
        radial-gradient(900px 700px at 90% 0%, #5b1f7a 0%, transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    min-height: 100vh;
    line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.container.narrow { max-width: 520px; }

a { color: var(--accent-3); }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.big   { font-size: clamp(1.4rem, 2.4vw, 2rem); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-4));
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: .65rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(255, 93, 158, .35);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover     { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active    { transform: translateY(0); }
.btn.secondary { background: linear-gradient(135deg, var(--accent-3), #4d8bff); box-shadow: 0 6px 18px rgba(93, 211, 255, .3); }
.btn.danger    { background: linear-gradient(135deg, #ff6b6b, #ff4757); box-shadow: 0 6px 18px rgba(255, 71, 87, .35); }
.btn.ghost     { background: transparent; color: var(--ink); border: 1.5px solid rgba(255,255,255,.25); box-shadow: none; }
.btn.ghost:hover { border-color: rgba(255,255,255,.5); }
.btn.small     { padding: .35rem .75rem; font-size: .85rem; }
.btn.huge      { padding: 1rem 2.5rem; font-size: 1.25rem; }

/* ---- Cards / forms ------------------------------------------------------ */
.card {
    background: rgba(255, 255, 255, .06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.card h1, .card h2, .card h3 { margin-top: 0; }
.card.empty { text-align: center; }

.alert { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; }
.alert.success { background: rgba(46, 204, 113, .18); border: 1px solid var(--good); }
.alert.error   { background: rgba(255, 71, 87, .18);  border: 1px solid var(--bad); }

label {
    display: block;
    margin: .75rem 0;
    color: var(--muted);
    font-size: .9rem;
}

input[type=text], input[type=password], textarea {
    width: 100%;
    background: rgba(255, 255, 255, .07);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    padding: .65rem .8rem;
    font-size: 1rem;
    font-family: inherit;
    margin-top: .3rem;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-3);
    box-shadow: 0 0 0 3px rgba(93, 211, 255, .2);
}

.row-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    align-items: center;
}
.row-form input[type=text] { flex: 1 1 220px; margin-top: 0; }

.stacked-form { margin-top: .75rem; }

form.inline { display: inline; }

.setup-log { padding-left: 1.25rem; }

/* ==========================================================================
   Landing page
   ========================================================================== */
.landing-page { overflow-x: hidden; }

.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.bg-orbs span {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .35;
    animation: orbFloat 18s ease-in-out infinite;
}
.bg-orbs span:nth-child(1) { background: var(--accent-2); top: -80px;  left: -40px;  animation-delay: 0s; }
.bg-orbs span:nth-child(2) { background: var(--accent-3); top: 30%;    left: 70%;    animation-delay: -4s; }
.bg-orbs span:nth-child(3) { background: var(--accent-4); top: 60%;    left: 10%;    animation-delay: -8s; }
.bg-orbs span:nth-child(4) { background: var(--accent);   top: 80%;    left: 80%;    animation-delay: -12s; }
.bg-orbs span:nth-child(5) { background: #6affd0;         top: -10%;   left: 40%;    animation-delay: -2s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(40px, 60px) scale(1.15); }
}

.landing-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 4rem 1rem 2rem;
}
.landing-title {
    margin: 0;
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.05;
}
.landing-title .word {
    display: inline-block;
    margin: 0 .25em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-4), var(--accent-3));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hueShift 6s ease-in-out infinite, wordPop .8s cubic-bezier(.2,1.4,.4,1) both;
}
.landing-title .word:nth-child(1) { animation-delay: 0s, 0s; }
.landing-title .word:nth-child(2) { animation-delay: 0s, .1s; }
.landing-title .word:nth-child(3) { animation-delay: 0s, .2s; }
.landing-title .word:nth-child(4) { animation-delay: 0s, .3s; }

@keyframes wordPop {
    from { opacity: 0; transform: translateY(40px) scale(.6) rotate(-6deg); }
    to   { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}
@keyframes hueShift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.landing-sub {
    color: var(--muted);
    font-size: 1.15rem;
    margin-top: .25rem;
}

.landing-classroom {
    margin: 0 0 .35rem;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--accent-3);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}

.landing-title--compact {
    font-size: clamp(2rem, 5.5vw, 4rem);
}

.setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.setup-card-form {
    margin: 0;
}

.setup-card {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
    padding: 1.1rem 1.2rem;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.setup-card:hover,
.setup-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 209, 102, .45);
    background: rgba(255, 255, 255, .1);
    outline: none;
}

.setup-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}

.setup-card__meta {
    font-size: .85rem;
    color: var(--muted);
}

.picker-page .container {
    position: relative;
    z-index: 1;
}

/* award cards grid */
.award-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin: 1rem 0 3rem;
}
.award-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    text-decoration: none;
    color: var(--ink);
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
    animation: cardIn .6s ease both;
    animation-delay: var(--card-delay, 0s);
}
.award-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 209, 102, .15), rgba(176, 124, 255, .15));
    opacity: 0;
    transition: opacity .25s ease;
}
.award-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,.5), 0 0 30px rgba(255, 209, 102, .3);
    border-color: rgba(255, 209, 102, .4);
}
.award-card:hover::before { opacity: 1; }
.award-card.revealed { border-color: rgba(46, 204, 113, .35); }
.award-card.revealed::after {
    content: "Revealed";
    position: absolute;
    top: .65rem;
    right: .65rem;
    font-size: .7rem;
    background: rgba(46, 204, 113, .25);
    color: #b3ffd1;
    padding: .15rem .55rem;
    border-radius: 999px;
    z-index: 1;
}

.award-card__ribbon {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-4), var(--accent-3));
    background-size: 300% 100%;
    animation: ribbonSlide 4s linear infinite;
}
@keyframes ribbonSlide {
    from { background-position: 0% 0; }
    to   { background-position: 300% 0; }
}

.award-card__trophy {
    font-size: 2.5rem;
    filter: drop-shadow(0 4px 10px rgba(255, 209, 102, .5));
    position: relative;
    z-index: 1;
}
.award-card__name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
.award-card__desc {
    color: var(--muted);
    font-size: .9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}
.award-card__cta {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    font-size: .9rem;
    position: relative;
    z-index: 1;
}
.award-card__cta span { display: inline-block; transition: transform .2s; }
.award-card:hover .award-card__cta span { transform: translateX(6px); }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.landing-foot {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1rem 3rem;
    display: flex;
    gap: .5rem;
    justify-content: center;
}

/* ==========================================================================
   Admin / setup / auth pages
   ========================================================================== */
.admin-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, .25);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.admin-header h1 { margin: 0; font-size: 1.4rem; }
.admin-header nav { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

.award-block__head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}
.award-block__head h2 { margin: 0 0 .25rem; }
.award-block__actions { display: flex; flex-wrap: wrap; gap: .35rem; }

.edit-details { margin: .75rem 0 1rem; }
.edit-details summary { cursor: pointer; color: var(--muted); font-size: .85rem; }

.winners-list { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.winners-list.hidden { display: none; }
.winners-empty.hidden { display: none; }
.winners-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .05);
    padding: .5rem .75rem;
    border-radius: 8px;
    margin-bottom: .35rem;
}
.winner-edit-input,
.winner-add-input {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.winner-edit-input.winner-saved,
.winner-add-input.winner-saved {
    box-shadow: 0 0 0 2px rgba(46, 204, 113, .45);
}
.winner-edit-input.winner-save-error,
.winner-add-input.winner-save-error {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, .55);
}
.winner-save-hint {
    margin: .35rem 0 0;
}

.badge {
    display: inline-block;
    margin-top: .35rem;
    font-size: .75rem;
    padding: .15rem .55rem;
    background: rgba(46, 204, 113, .25);
    color: #b3ffd1;
    border-radius: 999px;
}

.setup-page, .auth-page { display: flex; align-items: center; min-height: 100vh; }
.setup-page .container, .auth-page .container { width: 100%; }

/* ==========================================================================
   Presentation page
   ========================================================================== */
.present-page {
    overflow: hidden;
    height: 100vh;
    background:
        radial-gradient(900px 700px at 50% 20%, #2d1660 0%, transparent 60%),
        radial-gradient(700px 500px at 20% 80%, #6a1d6e 0%, transparent 55%),
        radial-gradient(700px 500px at 80% 80%, #1d406e 0%, transparent 55%),
        linear-gradient(180deg, #0a0717 0%, #150827 100%);
}

#fxCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.stage {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.stage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* radial rays sweeping behind everything */
.rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vmax;
    height: 200vmax;
    margin-top: -100vmax;
    margin-left: -100vmax;
    background: conic-gradient(
        from 0deg,
        rgba(255, 209, 102, .12) 0deg,
        transparent 8deg,
        transparent 22deg,
        rgba(176, 124, 255, .12) 30deg,
        transparent 38deg,
        transparent 52deg,
        rgba(93, 211, 255, .12) 60deg,
        transparent 68deg,
        transparent 82deg,
        rgba(255, 93, 158, .12) 90deg,
        transparent 98deg
    );
    background-size: 100% 100%;
    opacity: 0;
    transition: opacity .8s ease;
    animation: rayspin 22s linear infinite;
}
.present-page.show-rays .rays { opacity: 1; }
@keyframes rayspin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.spotlight {
    position: absolute;
    width: 60vmax;
    height: 110vmax;
    top: -20vmax;
    background: linear-gradient(to bottom, rgba(255,255,255,.18), transparent 80%);
    filter: blur(20px);
    opacity: 0;
    transition: opacity .6s ease;
    mix-blend-mode: screen;
    transform-origin: top center;
}
.spotlight--left  { left: -10vmax; transform: rotate(20deg);  animation: sway 7s ease-in-out infinite alternate; }
.spotlight--right { right: -10vmax; transform: rotate(-20deg); animation: sway 7s ease-in-out infinite alternate-reverse; }
.present-page.lights-on .spotlight { opacity: .9; }
@keyframes sway {
    from { transform: rotate(15deg); }
    to   { transform: rotate(25deg); }
}
.spotlight--right { animation-name: swayR; }
@keyframes swayR {
    from { transform: rotate(-15deg); }
    to   { transform: rotate(-25deg); }
}

/* phases */
.phase {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 1;
    overflow: visible;
}
.phase.active { display: flex; }

.award-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 1.1rem 1.25rem .5rem;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .45s ease, transform .45s ease;
}
.present-page--banner .award-banner {
    opacity: 1;
    transform: translateY(0);
}
.award-banner__kicker {
    margin: 0 0 .35rem;
    font-size: clamp(.65rem, 1.6vw, .85rem);
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--muted);
}
.award-banner__title {
    margin: 0;
    font-size: clamp(1.15rem, 3.2vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-4) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 18px rgba(255, 209, 102, .2));
}
.present-page--banner .phase.active {
    padding-top: clamp(4.5rem, 12vh, 6.5rem);
}

.kicker {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .4em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: kickerIn .6s .1s ease forwards;
}
@keyframes kickerIn {
    from { opacity: 0; letter-spacing: .1em; }
    to   { opacity: 1; letter-spacing: .4em; }
}

.award-title {
    margin: 0;
    font-size: clamp(3rem, 11vw, 9rem);
    font-weight: 900;
    line-height: .95;
    letter-spacing: 1px;
    text-shadow: 0 0 40px rgba(255, 209, 102, .25);
}
.award-title__word {
    display: inline-block;
    margin: .1em .15em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent-4) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    transform: translateY(60px) scale(.5) rotate(-8deg);
    animation: titleWord 1s cubic-bezier(.2,1.6,.3,1) forwards, hueShift 6s ease-in-out infinite;
}
.award-title__word:nth-child(1) { animation-delay: .3s, 0s; }
.award-title__word:nth-child(2) { animation-delay: .45s, 0s; }
.award-title__word:nth-child(3) { animation-delay: .6s, 0s; }
.award-title__word:nth-child(4) { animation-delay: .75s, 0s; }
.award-title__word:nth-child(5) { animation-delay: .9s, 0s; }
.award-title__word:nth-child(6) { animation-delay: 1.05s, 0s; }
.award-title__word:nth-child(7) { animation-delay: 1.2s, 0s; }
.award-title__word:nth-child(8) { animation-delay: 1.35s, 0s; }
@keyframes titleWord {
    0%   { opacity: 0; transform: translateY(60px) scale(.5) rotate(-8deg); }
    60%  { opacity: 1; transform: translateY(-10px) scale(1.1) rotate(2deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

.award-desc {
    margin-top: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted);
    max-width: 800px;
    opacity: 0;
    animation: fadeIn 1s 1.4s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* drumroll phase */
.phase--drumroll .big-text {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(93, 211, 255, .3);
    animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}
.dots {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.25rem;
}
.dots span {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 24px var(--accent);
    animation: dotBounce 1s ease-in-out infinite;
}
.dots span:nth-child(2) { animation-delay: .15s; background: var(--accent-2); box-shadow: 0 0 24px var(--accent-2); }
.dots span:nth-child(3) { animation-delay: .3s;  background: var(--accent-3); box-shadow: 0 0 24px var(--accent-3); }
@keyframes dotBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-20px) scale(1.3); }
}

/* reveal phase */
.phase--reveal .trophy {
    font-size: clamp(3rem, 10vw, 8rem);
    filter: drop-shadow(0 0 30px rgba(255, 209, 102, .9));
    animation: trophySpin 1.2s cubic-bezier(.2,1.5,.4,1) both, trophyFloat 3s ease-in-out infinite 1.2s;
    margin-bottom: 1rem;
}
@keyframes trophySpin {
    0%   { transform: scale(0) rotate(-540deg); opacity: 0; }
    70%  { transform: scale(1.3) rotate(20deg);  opacity: 1; }
    100% { transform: scale(1) rotate(0);        opacity: 1; }
}
@keyframes trophyFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-15px); }
}

.winner-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    overflow: visible;
    padding-bottom: .25rem;
}
.winner-name {
    font-size: clamp(3rem, 13vw, 11rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 1px;
    display: block;
    padding: 0 0 0.1em;
    opacity: 0;
    transform: scale(.2) rotate(-15deg);
    animation: winnerIn 1.2s cubic-bezier(.2,1.5,.3,1) forwards;
    text-align: center;
    overflow: visible;
    filter: drop-shadow(0 0 28px rgba(255, 209, 102, .35));
}
.winner-name__text {
    position: relative;
    display: inline-block;
    font: inherit;
    letter-spacing: inherit;
    line-height: 1.15;
    padding: 0 0.06em 0.12em;
    color: #ffe8b8;
    -webkit-text-fill-color: #ffe8b8;
    word-break: break-word;
    overflow: visible;
}
.winner-name__text::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    padding: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    background: linear-gradient(135deg, #fff, var(--accent), var(--accent-2), #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    animation: hueShift 4s ease-in-out infinite;
}
@keyframes winnerIn {
    0%   { opacity: 0; transform: scale(.2) rotate(-15deg); }
    50%  { opacity: 1; transform: scale(1.25) rotate(5deg); }
    70%  { transform: scale(.92) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

.congrats {
    margin-top: 1.5rem;
    font-size: clamp(1.4rem, 3.5vw, 2.5rem);
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s 1.4s ease forwards;
}

/* shake the entire stage on reveal */
.present-page.shake .stage { animation: shake .6s ease; }
@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    20%      { transform: translate(-8px, 4px) rotate(-.5deg); }
    40%      { transform: translate(8px, -4px) rotate(.5deg); }
    60%      { transform: translate(-6px, -2px); }
    80%      { transform: translate(6px, 2px); }
}

/* controls / dock */
.present-dock {
    position: fixed;
    z-index: 20;
    pointer-events: none;
}

.present-dock__idle,
.present-dock__live {
    pointer-events: auto;
}

.present-dock--idle .present-dock__live {
    display: none !important;
}

.present-dock--live .present-dock__idle {
    display: none !important;
}

.present-dock__idle {
    position: fixed;
    left: 50%;
    bottom: 8vh;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
}

.present-dock__idle .btn.huge {
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 30px rgba(255, 93, 158, .55), 0 0 0 0 rgba(255, 93, 158, .5);
    animation: btnPulse 1.6s ease-in-out infinite;
}

.present-dock__live {
    position: fixed;
    right: 0;
    bottom: 1.25rem;
    display: flex;
    align-items: stretch;
    max-width: min(92vw, 22rem);
    transform: translateX(calc(100% - 2.75rem));
    transition: transform .35s ease, opacity .35s ease;
    opacity: .72;
}

.present-page--live .present-dock__live {
    opacity: .45;
    pointer-events: none;
}

.present-page--live .present-dock__tab {
    pointer-events: auto;
}

.present-page--live-ready .present-dock__live,
.present-dock__live:hover,
.present-dock__live:focus-within,
.present-dock__live.is-open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.present-dock__live--ready {
    transform: translateX(calc(100% - 6.5rem));
}

.present-dock__live--ready:hover,
.present-dock__live--ready:focus-within,
.present-dock__live--ready.is-open {
    transform: translateX(0);
}

.present-dock__tab {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: rgba(12, 10, 28, .82);
    color: var(--ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    padding: .35rem .2rem;
    backdrop-filter: blur(8px);
}

.present-dock__tab-icon {
    font-size: 1rem;
    line-height: 1;
    opacity: .85;
}

.present-dock__tab-label {
    font-size: .55rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    opacity: .75;
}

.present-dock__panel {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .65rem .75rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(12, 10, 28, .88);
    backdrop-filter: blur(10px);
    box-shadow: -8px 8px 28px rgba(0, 0, 0, .35);
}

.present-dock__panel .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.present-dock__panel .btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    font-weight: 700;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 93, 158, .55), 0 0 0 0 rgba(255, 93, 158, .5); }
    50%      { box-shadow: 0 8px 30px rgba(255, 93, 158, .55), 0 0 0 16px rgba(255, 93, 158, 0); }
}

/* legacy class names removed — present-controls / present-tools */

@media (max-width: 500px) {
    .award-block__head { flex-direction: column; }
    .row-form input[type=text] { flex-basis: 100%; }
}

/* ==========================================================================
   Import page
   ========================================================================== */
.import-card { border-left: 3px solid var(--accent-3); }

.inline-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.inline-row input[type=number],
.inline-row input[type=checkbox] { margin-top: 0; }

.import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.import-col {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: .8rem 1rem;
}
.import-col__head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem;
    color: var(--ink);
    font-size: .95rem;
}
.import-col__head input[type=checkbox] { margin: 0; }

.tally-list { list-style: none; padding: 0; margin: 0; }
.tally-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .25rem .35rem;
    border-radius: 6px;
    font-size: .9rem;
}
.tally-list li.winner {
    background: rgba(255, 209, 102, .15);
}
.tally-list__count {
    color: var(--accent-3);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.tally-list .badge { margin-left: .35rem; font-size: .65rem; }
