/* =============================================
   NoNo Game - Styles
   Dark purple theme matching mockup designs
   ============================================= */
@font-face {
            font-family: "Twemoji Country Flags";
            src: url("/fonts/TwemojiCountryFlags.woff2") format("woff2");
            unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067,
                U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;     
            font-display: swap;
        }
/* ---- Noto Emoji ---- */
.noto-emoji {
  font-family: "Noto Emoji", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}
/* Ensure emoji characters render via Noto Emoji everywhere */
button, .btn, .opt-btn, .back-btn, .cat-btn, .cat-action-btn,
.coll-card-icon, .coll-sel-tag, .award-icon, .summary-award-tag,
.history-detail-word {
  font-family: "Twemoji Country Flags", "Nunito", "Noto Emoji",  sans-serif;
}

:root {
  --bg-dark: #120818;
  --bg-top: #1e0a28;
  --purple: #9c27b0;
  --purple-light: #ce93d8;
  --purple-dark: #7b1fa2;
  --panel-bg: rgba(100, 50, 100, 0.25);
  --panel-border: rgba(140, 70, 140, 0.35);
  --btn-bg: rgba(100, 60, 100, 0.4);
  --btn-hover: rgba(130, 70, 130, 0.55);
  --btn-selected-bg: rgba(140, 80, 140, 0.5);
  --btn-selected-border: rgba(255, 255, 255, 0.6);
  --green: #2e7d32;
  --green-bright: #4caf50;
  --red: #c62828;
  --red-bright: #e53935;
  --amber: #8d6914;
  --amber-light: #a68520;
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --radius: 12px;
  --radius-lg: 16px;
}
.opt-btn {
    font-family: "Twemoji Country Flags", "Nunito", "Noto Emoji",  sans-serif;
}
/* ---- RESET & BASE ---- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--white);
  font-family: 'Nunito', "Twemoji Country Flags", "Noto Emoji", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-dark) 40%);
}
a {
    color: cornflowerblue;
    font-weight: 600;
    text-decoration: none;
}
/* ---- SCREENS ---- */

.screen {
  display: none;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.screen.active {
  display: flex;
}

.screen-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  display: flex;
  flex-direction: column;
}

.center-content {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
}

/* ---- SCREEN HEADER ---- */

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-game-btn {
  background: none;
  border: 2px solid var(--red-bright);
  color: var(--red-bright);
  font-size: 1.5rem;
  font-weight: 900;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.header-title {
  font-weight: 800;
  font-style: italic;
  font-size: 1rem;
}

.back-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---- LOGO ---- */

.logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.logo-bubble {
    position: relative;
    background: #5c1d6733;
  border-radius: 50%;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(156, 39, 176, 0.4);
}



.logo-text {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 0.85;
  text-align: center;
  color: var(--white);
}

.logo-text em {
  font-style: italic;
  color: var(--white);
  font-size: 0.9em;
}

/* Small logo for headers */
.logo-sm {
   background: #5c1d6733;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 0.9;
  position: relative;
  flex-shrink: 0;
      

}
img.logo-img {
    height: 100%;
    width: inherit;
}


.logo-sm em {
  font-style: italic;
  font-size: 0.85em;
}

.logo-sm-big {
  width: 80px;
  height: 80px;
  font-size: 1.3rem;
  margin-bottom: 24px;
}



/* ---- BUTTONS ---- */

.btn {
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 800;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-align: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-large {
  display: block;
  width: 100%;
  padding: 22px 16px;
  font-size: 2rem;
  background: var(--btn-bg);
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
}

.btn-large:hover {
  background: var(--btn-hover);
}

.btn-small {
  padding: 16px 8px;
  font-size: 1.1rem;
  background: var(--btn-bg);
  border-radius: var(--radius);
  flex: 1;
}

.btn-small:hover {
  background: var(--btn-hover);
}

.btn-start {
  display: block;
  width: 100%;
  padding: 18px 16px;
  font-size: 1.4rem;
  background: var(--green);
  margin-top: 24px;
  border-radius: var(--radius-lg);
}

.btn-start:hover {
  background: var(--green-bright);
}

.btn-continue {
  background: var(--green);
  font-size: 1.6rem;
  font-weight: 900;
}

.btn-continue:hover {
  background: var(--green-bright);
}

.btn-close-game {
  background: rgba(180, 30, 30, 0.25);
  border: 1px solid rgba(220, 60, 60, 0.45);
  color: rgba(255, 140, 140, 0.9);
  font-size: 0.85rem;
  margin-top: -4px;
  margin-bottom: 6px;
}
.btn-close-game:hover {
  background: rgba(200, 40, 40, 0.45);
  color: #fff;
}

.active-game-indicator {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.btn-waiting {
  display: block;
  width: 100%;
  padding: 18px 16px;
  font-size: 1.4rem;
  background: var(--amber);
  margin-top: 24px;
  border-radius: var(--radius-lg);
  opacity: 0.7;
}

.btn-pass {
  flex: 1;
  padding: 20px 16px;
  font-size: 1.6rem;
  background: var(--green);
  border-radius: var(--radius-lg);
}

.btn-pass:hover {
  background: var(--green-bright);
}

.btn-skip {
  flex: 1;
  padding: 20px 16px;
  font-size: 1.6rem;
  background: var(--amber);
  border-radius: var(--radius-lg);
}

.btn-skip:hover {
  background: var(--amber-light);
}

.btn-fail {
  flex: 1;
  padding: 20px 16px;
  font-size: 1.6rem;
  background: var(--red);
  border-radius: var(--radius-lg);
}

.btn-fail:hover {
  background: var(--red-bright);
}

.btn-row-3 {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* ---- OPTION BUTTONS (toggles) ---- */

.option-row {
  display: flex;
  gap: 10px;
  margin: 8px 0 16px;
  align-items: center;
}

.opt-btn {
  flex: 1;
  padding: 14px 8px;
  font-family: "Twemoji Country Flags", "Nunito", "Noto Emoji",  sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.opt-btn:hover {
  background: var(--btn-hover);
}

.opt-btn.selected {
  background: var(--btn-selected-bg);
  border-color: var(--btn-selected-border);
}

/* ---- LABELS & TEXT ---- */

.section-label {
  font-size: 1.3rem;
  font-weight: 800;
  font-style: italic;
  color: var(--purple-light);
  margin-top: 12px;
  margin-bottom: 4px;
}

.label-inline {
  font-weight: 800;
  font-style: italic;
  color: var(--purple-light);
}

.label-sm {
  font-style: italic;
  font-weight: 700;
  color: var(--purple-light);
  font-size: 0.85rem;
}

.setup-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.setup-value {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.dots-btn {
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  letter-spacing: 2px;
  padding: 4px 8px;
}

.info-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: -8px;
  margin-bottom: 8px;
}

.desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
}

.error-msg {
  color: var(--red-bright);
  font-size: 0.95rem;
  text-align: center;
  min-height: 20px;
  margin: 8px 0;
}

/* ---- FORMS ---- */

.form-group {
  margin-bottom: 12px;
}

.text-input {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
  margin-top: 6px;
}

.text-input::placeholder {
  color: var(--text-muted);
}

.text-input:focus {
  border-color: var(--purple);
}

/* ---- LOBBY ---- */

.game-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}

.game-info-bar b {
  color: var(--white);
}

.lobby-section {
  margin-bottom: 12px;
}

.lobby-settings-edit {
  padding: 8px 0 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.lobby-settings-edit .option-row {
  margin: 6px 0 12px;
}

.lobby-settings-edit .opt-btn {
  padding: 10px 6px;
  font-size: 1.2rem;
}

.lobby-id-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.big-value {
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  margin: 4px 0 16px;
  letter-spacing: 4px;
}

.lobby-players {
  margin: 8px 0;
}

.lobby-player {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border);
  gap: 12px;
}

.lobby-player .player-name {
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
}

.lobby-player .player-name.empty {
  color: var(--text-muted);
  letter-spacing: 2px;
}

.player-status {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.player-status.joined {
  color: var(--green-bright);
}

.player-status.waiting {
  color: var(--red-bright);
}

.player-team {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 60px;
  text-align: right;
}

/* ---- TEAM SELECT ---- */

.team-select-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}

.team-select-card {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 16px;
}

.team-select-card.full {
  opacity: 0.5;
}

.team-select-header {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.team-select-players {
  margin-bottom: 12px;
}

.team-select-player {
  font-size: 1rem;
  font-weight: 700;
  padding: 4px 0;
  color: var(--white);
}

.team-select-player.empty {
  color: var(--text-muted);
  font-style: italic;
}

.team-join-btn {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}

.team-shared-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  font-size: 0.95rem;
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
}

.team-select-shared-tag {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- SHARED TEAM SETUP ---- */

.shared-player-inputs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.shared-name-input {
  margin-top: 0 !important;
}

.shared-name-input[readonly] {
  opacity: 0.6;
}

.host-player-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.host-player-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

#lobby-add-player {
  margin: 12px 0 4px;
}
.btn-add-local {
  width: 100%;
  background: transparent;
  border: 1.5px dashed rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
}
.btn-add-local:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
#add-local-player-form {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px;
  margin-top: 6px;
}
.add-local-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* ---- PLAY SCREEN ---- */

.play-content {
  min-height: 100vh;
  padding-bottom: 0;
}

.play-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 8px 0 4px;
}

.score-display {
  display: flex;
  flex-direction: column;
}

.score-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-light);
}

.score-value {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.timer-display {
  font-size: 2rem;
  font-weight: 800;
}

/* Progress bar */

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 8px 0 16px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.1s linear;
}

.progress-fill.green {
  background: linear-gradient(90deg, #2e7d32, #4caf50);
}

.progress-fill.yellow {
  background: linear-gradient(90deg, #f9a825, #ffb300);
}

.progress-fill.red {
  background: linear-gradient(90deg, #c62828, #e53935);
}

/* Word card */

.word-card {
  background: var(--purple);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  margin: 8px 0 16px;
  box-shadow: 0 4px 20px rgba(156, 39, 176, 0.3);
}

.word-card span {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white);
}

.word-card.dimmed {
  background: rgba(40, 20, 40, 0.8);
  box-shadow: none;
}

.word-card.dimmed span {
  color: rgba(255, 255, 255, 0.35);
}

/* Nono words */

.nono-label {
  text-align: center;
  font-size: 0.95rem;
  color: var(--purple-light);
  font-style: italic;
  margin-bottom: 8px;
}

.nono-label b {
  font-weight: 800;
}

.nono-list {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin-bottom: 16px;
}

.nono-list:has(.clickable) {
  gap: 6px;
}

.nono-word {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  padding: 2px 0;
}

.nono-word.clickable {
  cursor: pointer;
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 2px solid rgba(255, 255, 255, 0.25);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nono-word.clickable:hover {
  background: rgba(255, 70, 70, 0.25);
  border-color: rgba(255, 70, 70, 0.6);
}

.nono-word.clickable:active {
  background: rgba(255, 70, 70, 0.5);
  border-color: var(--red);
  transform: scale(0.96);
}

/* Previous word result */

.prev-word-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius);
}

.prev-label {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--purple-light);
}

.prev-word-text {
  font-size: 1.1rem;
  font-weight: 800;
}

.result-badge {
  font-size: 0.85rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: capitalize;
}

.result-badge.pass {
  background: var(--green);
}

.result-badge.fail {
  background: var(--red);
}

.result-badge.skip {
  background: var(--amber);
}

/* Action buttons */

.action-buttons {
  display: flex;
  gap: 12px;
  padding: 12px 0 24px;
  margin-top: auto;
}

.opponent-actions-wrap {
  align-items: center;
  justify-content: center;
}

.opponent-center-actions {
  display: flex;
  gap: 12px;
  flex: 1;
}

.opponent-prev-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.prev-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.prev-status-label {
  color: var(--text-muted);
  font-weight: 700;
}

.prev-action-btns {
  display: flex;
  gap: 8px;
  width: 100%;
}

.prev-action-btns .btn-sm {
  flex: 1;
  padding: 10px 6px;
  font-size: 0.85rem;
}

.prev-action-btns .btn-sm:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.btn-nav {
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.4rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
  color: #fff;
  flex-shrink: 0;
}

/* Ready / Waiting overlays */

.ready-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0 24px;
  margin-top: auto;
}

.btn-ready-go {
  font-size: 1.6rem;
  padding: 18px 48px;
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(102,187,106,0.4); }
  50% { box-shadow: 0 0 20px rgba(102,187,106,0.8); }
}

.waiting-pulse {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.7);
  animation: fade-pulse 1.5s ease-in-out infinite;
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Role info (teammate) */

.role-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}

.role-info h2 {
  font-size: 1.8rem;
  color: var(--purple-light);
}

.teammate-describer {
  margin-top: 16px;
}

/* ---- HANDOFF ---- */

.handoff-card {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin: 24px 0;
  text-align: center;
}

.handoff-card h1 {
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.handoff-team {
  font-size: 1.3rem;
  font-weight: 800;
}

/* ---- TURN SUMMARY (vertical flow) ---- */

.summary-list {
  margin: 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.summary-item {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 44px;
  transition: height 0.25s ease;
}

/* Time label — left column */
.summary-time {
  width: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  background: rgba(30,80,30,0.55);
  border-right: 3px solid rgba(40,100,40,0.45);
}

/* Inner bar — fills the middle */
.summary-bar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30,80,30,0.55);
  position: relative;
  min-width: 0;
}

/* Bottom border color by result */
.summary-item.pass .summary-bar,
.summary-item.pass .summary-time {
  border-bottom: 3px solid var(--green-bright);
}
.summary-item.fail .summary-bar,
.summary-item.fail .summary-time {
  border-bottom: 3px solid var(--red-bright);
}
.summary-item.skip .summary-bar,
.summary-item.skip .summary-time {
  border-bottom: 3px solid var(--amber-light);
}

/* Word name inside bar */
.summary-word {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.summary-item.skip .summary-word {
  color: var(--text-muted);
  font-style: italic;
}

/* Result badge — right column */
.summary-badge {
  width: 48px;
  flex-shrink: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  background: none;
  color: var(--white);
  transition: transform 0.15s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.summary-badge:active {
  transform: scale(0.85);
}
.summary-badge.pass {
  background: var(--green);
  color: var(--white);
}
.summary-badge.fail {
  background: var(--red);
  color: var(--white);
}
.summary-badge.skip {
  background: var(--amber);
  color: var(--white);
  font-style: italic;
}

/* Award tags on timeline rows */
.summary-bar {
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}
.summary-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.summary-award-tag {
  font-family: "Noto Emoji", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffd700;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 8px;
  padding: 1px 8px;
  white-space: nowrap;
  text-shadow: 0 0 6px rgba(255,215,0,0.4);
}

/* Legacy icon class (unused but kept for compat) */
.summary-icon {
  display: none;
}

/* ---- INPUT WRAP + CLEAR BUTTON ---- */

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.input-wrap .text-input {
  margin-top: 0;
  padding-right: 40px;
}

.input-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, color 0.15s;
}

.input-clear:hover,
.input-clear:active {
  background: rgba(255,255,255,0.22);
  color: var(--white);
}

/* ---- SCAN BUTTON ---- */

.btn-scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  background: var(--purple);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 8px;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
}

.btn-scan:active {
  background: var(--purple-dark, #5a3ec8);
}

.btn-scan svg {
  flex-shrink: 0;
}

/* ---- DIVIDER ---- */

.divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--panel-border);
}

/* ---- SCANNER OVERLAY ---- */

.scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  background-color: #1e0a28;
}

.scanner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.scanner-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}

.scanner-close {
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.scanner-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-frame {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 3px solid var(--purple);
  border-radius: 16px;
  box-shadow: 0 0 0 4000px rgba(0,0,0,0.5);
  pointer-events: none;
}

.scanner-hint {
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* (summary-icon styles removed — now in summary section above) */

.summary-item.skip .summary-word {
  /* handled in summary section above */
}

.summary-item.skip .summary-icon {
  display: none;
}

/* ---- GAME OVER ---- */

.game-over-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.winner-text {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.final-scores {
  width: 100%;
  max-width: 300px;
  margin-bottom: 24px;
}

.final-score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--panel-bg);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.final-score-item .team-name {
  font-weight: 800;
  font-size: 1.2rem;
}

.final-score-item .team-score {
  font-size: 2rem;
  font-weight: 900;
}

/* ---- SINGLE-DEVICE PLAYER INPUTS ---- */

.team-input-group {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--panel-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--panel-border);
}

.team-input-group h3 {
  margin-bottom: 8px;
}

.player-name-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  outline: none;
  margin-bottom: 8px;
}

.player-name-input::placeholder {
  color: var(--text-muted);
}

.player-name-input:focus {
  border-color: var(--purple);
}

.add-player-btn {
  display: inline-block;
  font-size: 0.85rem !important;
  padding: 6px 14px !important;
  background: rgba(156, 39, 176, 0.3);
  border: 1px solid var(--purple);
  margin-top: 4px;
}

/* ---- MENU BUTTONS ---- */

.menu-buttons {
  width: 100%;
  max-width: 360px;
}

/* ---- ANIMATIONS ---- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen.active .screen-content {
  animation: fadeIn 0.2s ease-out;
}

/* ---- RESPONSIVE ---- */

@media (min-width: 600px) {
  .screen-content {
    padding: 24px 32px 40px;
  }

  .logo-bubble {
    width: 220px;
    height: 220px;
  }

  .logo-text {
    font-size: 4.5rem;
  }
}

/* ---- QR CODE ---- */

.qr-wrapper {
  text-align: center;
  margin: 12px 0;
}

.qr-img {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

/* ---- LOADING SPLASH ---- */

.loading-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark, #1a0030);
  transition: opacity 0.45s ease;
}
.loading-splash.loading-done {
  opacity: 0;
  pointer-events: none;
}
.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loading-logo-img {
  width: 110px;
  height: 110px;
  animation: loading-pulse 1.2s ease-in-out infinite;
}
@keyframes loading-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.08); opacity: 0.85; }
}
.loading-dots {
  display: flex;
  gap: 10px;
}
.loading-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  animation: dot-bounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.18s; }
.loading-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0);   opacity: 0.5; }
  40%           { transform: translateY(-10px); opacity: 1; }
}

/* ---- QR LIGHTBOX ---- */

.qr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  cursor: pointer;
}
.qr-lightbox-img {
  width: min(88vw, 88vh);
  height: min(88vw, 88vh);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.qr-lightbox-hint {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin: 0;
}

/* ---- ABOUT SCREEN ---- */

.btn-about {
  margin-top: 4px;
  opacity: 0.65;
}

/* ---- WELCOME SCREEN ---- */
.welcome-content {
  justify-content: flex-start;
  padding-top: 20px;
}
.welcome-title {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin: 0 0 4px;
  text-align: center;
}
.welcome-tagline {
  font-size: 1.05rem;
  color: var(--purple-light);
  text-align: center;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.welcome-desc {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.welcome-desc p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin: 0;
}
.welcome-desc strong {
  color: var(--purple-light);
}
.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 0px;
  width: 100%;
  max-width: 360px;
}
.btn-about-welcome {
  background: var(--btn-bg);
  border: 1px solid var(--panel-border);
}
.welcome-lang-picker {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 6px 0 14px;
}
.lang-pick-btn {
        width: 150px;
  flex: 1;
  max-width: 150px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  border: 2px solid transparent;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lang-pick-btn.selected {
  border-color: #a855f7;
  background: #4c1d95;
}
.btn-install {
  margin-top: 6px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  padding: 15px;
}
.about-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}
.about-lang-tabs,
.about-mode-tabs {
  display: flex;
  gap: 8px;
}
.about-tab,
.about-mode-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.about-tab.selected,
.about-mode-tab.selected {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.about-guide-wrap {
       background: #16081d;
  text-align: center;
  margin: 0 -4px;
  display: none;
}
.about-guide-img {
  width: 100%;
  max-width: 440px;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
      mix-blend-mode: exclusion;
}
.about-divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 16px 0;
}
.about-section {
  margin-bottom: 16px;
}
.about-section h3 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about-section p,
.about-section li {
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.8;
}
.about-list {
  padding-left: 18px;
  margin: 0;
}
.about-list li {
  margin-bottom: 4px;
}
.about-version {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.4;
  margin: 0;
}
.stripe-buy-wrap {
  display: flex;
  justify-content: center;
  margin: 14px 0 4px;
}

/* ---- HISTORY ---- */

.history-list {
  margin: 12px 0;
}

.history-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.history-item:active {
  border-color: var(--purple-light);
}

.history-item .history-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-item .history-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.history-item .history-scores {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.history-item .history-team {
  font-weight: 800;
  font-size: 1rem;
}

.history-item .history-team-score {
  font-weight: 900;
  font-size: 1.2rem;
}

.history-item .history-winner {
  font-weight: 800;
  font-size: 1.1rem;
  margin-top: 4px;
}

.history-detail {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-border);
}
.history-item.expanded .history-detail {
  display: block;
}
.history-detail-turn {
  margin-bottom: 8px;
}
.history-detail-turn-header {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.history-detail-word {
  display: inline-block;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 2px 3px;
  font-weight: 700;
}
.history-detail-word.pass { background: var(--green); color: #fff; }
.history-detail-word.fail { background: var(--red); color: #fff; }
.history-detail-word.skip { background: var(--amber); color: #fff; }

.btn-clear-history {
  margin-top: 12px;
  opacity: 0.6;
  font-size: 0.85rem !important;
}

/* ---- WORD STATS ---- */
.btn-stats {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
}
.stats-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.stats-tab {
  flex: 1;
  padding: 8px 4px;
  border-radius: var(--radius);
  background: var(--btn-bg);
  border: 2px solid transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.stats-tab.selected {
  border-color: #a855f7;
  background: #4c1d95;
}
.stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stats-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-bg);
  border-radius: var(--radius);
  padding: 8px 10px;
}
.stats-rank {
  width: 24px;
  text-align: right;
  font-size: 0.8rem;
  opacity: 0.5;
  flex-shrink: 0;
}
.stats-word-col {
  flex: 1;
  min-width: 0;
}
.stats-word {
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-bar-wrap {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin: 3px 0;
}
.stats-bar {
  height: 4px;
  border-radius: 2px;
  transition: width 0.3s;
}
.stats-bar-fail  { background: #ef4444; }
.stats-bar-pass  { background: #22c55e; }
.stats-bar-skip  { background: #f59e0b; }
.stats-meta {
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 1px;
}
.stats-val {
  font-size: 1rem;
  font-weight: 900;
  flex-shrink: 0;
  text-align: right;
  min-width: 44px;
}
.stats-pct {
  font-size: 0.72rem;
  opacity: 0.55;
  font-weight: 400;
}

/* ---- COLLECTIONS GALLERY ---- */

.collections-selected {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-height: 28px;
}
.collections-selected:empty {
  display: none;
}
.coll-sel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-dark);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--purple-light);
}
.coll-sel-tag .coll-sel-remove {
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  margin-left: 4px;
}
.coll-sel-tag .coll-sel-remove:hover {
  opacity: 1;
}

.collections-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coll-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel-bg);
  
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.coll-card:active {
  background: rgba(130, 70, 130, 0.3);
}
.coll-card.selected {
  border-color: var(--purple-light);
  background: rgba(140, 80, 140, 0.35);
}
.coll-card.disabled {
  opacity: 0.4;
  pointer-events: none;
}
.coll-card-icon {
  font-size: 2.2rem;
  min-width: 48px;
  text-align: center;
  font-family: "Twemoji Country Flags", "Noto Emoji", sans-serif;
}
.coll-card-body {
  flex: 1;
  min-width: 0;
}
.coll-card-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 2px;
}
.coll-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.3;
}
.coll-card-meta {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.coll-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.coll-card-flag {
  font-family: "Twemoji Country Flags", "Noto Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}
.coll-lang-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.filter-btn {
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Twemoji Country Flags", "Noto Emoji", "Nunito", sans-serif;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.filter-btn:hover {
  background: var(--btn-hover);
}
.filter-btn.selected {
  background: var(--btn-selected-bg);
  border-color: var(--btn-selected-border);
}
.coll-difficulty {
  color: #ffd700;
  letter-spacing: -1px;
}
.coll-card-check {
  font-size: 1.4rem;
  color: var(--green-bright);
  min-width: 24px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.coll-card.selected .coll-card-check {
  opacity: 1;
}

/* ---- GAME HISTORY BUTTON ---- */

.btn-history {
  font-size: 1.1rem !important;
  padding: 14px 16px !important;
  margin-top: 12px;
  background: rgba(80, 40, 80, 0.35);
}

/* ---- SETUP COLLECTION INFO ---- */
.setup-coll-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.btn-tiny {
  font-family: inherit;
  font-size: 0.75rem !important;
  font-weight: 700;
  padding: 4px 12px !important;
  border-radius: 20px;
  background: var(--btn-bg);
  border: 1px solid var(--panel-border);
  color: var(--white);
  cursor: pointer;
}
.btn-tiny:active {
  background: var(--btn-hover);
}

/* ---- CATEGORY PICKER ---- */

.btn-categories {
  flex: 1;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  background: var(--btn-bg);
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
}

.btn-categories .cat-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.category-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.category-picker-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

.category-picker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  flex-shrink: 0;
}

.category-picker-header .header-title {
  flex: 1;
}

.cat-word-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--purple-light);
  white-space: nowrap;
}

.category-picker-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.cat-action-btn {
  flex: 1;
  font-size: 0.9rem !important;
  padding: 10px 8px !important;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  background: var(--btn-bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, opacity 0.15s;
  text-align: center;
  min-height: 70px;
}

.cat-btn:hover {
  background: var(--btn-hover);
}

.cat-btn.selected {
  background: var(--btn-selected-bg);
  border-color: var(--purple);
  box-shadow: 0 0 12px rgba(156, 39, 176, 0.3);
}

.cat-btn:not(.selected) {
  opacity: 0.5;
}

.cat-btn .cat-name {
  font-size: 1rem;
  line-height: 1.2;
}

.cat-btn .cat-words {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.cat-done-btn {
  flex-shrink: 0;
  margin: 12px 0 20px;
}

/* ---- TIME DISPLAY ROW ---- */
.time-display-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 4px 0;
}
.time-display-value {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--white);
  min-width: 60px;
}
.time-display-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.time-input {
  width: 70px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}
.time-input::-webkit-inner-spin-button,
.time-input::-webkit-outer-spin-button {
  opacity: 1;
}

/* ---- CONVERT TO SINGLE BUTTON ---- */
.btn-convert-single {
  margin-top: 12px;
  border: 2px dashed var(--panel-border);
  background: transparent;
  opacity: 0.7;
}
.btn-convert-single:active {
  opacity: 1;
}

/* ---- AWARD OVERLAY ---- */
.award-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.award-content {
  text-align: center;
  animation: awardPop 0.9s ease-out forwards;
}
.award-icon {
  font-family: "Noto Emoji", sans-serif;
  font-weight: 700;
  font-size: 4rem;
  animation: awardSpin 0.6s ease-out;
}
.award-text {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 2px 8px rgba(0,0,0,0.6);
  margin-top: 8px;
}
.award-bonus {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 12px rgba(255,215,0,0.6);
  margin-top: 4px;
}
@keyframes awardPop {
  0% { transform: scale(0.3); opacity: 0; }
  30% { transform: scale(1.3); opacity: 1; }
  50% { transform: scale(1); }
  85% { opacity: 1; }
  100% { transform: scale(0.8); opacity: 0; }
}
@keyframes awardSpin {
  0% { transform: rotate(-20deg) scale(0.5); }
  50% { transform: rotate(10deg) scale(1.2); }
  100% { transform: rotate(0deg) scale(1); }
}

/* ---- STREAK INDICATOR ---- */
.streak-indicator {
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255,215,0,0.5);
}
.streak-indicator.hidden {
  display: none;
}
