:root {
  --bg: #052d26;
  --panel: #0d4337;
  --mint: #b4f17b;
  --text: #f3f8ec;
  --muted: #a8c5b8;
  --line: #ffffff18;
  --ink: #123827;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 80% 0%, #11634a66, transparent 50%);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  background: var(--mint);
  color: var(--ink);
  transition:
    transform 0.2s,
    filter 0.2s;
}
button:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--mint);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ddff96;
  outline-offset: 3px;
}
header {
  max-width: 1440px;
  margin: auto;
  padding: 26px 5%;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand > span:last-child {
  color: var(--mint);
  margin-left: -8px;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 40px;
  background: var(--mint);
  color: var(--ink);
  border-radius: 13px 13px 13px 4px;
  margin-right: 3px;
  transform: rotate(-7deg);
}
nav {
  display: flex;
  gap: 26px;
  margin-left: 36px;
  font-size: 14px;
  color: var(--muted);
}
.header-right {
  display: flex;
  margin-left: auto;
  gap: 10px;
  align-items: center;
}
.quiet,
.outline,
.secondary {
  background: transparent;
  color: var(--text);
}
.outline,
.secondary {
  border: 1px solid #ffffff35;
}
.secondary {
  background: #ffffff08;
}
.danger {
  background: #b95151;
  color: white;
}
.small {
  font-size: 12px;
  padding: 9px 13px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 48px 5% 64px;
  min-height: 77vh;
}
footer {
  max-width: 1320px;
  margin: auto;
  padding: 26px 5%;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
footer b {
  color: var(--mint);
  margin: 0 10px;
}
.eyebrow {
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
  color: var(--mint);
  text-transform: uppercase;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 30px 0 54px;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 1.07;
  letter-spacing: -3px;
  margin: 22px 0;
}
.hero h1 em {
  color: var(--mint);
  font-style: normal;
}
.hero p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 450px;
}
.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.pill,
.tag {
  background: #ffffff0a;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 11px;
  color: var(--muted);
}
.join-card {
  position: relative;
  border: 1px solid #c0ffaf35;
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(145deg, #23604dba, #0e443acc);
  box-shadow:
    0 25px 70px #001c1c70,
    inset 0 1px 0 #ffffff30;
  backdrop-filter: blur(24px);
  max-width: 440px;
  margin: auto;
  transform: perspective(1000px) rotateY(-3deg);
  z-index: 1;
}
.join-card h2 {
  font-size: 29px;
  margin: 12px 0;
}
.join-card p {
  font-size: 13px;
}
.join-card button {
  width: 100%;
  padding: 17px;
}
.join-card input {
  font-size: 25px;
  text-align: center;
  letter-spacing: 6px;
  font-weight: 750;
  padding: 18px;
  background: #f6faee;
  color: #123827;
  margin-bottom: 12px;
}
.join-card input::placeholder {
  font-size: 17px;
  letter-spacing: 2px;
  color: #749080;
}
.join-card input[name="name"] {
  font-size: 17px;
  letter-spacing: 0;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--mint);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 15px var(--mint);
}
.art-wrap {
  position: relative;
  padding: 35px 0;
}
.orb {
  position: absolute;
  width: 170px;
  height: 170px;
  top: -18px;
  right: -5px;
  background: radial-gradient(
    circle at 30% 20%,
    #ecffd4,
    #b2ef66 25%,
    #3b9a5b 65%,
    #07462f
  );
  border-radius: 40px;
  transform: rotate(23deg);
  box-shadow:
    20px 25px 40px #001e2e66,
    inset 2px 2px 5px #ffffffaa;
  animation: float 7s ease-in-out infinite;
}
.orb:after {
  content: "✦";
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
  font-size: 85px;
  color: #e2ffb7;
}
.float-chip {
  position: absolute;
  left: -22px;
  bottom: 0;
  z-index: 2;
  border: 1px solid #e0ffc945;
  border-radius: 15px;
  padding: 14px 20px;
  background: #316651;
  box-shadow: 0 10px 25px #001d2466;
  transform: rotate(-6deg);
  font-size: 14px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 22px 0;
}
.section-head h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 8px 0;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #ffffff05;
  overflow: hidden;
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: #b4f17b66;
}
.card-body {
  padding: 20px;
}
.card h3 {
  font-size: 18px;
  margin: 10px 0 12px;
}
.card p {
  font-size: 13px;
}
.cover {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 10%, #94be7c, #326956);
}
.cover.c1 {
  background: linear-gradient(135deg, #c2bc79, #5b6b42);
}
.cover.c2 {
  background: linear-gradient(135deg, #789fa0, #274f57);
}
.cover.c3 {
  background: linear-gradient(135deg, #b49ab3, #534b67);
}
.cover.c4 {
  background: linear-gradient(135deg, #ddb482, #836140);
}
.cover:before,
.cover:after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px solid #ffffff35;
  border-radius: 30px;
  transform: rotate(30deg);
  left: 15px;
  top: 45px;
}
.cover:after {
  left: auto;
  right: -20px;
  top: -55px;
  width: 180px;
  height: 180px;
}
.shape {
  font-size: 68px;
  text-shadow: 6px 9px 2px #183d3c55;
  color: #eaffdd;
  transform: rotate(-9deg);
  filter: drop-shadow(0 15px 12px #183d3c66);
}
.cover .tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: #13382d88;
  color: white;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  background: linear-gradient(135deg, #174b3d, #0c3b32);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 20px;
}
.auth {
  max-width: 480px;
  margin: 30px auto;
}
.auth h1 {
  margin: 5px 0 24px;
  font-size: 32px;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  background: #032b25;
  color: var(--text);
  padding: 12px;
  min-height: 46px;
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  display: inline;
  width: auto;
  min-height: 0;
  margin: 0 8px 0 0;
}
input[type="file"] {
  font-size: 12px;
}
option {
  background: #0b3e32;
}
.full {
  width: 100%;
}
.error {
  color: #ffc0aa;
}
.toolbar {
  display: flex;
  gap: 12px;
  margin: 22px 0;
}
.toolbar input {
  margin: 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs button.active {
  background: var(--mint);
  color: var(--ink);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.editor-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 25px;
}
.question-nav button {
  display: block;
  width: 100%;
  text-align: left;
  margin-bottom: 9px;
}
.editor-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #114736;
}
.answer-edit {
  padding: 14px;
  background: #ffffff08;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.answer-edit input[type="text"] {
  margin-bottom: 10px;
}
.answer-edit label {
  margin-bottom: 4px;
}
.preview-img {
  max-height: 150px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}
.badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 20px;
  background: #b4f17b20;
  color: var(--mint);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 500;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #d9f9bd;
  color: #173b29;
  border-radius: 12px;
  padding: 15px 25px;
  box-shadow: 0 10px 50px #0005;
  display: none;
  max-width: 90vw;
}
.lobby {
  text-align: center;
}
.lobby h1 {
  font-size: 40px;
  margin: 20px 0;
}
.pin {
  font-size: clamp(50px, 9vw, 100px);
  font-weight: 900;
  letter-spacing: 12px;
  color: var(--mint);
  line-height: 1.1;
  margin: 22px 0;
}
.lobby-top {
  display: flex;
  justify-content: center;
  gap: 35px;
  align-items: center;
}
.qr {
  width: 150px;
  border-radius: 15px;
  box-shadow: 0 10px 30px #0003;
}
.nicknames {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  min-height: 150px;
  align-content: center;
  margin: 28px 0;
}
.nickname {
  border: 1px solid #b4f17b45;
  border-radius: 16px;
  background: #ffffff0d;
  padding: 14px 22px;
  font-size: 18px;
  animation: pop 0.35s ease-out;
}
.nickname b {
  color: var(--mint);
  margin-right: 10px;
}
.room-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  align-items: center;
}
.timer {
  font-size: 22px;
  font-weight: 800;
  color: var(--mint);
}
.progress {
  height: 5px;
  background: #ffffff18;
  border-radius: 5px;
  overflow: hidden;
  margin: 22px 0;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--mint);
  transition: width 0.3s linear;
}
.question-text {
  text-align: center;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.4;
  margin: 26px 0;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.answer {
  padding: 25px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  text-align: left;
  color: white;
  background: #227560;
  font-size: 20px;
  border: 2px solid transparent;
  box-shadow: 0 6px 0 #001b2055;
}
.answer:nth-child(2) {
  background: #37648b;
}
.answer:nth-child(3) {
  background: #91683d;
}
.answer:nth-child(4) {
  background: #77527c;
}
.answer .symbol {
  font-size: 30px;
}
.answer.correct {
  border-color: #e0ff9f;
  box-shadow: 0 0 20px #b4f17b55;
}
.answer.selected {
  outline: 3px solid white;
}
.answer img {
  max-width: 100px;
  max-height: 80px;
  border-radius: 10px;
}
.center {
  text-align: center;
}
.podium {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 12px;
  min-height: 230px;
  margin: 30px auto;
}
.podium div {
  width: 190px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(#b4f17b, #4c9b61);
  color: #143d2b;
  padding: 25px 10px;
  height: 200px;
  overflow: hidden;
}
.podium div:nth-child(1) {
  height: 160px;
  order: 0;
  background: linear-gradient(#c5dfd2, #7fa89c);
}
.podium div:nth-child(2) {
  height: 220px;
  order: 1;
}
.podium div:nth-child(3) {
  height: 135px;
  order: 2;
  background: linear-gradient(#d4bda1, #aa885f);
}
.podium b {
  display: block;
  font-size: 35px;
  margin-bottom: 10px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.fine {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.toggle {
  display: flex;
  align-items: center;
}
.hint {
  padding: 12px;
  border-left: 3px solid var(--mint);
  background: #ffffff07;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.stat-row {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}
.stat {
  padding: 20px;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.stat strong {
  font-size: 28px;
  display: block;
  color: var(--mint);
}
@keyframes float {
  50% {
    transform: translateY(-15px) rotate(28deg);
  }
}
@keyframes pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (max-width: 850px) {
  header {
    gap: 15px;
    flex-wrap: wrap;
    padding: 18px 5%;
  }
  nav {
    order: 3;
    width: 100%;
    margin: 5px 0 0;
    justify-content: center;
  }
  .brand {
    font-size: 21px;
  }
  .header-right {
    gap: 3px;
  }
  .header-right button {
    padding: 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 0;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .pills {
    justify-content: center;
  }
  .art-wrap {
    padding: 35px 15px;
  }
  .join-card {
    transform: none;
  }
  .float-chip {
    left: 0;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .question-nav {
    display: flex;
    gap: 6px;
    overflow: auto;
  }
  .question-nav button {
    min-width: 100px;
  }
  .lobby-top {
    flex-direction: column;
    gap: 10px;
  }
  .qr {
    width: 120px;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .answers {
    gap: 10px;
  }
  .answer {
    font-size: 16px;
    padding: 18px 12px;
  }
  .answer .symbol {
    font-size: 23px;
  }
  footer span:last-child {
    display: none;
  }
}
@media (max-width: 520px) {
  main {
    padding-top: 26px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 43px;
  }
  .join-card {
    padding: 25px;
  }
  .section-head {
    align-items: start;
  }
  .section-head h2 {
    font-size: 23px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .panel {
    padding: 20px;
  }
  .answer {
    min-height: 120px;
    flex-direction: column;
    align-items: start;
  }
  .pin {
    letter-spacing: 7px;
  }
  .podium div {
    width: 31%;
    font-size: 12px;
  }
  .room-bar {
    font-size: 12px;
  }
  .stat-row {
    gap: 8px;
  }
  .stat {
    padding: 10px;
  }
  .nickname {
    font-size: 15px;
    padding: 11px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
