:root {
  color-scheme: dark;
  --bg: #0b0f17;
  --panel: #151b26;
  --panel-2: #101620;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7fbff;
  --muted: #9eabba;
  --cyan: #23d5ff;
  --lime: #b7f25b;
  --pink: #ff5cab;
  --yellow: #ffd45a;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(35, 213, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(255, 92, 171, 0.16), transparent 30rem),
    linear-gradient(135deg, #080b11, var(--bg));
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.auth-area,
.mode-switch,
.display-tabs,
.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.auth-area {
  position: relative;
  align-items: center;
}

.version-control {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0 0.8rem;
  white-space: nowrap;
}

.version-control strong {
  color: var(--lime);
  font-size: 0.95rem;
}

.settings-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.chip,
.tab,
.icon-text,
.secondary,
.add-btn,
.quick-actions button,
.presentation-exit {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 0 1rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chip:hover,
.tab:hover,
.icon-text:hover,
.secondary:hover,
.add-btn:hover,
.quick-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.26);
}

.chip.active,
.tab.active {
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #071019;
  font-weight: 900;
}

.profile-chip {
  display: inline-grid;
  width: 3rem;
  min-width: 3rem;
  padding: 0;
  place-items: center;
}

.profile-chip svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.sign-in-btn {
  min-width: 7rem;
  justify-content: center;
}

.profile-menu-wrap {
  position: relative;
}

.profile-avatar {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: #071019;
  font-weight: 950;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 10;
  display: grid;
  gap: 0.55rem;
  width: 15rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101722;
  box-shadow: var(--shadow);
  padding: 0.75rem;
}

.profile-menu button,
.profile-menu label {
  width: 100%;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.7rem;
  text-align: left;
}

.profile-menu label {
  display: grid;
  gap: 0.45rem;
}

.profile-menu select {
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0 0.65rem;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
}

.stage,
.control-panel,
.award-panel,
.blueprint article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 20, 30, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stage {
  position: relative;
  overflow: hidden;
  min-height: 28rem;
  padding: 1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(35, 213, 255, 0.10), transparent 20%, transparent 80%, rgba(255, 92, 171, 0.10)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4.5rem);
}

.stage-head,
.primary-actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stage-head:empty {
  display: none;
}

.stage-head h2,
.panel-title {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.wheel-wrap {
  position: relative;
  z-index: 1;
  width: min(70vw, 54vh, 32rem);
  aspect-ratio: 1;
  margin: auto;
  align-self: center;
}

.wheel-wrap canvas,
.presentation-wheel canvas {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.45));
}

.pointer {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 1.05rem solid transparent;
  border-right: 1.05rem solid transparent;
  border-top: 2.4rem solid var(--yellow);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.carousel-wrap {
  position: relative;
  z-index: 2;
  min-height: 21rem;
  margin: auto 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.selection-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: clamp(12rem, 26vw, 16.75rem);
  height: 13.25rem;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(255, 212, 90, 0.9),
    0 0 42px rgba(255, 212, 90, 0.44),
    inset 0 0 28px rgba(255, 255, 255, 0.12);
}

.carousel-wrap::before,
.carousel-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 18%;
  pointer-events: none;
}

.carousel-wrap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11, 15, 23, 0.92), transparent);
}

.carousel-wrap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11, 15, 23, 0.92), transparent);
}

.carousel-track {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-height: 21rem;
  padding: 0 50%;
  will-change: transform;
}

.carousel-track.idle {
  padding: 0 1rem;
}

.carousel-card {
  display: grid;
  place-items: center;
  flex: 0 0 clamp(10rem, 22vw, 14rem);
  min-height: 11rem;
  border-radius: 8px;
  color: #081018;
  font-size: 1.4rem;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
  padding: 1rem;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
  transition: transform 260ms ease, filter 260ms ease, box-shadow 260ms ease;
}

.carousel-card.selected {
  transform: scale(1.14);
  filter: saturate(1.2) brightness(1.08);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.9),
    0 0 44px rgba(255, 212, 90, 0.78),
    0 26px 54px rgba(0, 0, 0, 0.42);
}

.carousel-slot {
  flex: 0 0 clamp(12rem, 26vw, 16.75rem);
  height: 13.25rem;
}

.primary-actions {
  justify-content: center;
  align-self: end;
}

.primary {
  min-height: 3.2rem;
  min-width: 9rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #101018;
  font-weight: 950;
  box-shadow: 0 16px 36px rgba(255, 92, 171, 0.27);
}

.secondary {
  min-width: 6.75rem;
}

.control-panel,
.award-panel {
  padding: 1rem;
  min-height: 0;
}

.panel-title {
  margin-bottom: 1rem;
  color: var(--text);
}

.panel-section + .panel-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1rem;
}

.section-title span {
  display: inline-grid;
  min-width: 2rem;
  min-height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.export-awards-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: fit-content;
  min-height: 2.4rem;
  margin: 0.75rem 0;
  margin-left: auto;
  padding: 0 1rem;
  border-color: rgba(255, 255, 255, 0.2);
  background: #14833b;
  color: #fff;
  font-weight: 900;
}

.export-awards-btn:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: #1f9d4a;
}

.excel-icon {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.item-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
}

.item-form input {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 0 0.9rem;
  outline: none;
}

.event-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.event-actions select {
  min-width: 0;
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  padding: 0 0.75rem;
  outline: none;
}

.item-form input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(35, 213, 255, 0.14);
}

.item-form input:disabled,
.item-row input:disabled,
.quick-actions button:disabled,
.add-btn:disabled,
.remove-btn:disabled {
  opacity: 0.52;
}

.item-list.locked .item-row {
  border-color: rgba(255, 212, 90, 0.22);
}

.quick-actions {
  margin: 0.65rem 0;
}

.item-list,
.history-list {
  display: grid;
  gap: 0.45rem;
  max-height: 19rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.item-form + .item-list,
.item-form + .compact-list {
  margin-top: 0.75rem;
}

.item-row,
.history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.45rem;
}

.reward-row {
  grid-template-columns: auto minmax(0, 1fr) 4.25rem auto auto auto;
}

.order-pill {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 212, 90, 0.16);
  color: var(--yellow);
  font-size: 0.8rem;
  font-weight: 950;
}

.move-btn {
  min-width: 3.1rem;
  height: 2.2rem;
  border-radius: 8px;
  background: rgba(35, 213, 255, 0.12);
  color: #d8f8ff;
  font-size: 0.76rem;
  font-weight: 850;
}

.qty-input {
  width: 4.25rem;
  min-height: 2.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  text-align: center;
  outline: none;
}

.item-row input {
  width: 100%;
  min-height: 2.2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.remove-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 8px;
  background: rgba(255, 107, 107, 0.14);
  color: #ffd6d6;
  font-weight: 900;
}

.history-row {
  grid-template-columns: minmax(0, 1fr) auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.history-row strong {
  color: var(--text);
}

.compact-list {
  max-height: 13rem;
}

.toggle input {
  display: none;
}

.toggle span {
  display: block;
  width: 3.25rem;
  height: 1.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: white;
  transition: transform 160ms ease;
}

.toggle input:checked + span {
  background: var(--lime);
}

.toggle input:checked + span::after {
  transform: translateX(1.45rem);
}

.range-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--cyan);
}

.blueprint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
}

.blueprint article {
  padding: 1rem;
}

.blueprint h2 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

.blueprint p,
.blueprint li,
.blueprint pre {
  color: var(--muted);
  line-height: 1.55;
}

.blueprint pre {
  overflow: auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  padding: 0.75rem;
}

.result-dialog,
.login-dialog,
.events-dialog,
.presentation-dialog {
  width: min(92vw, 34rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  padding: 0;
  overflow: visible;
}

.result-dialog::backdrop,
.login-dialog::backdrop,
.events-dialog::backdrop,
.presentation-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.result-card,
.login-card,
.events-card,
.presentation-dialog-card {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 213, 255, 0.14), rgba(255, 92, 171, 0.12)),
    #101722;
  padding: clamp(1.2rem, 5vw, 2rem);
  text-align: center;
}

.presentation-dialog {
  z-index: 40;
  width: min(92vw, 46rem);
}

.presentation-dialog::backdrop {
  background: rgba(5, 7, 11, 0.58);
}

.presentation-dialog-card h2 {
  margin: 0.6rem 0 1.2rem;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.events-dialog {
  width: min(94vw, 64rem);
}

.events-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 14, 22, 0.82);
  padding: clamp(1rem, 3vw, 1.5rem);
}

.events-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.events-page-head h2 {
  margin: 0;
}

.events-card {
  text-align: left;
}

.event-table-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.event-table-form input {
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 0 0.85rem;
}

.events-table-wrap {
  max-height: min(60vh, 32rem);
  overflow: auto;
}

.events-table {
  width: 100%;
  border-collapse: collapse;
}

.events-table th,
.events-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.events-table th {
  color: var(--muted);
  font-size: 0.8rem;
}

.login-card {
  display: grid;
  gap: 0.75rem;
}

.login-card h2 {
  margin: 0 0 0.25rem;
}

.login-card input {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  padding: 0 0.9rem;
  outline: none;
}

.login-card input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(35, 213, 255, 0.14);
}

.google-sign-in-mount {
  min-height: 2.75rem;
}

.login-message {
  min-height: 1.2rem;
  margin: 0;
  color: var(--yellow);
  font-size: 0.9rem;
}

.dialog-effects-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.result-card h2 {
  margin: 0.3rem 0 1.5rem;
  font-size: clamp(2.3rem, 9vw, 5rem);
  line-height: 1;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.dialog-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.effects-canvas {
  position: fixed;
  inset: 0;
  z-index: 20;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.presentation {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0.75rem 0.75rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(35, 213, 255, 0.11), transparent 38rem),
    #05070b;
}

.presentation-stage {
  --presentation-wheel-size: min(54vw, calc(100dvh - 14rem), 42rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(16rem, 23vw, 26rem);
  grid-template-areas:
    "event awards"
    "result awards"
    "visual awards";
  grid-template-rows: auto auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  width: min(110rem, 100%);
  height: calc(100dvh - 4.75rem);
  max-height: calc(100dvh - 4.75rem);
  min-height: 0;
  overflow: hidden;
}

.presentation-carousel {
  grid-area: visual;
  position: relative;
  width: 100%;
  height: clamp(14rem, 38dvh, 22rem);
  min-height: 14rem;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.presentation-wheel {
  grid-area: visual;
  position: relative;
  aspect-ratio: 1;
  width: var(--presentation-wheel-size);
  height: var(--presentation-wheel-size);
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
}

.presentation-wheel .pointer {
  top: -0.45rem;
  border-left-width: 1.2rem;
  border-right-width: 1.2rem;
  border-top-width: 2.8rem;
}

.presentation-carousel .carousel-track {
  height: 100%;
  min-height: 100%;
  padding: 0 1rem;
}

.presentation-carousel .carousel-track.idle {
  padding: 0 1rem;
}

.presentation-carousel .carousel-card {
  flex-basis: clamp(9rem, 16vw, 14rem);
  height: clamp(8.5rem, 24dvh, 12rem);
  min-height: 0;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
}

.presentation-carousel .carousel-slot {
  flex-basis: clamp(9rem, 16vw, 14rem);
  height: clamp(8.5rem, 24dvh, 12rem);
  flex-shrink: 0;
}

.presentation-carousel .selection-frame {
  width: clamp(9rem, 16vw, 14rem);
  height: clamp(8.5rem, 24dvh, 12rem);
}

.presentation-event-name {
  grid-area: event;
  margin: 0;
  color: var(--cyan);
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.presentation-stage h2 {
  grid-area: result;
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.presentation-awards {
  grid-area: awards;
  width: 100%;
  max-height: 100%;
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
  align-self: stretch;
  overflow: hidden;
  min-height: 0;
}

.presentation-awards h3 {
  margin: 0 0 0.65rem;
  color: var(--muted);
}

.presentation-award-list {
  display: grid;
  gap: 0.45rem;
  max-height: calc(100% - 2rem);
  overflow: auto;
}

.presentation-award-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.65rem;
}

.presentation-exit {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 31;
}

@media (max-width: 900px) {
  .presentation-stage {
    --presentation-wheel-size: min(82vw, 34dvh, 32rem);
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "event"
      "result"
      "visual"
      "awards";
    align-content: start;
    height: calc(100dvh - 4.75rem);
    min-height: 0;
    max-height: calc(100dvh - 4.75rem);
    overflow: auto;
  }

  .presentation-wheel {
    width: var(--presentation-wheel-size);
    height: var(--presentation-wheel-size);
  }

  .presentation-carousel {
    height: min(36dvh, 18rem);
  }

  .presentation-awards {
    max-height: 34vh;
  }
}

.hidden {
  display: none !important;
}

.member-only {
  display: none;
}

body.member button.member-only {
  display: inline-flex;
  align-items: center;
}

body.member section.member-only {
  display: block;
}

@media (min-width: 768px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    height: auto;
  }

  .stage {
    grid-column: 1 / -1;
    height: clamp(28rem, calc(100dvh - 13rem), 39rem);
    min-height: 0;
  }

  .control-panel,
  .award-panel {
    position: sticky;
    top: 1rem;
    max-height: 100%;
    overflow: auto;
  }

  .award-panel .history-list {
    max-height: none;
  }
}

@media (max-width: 767px) {
  .shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .stage {
    grid-column: 1 / -1;
  }

  .control-panel,
  .award-panel {
    max-height: 70vh;
    overflow: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .stage {
    min-height: auto;
    height: auto;
  }

  .primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-actions .primary {
    width: 100%;
  }

  .primary-actions .member-only {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .secondary {
    min-width: 0;
  }

  .event-actions {
    grid-template-columns: 1fr 1fr;
  }

  .event-actions select {
    grid-column: 1 / -1;
  }

  .reward-row {
    grid-template-columns: auto minmax(0, 1fr) 4rem auto;
  }

  .reward-row .move-btn {
    display: none;
  }
}
