@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --gold: #f5a623;
  --gold-dark: #c8841a;
  --red: #e53935;
  --cream: #fff8ee;
  --dark-brown: #1a0a00;
  --medium-brown: #3d1c00;
  --green: #2d6a2d;
  --green-light: #4caf50;
  --panel-bg: rgba(30, 12, 0, 0.9);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(160deg, #1a0a00 0%, #2d1200 60%, #1a0a00 100%);
  min-height: 100vh;
  color: var(--cream);
  overflow-y: auto;
  overflow-x: hidden;
}

body::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; }

.sizzle-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(245,166,35,0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(229,57,53,0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#playerMain { position: relative; z-index: 1; }

.pscreen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 10px 60px;
  animation: fadeIn 0.4s ease;
  flex-direction: column;
  align-items: center;
}

.pscreen.hidden { display: none !important; }

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


.join-wrap {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 20px;
}

.join-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.join-logo { font-size: 4rem; animation: wobble 2s ease-in-out infinite; }

@keyframes wobble {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

.join-header h1 {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 3px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 2px 2px 0 var(--dark-brown);
}

.join-form {
  background: var(--panel-bg);
  border: 2px solid rgba(245,166,35,0.4);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chef-input {
  background: rgba(255,248,238,0.08);
  border: 2px solid rgba(245,166,35,0.3);
  border-radius: 12px;
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.chef-input:focus { border-color: var(--gold); box-shadow: 0 0 15px rgba(245,166,35,0.2); }
.chef-input::placeholder { color: rgba(255,248,238,0.3); }

.room-code-input {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 8px;
  text-align: center;
  text-transform: uppercase;
  border-color: rgba(245,166,35,0.6);
}

.avatar-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.avatar-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 2px;
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border-radius: 14px;
  border: 2px solid rgba(255,248,238,0.12);
  background: rgba(255,248,238,0.04);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.avatar-opt-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.avatar-opt-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: rgba(255,248,238,0.45);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.avatar-option:active { transform: scale(0.91); }

.avatar-option.selected {
  border-color: var(--gold);
  background: rgba(245,166,35,0.18);
}

.avatar-option.selected .avatar-opt-label { color: var(--gold); }

.color-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: 100%;
}

.color-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.color-swatch:active { transform: scale(0.88); }

.color-swatch.selected {
  border-color: #fff;
  transform: scale(1.15);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4), 0 4px 12px rgba(0,0,0,0.5);
}

.avatar-preview-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transition: background 0.2s;
  animation: previewPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes previewPop {
  from { transform: scale(0.7); opacity: 0.5; }
  to   { transform: scale(1);   opacity: 1; }
}

.avatar-preview-label {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--gold);
}

.btn-join {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--dark-brown);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4), 0 3px 0 var(--gold-dark);
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-join:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(245,166,35,0.4); }

.join-error {
  color: var(--red);
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
}


.waiting-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-top: 40px;
  text-align: center;
}

.next-dish-card {
  animation: dishPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dishPop {
  from { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.chef-badge {
  background: var(--panel-bg);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 0 20px rgba(245,166,35,0.2);
}

.my-avatar { font-size: 2.4rem; }
.my-name { font-size: 1.4rem; font-weight: 900; color: var(--gold); }

.pan-anim {
  font-size: 4rem;
  animation: panWiggle 1s ease-in-out infinite;
}

.pan-anim.big { font-size: 6rem; }

@keyframes panWiggle {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}

.waiting-wrap h2 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.waiting-wrap p { color: rgba(255,248,238,0.6); font-size: 1rem; }

.waiting-players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 350px;
}

.waiting-player-chip {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}


.dish-reveal-p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-top: 30px;
  text-align: center;
  width: 100%;
}

.reveal-label-p { font-size: 1.1rem; color: rgba(255,248,238,0.6); font-weight: 600; }

.dish-card-p {
  background: var(--panel-bg);
  border: 3px solid var(--gold);
  border-radius: 24px;
  padding: 30px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 0 40px rgba(245,166,35,0.3);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dish-emoji-p { font-size: 4rem; display: block; margin-bottom: 12px; }

.dish-card-p h2 {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.dish-card-p p { color: rgba(255,248,238,0.6); font-size: 0.9rem; margin-top: 8px; line-height: 1.5; }

.get-ready {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--red);
  letter-spacing: 2px;
  animation: pulse 1s ease infinite;
}


.round-header-p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  gap: 8px;
  padding: 8px 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(26, 10, 0, 0.96);
  border-bottom: 1px solid rgba(245,166,35,0.2);
  margin-bottom: 10px;
}

.round-badge-p {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 1px;
  background: rgba(245,166,35,0.15);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,0.4);
}

.dish-label-p {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,248,238,0.7);
  display: flex;
  align-items: center;
  gap: 4px;
}

.timer-p {
  font-family: 'Bangers', cursive;
  font-size: 1.5rem;
  color: var(--gold);
  background: var(--dark-brown);
  border: 2px solid var(--gold);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.timer-p.urgent { color: var(--red); border-color: var(--red); animation: pulse 0.5s ease infinite; }


.ingredients-instructions {
  width: 100%;
  max-width: 400px;
  margin-bottom: 8px;
}

.ingredients-instructions p {
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  text-align: center;
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.ing-item {
  background: rgba(255,248,238,0.06);
  border: 2px solid rgba(255,248,238,0.15);
  border-radius: 12px;
  padding: 10px 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  -webkit-tap-highlight-color: transparent;
}

.ing-emoji {
  font-size: 1.5rem;
  line-height: 1;
  display: block;
}

.ing-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.2;
  word-break: break-word;
}

.ing-item:active { transform: scale(0.95); }

.ing-item.selected {
  background: rgba(245,166,35,0.2);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 10px rgba(245,166,35,0.3);
}

.basket-section {
  width: 100%;
  max-width: 420px;
  margin-top: 8px;
}

.basket-label {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.basket {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  background: rgba(255,248,238,0.05);
  border: 2px dashed rgba(245,166,35,0.3);
  border-radius: 12px;
  padding: 8px 10px;
  min-height: 44px;
}

.basket-item {
  background: rgba(245,166,35,0.2);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
}


#pscreenOrdering .round-header-p {
  padding: 6px 12px;
  margin-bottom: 4px;
}

#pscreenOrdering .round-badge-p {
  font-size: 0.9rem;
  padding: 4px 10px;
}

#pscreenOrdering .timer-p {
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
}

#pscreenOrdering {
  height: 100dvh;
  height: 100vh;
  min-height: unset;
  padding: 0 10px 0;
  overflow: hidden;
  justify-content: flex-start;
}

#pscreenOrdering .ordering-instructions {
  font-size: 0.75rem;
  margin-bottom: 4px;
  margin-top: 2px;
}

#pscreenOrdering .steps-list {
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
  gap: 3px;
  overflow: hidden;
}

#pscreenOrdering .step-item {
  flex: 1;
  min-height: 0;
  padding: 0 12px;
  font-size: 0.78rem;
  align-items: center;
}

#pscreenOrdering .btn-submit {
  position: relative;
  bottom: unset;
  margin: 6px 0 8px;
  padding: 10px;
  font-size: 1.2rem;
  flex-shrink: 0;
}

#pscreenOrdering .powerup-bar {
  padding: 2px 0 4px;
}

#pscreenOrdering .special-round-bar {
  margin-bottom: 2px;
}

.ordering-instructions {
  width: 100%;
  max-width: 400px;
  color: rgba(255,248,238,0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
  text-align: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 420px;
  padding-bottom: 80px;
}

.step-item {
  background: rgba(255,248,238,0.06);
  border: 2px solid rgba(255,248,238,0.15);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, border-color 0.15s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  line-height: 1.3;
}

.step-item:active { cursor: grabbing; }
.step-item.dragging { opacity: 0.4; background: rgba(245,166,35,0.1); border-color: var(--gold); }
.step-item.drag-over { border-color: var(--gold); background: rgba(245,166,35,0.15); }

.step-arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.step-arrow {
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 6px;
  color: var(--gold);
  font-size: 0.7rem;
  width: 28px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.step-arrow:active:not(:disabled) { background: rgba(245,166,35,0.4); transform: scale(0.9); }
.step-arrow:disabled { opacity: 0.2; cursor: not-allowed; }

.step-num {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--gold);
  min-width: 20px;
  flex-shrink: 0;
  text-align: center;
}

.step-text { flex: 1; line-height: 1.3; font-size: 0.85rem; }


.plating-instructions {
  width: 100%;
  max-width: 380px;
  color: rgba(255,248,238,0.6);
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-align: center;
}

.plating-items-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  background: var(--panel-bg);
  border: 2px solid rgba(245,166,35,0.3);
  border-radius: 14px;
  padding: 10px 12px;
  margin-top: 8px;
}

.plating-item {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 12px;
  border: 2px solid rgba(255,248,238,0.15);
  background: rgba(255,248,238,0.06);
  transition: transform 0.15s, border-color 0.2s, opacity 0.2s, background 0.2s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 52px;
}

.pitem-emoji { font-size: 1.8rem; line-height: 1; display: block; }

.plating-item:active:not(.used) { transform: scale(0.88); border-color: var(--gold); background: rgba(245,166,35,0.1); }

.plating-item.used {
  opacity: 0.3;
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
}

.plating-item.tool-selected {
  border-color: var(--gold);
  background: rgba(245,166,35,0.22);
  box-shadow: 0 0 12px rgba(245,166,35,0.5);
  transform: scale(1.12);
}

.plating-item.used:active { transform: scale(0.88); border-color: var(--red); }

.plating-item.item-returning {
  animation: itemReturn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes itemReturn {
  0% { transform: scale(0.5); opacity: 0.3; }
  100% { transform: scale(1); opacity: 1; }
}

.plate-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
}

.plate-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.plate-scene {
  position: relative;
  width: min(320px, 82vw);
  height: min(320px, 82vw);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 60%, rgba(120,80,30,0.18) 0%, transparent 75%);
  touch-action: none;
}

.plate-scene.tool-active {
  cursor: crosshair;
}

.active-tool-cursor {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  filter: drop-shadow(0 0 6px rgba(245,166,35,0.8));
}

.plate-scene.tool-active .active-tool-cursor {
  opacity: 1;
}

.plated-item {
  position: absolute;
  font-size: 1.5rem;
  transform-origin: center;
  cursor: grab;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  transform: translate(-50%, -50%);
  z-index: 10;
}

.sauce-tools {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 4px;
}

.sauce-btn {
  font-size: 1.4rem;
  background: rgba(255,248,238,0.06);
  border: 2px solid rgba(255,248,238,0.15);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.sauce-btn:active { transform: scale(0.85); }

.sauce-btn.sauce-active {
  border-color: var(--gold);
  background: rgba(245,166,35,0.2);
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(245,166,35,0.4);
}

.sauce-clear { font-size: 1rem; }

.plate-canvas {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.plate-canvas.sauce-mode {
  pointer-events: all;
  cursor: crosshair;
  z-index: 5;
}

.plate-label-top {
  font-size: 0.7rem;
  color: rgba(255,248,238,0.4);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.plate {
  width: min(200px, 52vw);
  height: min(200px, 52vw);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8f2e0, #e8dfc0, #d4c9a8);
  border: 6px solid #c8b888;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    inset 0 3px 14px rgba(255,255,255,0.35),
    inset 0 -4px 10px rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.plate-rim {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid rgba(184,168,128,0.5);
  pointer-events: none;
}

.plate.plate-bounce {
  animation: plateBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes plateBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  70% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

.plate-inner {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  pointer-events: none;
}

.plated-item.item-landing {
  animation: itemLand 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes itemLand {
  0% { transform: translate(-50%, -50%) scale(0) rotate(var(--rot, 0deg)); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.3) rotate(var(--rot, 0deg)); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(var(--rot, 0deg)); opacity: 1; }
}

.plated-item.item-removing {
  animation: itemRemove 0.3s ease forwards;
}

@keyframes itemRemove {
  to { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

.plating-score-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 0.88rem;
  color: rgba(255,248,238,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0;
  position: relative;
}

.plating-score-label { font-size: 0.8rem; }

.plating-score-val {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 1px;
  min-width: 2.5ch;
  text-align: center;
  transition: color 0.2s;
}

.plating-score-val.score-pop {
  animation: scorePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scorePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); color: #fff; }
  100% { transform: scale(1); }
}

.plating-score-stars { font-size: 0.9rem; letter-spacing: 1px; }

.score-sparkle {
  position: absolute;
  font-size: 1rem;
  animation: sparkleFly 0.8s ease forwards;
  pointer-events: none;
  top: -5px;
}

@keyframes sparkleFly {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-35px) scale(0.4); opacity: 0; }
}


.btn-submit {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--dark-brown);
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border: none;
  border-radius: 14px;
  padding: 13px;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(76,175,80,0.4), 0 3px 0 var(--green);
  transition: all 0.2s;
  position: sticky;
  bottom: 10px;
  z-index: 10;
  touch-action: manipulation;
}

.btn-submit:active { transform: translateY(2px); box-shadow: 0 2px 10px rgba(76,175,80,0.4); }
.btn-submit:disabled { opacity: 0.4; cursor: not-allowed; }

.pscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
}


.submitted-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 100px;
  text-align: center;
}

.submitted-icon { font-size: 5rem; animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }

.submitted-wrap h2 {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: var(--green-light);
  letter-spacing: 3px;
}

.submitted-wrap p { color: rgba(255,248,238,0.6); }

.cooking-dots span {
  font-size: 2rem;
  color: var(--gold);
  animation: dotBounce 1.2s ease infinite;
}

.cooking-dots span:nth-child(2) { animation-delay: 0.2s; }
.cooking-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-12px); }
}


.results-p-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding-top: 20px;
}

.results-p-title {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 3px;
}

.my-result-card {
  background: var(--panel-bg);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  text-align: center;
}

.my-result-card .score-big {
  font-family: 'Bangers', cursive;
  font-size: 3.5rem;
  color: var(--gold);
  letter-spacing: 2px;
}

.my-result-card .score-label { color: rgba(255,248,238,0.5); font-size: 0.9rem; margin-bottom: 4px; }
.my-result-card .total-score { font-size: 1rem; color: rgba(255,248,238,0.7); margin-top: 8px; font-weight: 700; }

.leaderboard-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,248,238,0.05);
  border: 1px solid rgba(255,248,238,0.1);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.lb-row.me { border-color: var(--gold); background: rgba(245,166,35,0.1); }
.lb-rank { font-family: 'Bangers', cursive; font-size: 1.2rem; color: var(--gold); min-width: 24px; }
.lb-name { flex: 1; font-weight: 700; }
.lb-score { font-family: 'Bangers', cursive; font-size: 1.2rem; color: var(--gold); }


.eliminated-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 80px;
  text-align: center;
}

.knife-icon { font-size: 5rem; animation: knifeDrop 0.6s ease; }

@keyframes knifeDrop {
  from { transform: translateY(-30px) rotate(-45deg); }
  to { transform: translateY(0) rotate(0); }
}

.eliminated-wrap h2 {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: var(--red);
  letter-spacing: 3px;
}

.eliminated-sub { color: rgba(255,248,238,0.5); font-size: 0.9rem; }
.spectate-msg {
  margin-top: 16px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}


.winner-p-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 80px;
  text-align: center;
}

.winner-p-crown { font-size: 6rem; animation: crownBounce 0.8s ease; }

@keyframes crownBounce {
  0% { transform: translateY(-40px); opacity: 0; }
  60% { transform: translateY(10px); }
  100% { transform: translateY(0); opacity: 1; }
}

.winner-p-wrap h1 {
  font-family: 'Bangers', cursive;
  font-size: 4rem;
  color: var(--gold);
  letter-spacing: 6px;
  text-shadow: 0 0 30px rgba(245,166,35,0.8);
  animation: glitter 1s ease infinite alternate;
}

@keyframes glitter {
  from { text-shadow: 0 0 20px rgba(245,166,35,0.8); }
  to { text-shadow: 0 0 50px rgba(245,166,35,1), 0 0 80px rgba(245,166,35,0.5); }
}

.winner-p-wrap p { font-size: 1.2rem; color: rgba(255,248,238,0.7); }
.winner-fireworks { font-size: 2.5rem; animation: fireworks 0.8s ease infinite alternate; }

@keyframes fireworks {
  from { transform: scale(1); }
  to { transform: scale(1.2); }
}

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

/* ═══════════════════════════════════════
   SPECIAL ROUND BAR (Double Points / Sudden Death / Chaos)
═══════════════════════════════════════ */

.special-round-bar {
  width: 100%;
  max-width: 420px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 6px 0;
}

.sbar-double {
  background: rgba(255,224,130,0.15);
  border: 2px solid #ffe082;
  color: #ffe082;
  border-radius: 50px;
  padding: 4px 14px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  animation: badgePulse 0.8s ease infinite alternate;
}

.sbar-sudden {
  background: rgba(229,57,53,0.15);
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 50px;
  padding: 4px 14px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  animation: badgePulse 0.6s ease infinite alternate;
}

.sbar-chaos {
  background: rgba(206,147,216,0.15);
  border: 2px solid #ce93d8;
  color: #ce93d8;
  border-radius: 50px;
  padding: 4px 14px;
  font-family: 'Bangers', cursive;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

@keyframes badgePulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.badge-danger {
  background: rgba(229,57,53,0.25) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
}

/* ═══════════════════════════════════════
   POWER-UP BAR
═══════════════════════════════════════ */

.powerup-bar {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 420px;
  justify-content: center;
  padding: 4px 0 8px;
}

.pup-btn {
  background: rgba(206,147,216,0.15);
  border: 2px solid #ce93d8;
  border-radius: 12px;
  color: #ce93d8;
  font-size: 1.1rem;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.pup-btn:active:not(:disabled) { transform: scale(0.92); }

.pup-btn.pup-used {
  opacity: 0.3;
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.2);
  cursor: not-allowed;
}

.pup-label { font-size: 0.75rem; }

/* ═══════════════════════════════════════
   HINT REVEAL
═══════════════════════════════════════ */

.hint-reveal {
  width: 100%;
  max-width: 420px;
  background: rgba(255,224,130,0.12);
  border: 2px solid #ffe082;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #ffe082;
  font-weight: 700;
  text-align: center;
  animation: popIn 0.3s ease;
}

.plat-hint-reveal {
  width: 100%;
  max-width: 420px;
  background: rgba(245,166,35,0.12);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: popIn 0.3s ease;
}

.plat-hint-icon { font-size: 1.2rem; flex-shrink: 0; }

.plat-hint-text { color: rgba(255,248,238,0.8); }

.plat-hint-items {
  display: flex;
  gap: 6px;
  align-items: center;
}

.plat-hint-item {
  background: rgba(245,166,35,0.18);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plat-hint-num {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.8;
}

/* ═══════════════════════════════════════
   REACTION BUTTONS (on eliminated screen)
═══════════════════════════════════════ */

.reaction-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  width: 100%;
}

.reaction-label {
  font-size: 0.85rem;
  color: rgba(255,248,238,0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.reaction-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 260px;
}

.reaction-btn {
  background: rgba(255,248,238,0.06);
  border: 2px solid rgba(255,248,238,0.15);
  border-radius: 14px;
  font-size: 1.8rem;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  line-height: 1;
}

.reaction-btn:active { transform: scale(0.9); }

.reaction-btn.reaction-sent {
  border-color: var(--gold);
  background: rgba(245,166,35,0.15);
  transform: scale(1.1);
}

/* ═══════════════════════════════════════
   ACHIEVEMENT DISPLAY (on eliminated screen)
═══════════════════════════════════════ */

.my-achievements {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
}

.ach-heading {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.my-ach-badge {
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

/* ═══════════════════════════════════════
   PLAYER TOAST NOTIFICATION
═══════════════════════════════════════ */

.player-toast {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 1000;
  background: rgba(30,12,0,0.97);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.player-toast.pt-in {
  animation: ptSlideIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.player-toast.pt-out {
  animation: ptSlideOut 0.35s ease-in forwards;
}

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

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