/* # COPYTO: C:\gameshow\gameshow\static\theme.css */

:root {
  --gg-bg1: #0b1020;
  --gg-bg2: #1c2e6d;
  --gg-bg3: #361a5a;

  --gg-accent1: #00d4ff;
  --gg-accent2: #ff2cc3;

  --gg-card: rgba(0,0,0,0.55);
  --gg-card2: rgba(255,255,255,0.08);
  --gg-border: rgba(255,255,255,0.16);

  --gg-text: #ffffff;
  --gg-muted: rgba(255,255,255,0.72);

  --gg-good: #2cff9f;
  --gg-bad: #ff5b5b;

  --gg-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

body.gg-page {
  margin: 0;
  min-height: 100vh;
  color: var(--gg-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 500px at 15% 20%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(900px 500px at 80% 15%, rgba(255,255,255,0.08), transparent 65%),
    linear-gradient(135deg, var(--gg-bg1), var(--gg-bg2) 45%, var(--gg-bg3));
}

.gg-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
}

.gg-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--gg-shadow);
}

.gg-brand {
  font-weight: 1000;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 14px;
}

.gg-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.gg-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: var(--gg-card);
  border: 1px solid var(--gg-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--gg-shadow);
}

.gg-title {
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
}

.gg-line {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,0.55);
  border: 1px solid var(--gg-border);
  font-weight: 950;
}

.gg-muted {
  color: var(--gg-muted);
}

.gg-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--gg-border);
  font-weight: 900;
}

.gg-label {
  display: block;
  font-size: 12px;
  color: var(--gg-muted);
  margin-top: 10px;
  font-weight: 900;
}

.gg-input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--gg-border);
  background: rgba(255,255,255,0.10);
  color: var(--gg-text);
  font-size: 16px;
  box-sizing: border-box;
  outline: none;
}

.gg-input::placeholder {
  color: rgba(255,255,255,0.55);
}

.gg-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--gg-border);
  background: rgba(255,255,255,0.10);
  color: var(--gg-text);
  font-weight: 950;
  cursor: pointer;
}

.gg-btn:hover {
  background: rgba(255,255,255,0.16);
}

.gg-btn:active {
  transform: translateY(1px);
}

.gg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gg-btn-primary {
  background: rgba(0,212,255,0.16);
  border-color: rgba(0,212,255,0.35);
}

.gg-btn-primary:hover {
  background: rgba(0,212,255,0.22);
}

.gg-btn-accent {
  background: rgba(255,44,195,0.16);
  border-color: rgba(255,44,195,0.35);
}

.gg-btn-accent:hover {
  background: rgba(255,44,195,0.22);
}

.gg-btn-ghost {
  background: rgba(255,255,255,0.06);
}

.gg-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .gg-grid2 {
    grid-template-columns: 1fr;
  }
}

.gg-choice {
  text-align: left;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--gg-border);
  background: rgba(255,255,255,0.08);
  color: var(--gg-text);
  cursor: pointer;
  font-weight: 900;
}

.gg-choice:hover {
  background: rgba(255,255,255,0.12);
}

.gg-choice.selected {
  outline: 3px solid rgba(255,255,255,0.80);
}

.gg-choice:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.gg-choice.correct {
  outline: 4px solid rgba(44,255,159,0.85);
}

.gg-choice.wrong {
  outline: 4px solid rgba(255,91,91,0.85);
}

.gg-scorelist {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.gg-scoreitem {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  font-weight: 900;
}

.gg-scoreitem .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}

a {
  color: rgba(159,255,221,1);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* NEW: obvious toast for phase changes */
.gg-toast {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.78);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
  font-weight: 1000;
  box-shadow: var(--gg-shadow);
  max-width: calc(100% - 24px);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .gg-enter { animation: ggEnter 220ms ease-out both; }
  .gg-pop { animation: ggPop 200ms ease-out both; }
  .gg-pulse { animation: ggPulse 900ms ease-in-out infinite; }

  @keyframes ggEnter {
    from { transform: translateX(-50%) translateY(-8px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
  }

  @keyframes ggPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1); }
  }

  @keyframes ggPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.01); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .gg-enter, .gg-pop, .gg-pulse { animation: none !important; }
}
