/* Defeat the Scammers: arcade screen on the field-guide page */
.game-page { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; padding-bottom: 72px; }
.game-intro { display: flex; flex-direction: column; gap: 8px; max-width: 820px; }
.game-intro h1 { font-size: clamp(36px, 6vw, 64px); }
.game-intro .dek { font-size: clamp(19px, 2.2vw, 23px); margin: 0; line-height: 1.35; }

.console { --phos: #FFB020; --phos-dim: #B37A12; --glass: #0E0D0C;
  width: 100%; max-width: 760px; align-self: center; background: #2A2724; border: 2px solid var(--ink);
  border-radius: 18px; padding: 14px; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 12px;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.screen { position: relative; overflow: hidden; background: radial-gradient(ellipse at center, #1C1A17 0%, var(--glass) 75%);
  border-radius: 14px; border: 2px solid #000; color: var(--phos); font-family: var(--mono);
  min-height: 540px; display: flex; flex-direction: column; }
.screen::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.22) 3px, rgba(0,0,0,0) 4px),
              radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,.55) 100%); }
.screen.shake { animation: shake .35s linear; }
.screen.flash-red { animation: flashred .45s ease-out; }
.screen.flash-green { animation: flashgreen .45s ease-out; }
@keyframes shake { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-6px,2px); } 40% { transform: translate(5px,-2px); } 60% { transform: translate(-4px,1px); } 80% { transform: translate(3px,0); } }
@keyframes flashred { from { box-shadow: inset 0 0 0 999px rgba(194,58,34,.45); } to { box-shadow: inset 0 0 0 999px rgba(194,58,34,0); } }
@keyframes flashgreen { from { box-shadow: inset 0 0 0 999px rgba(80,200,120,.25); } to { box-shadow: inset 0 0 0 999px rgba(80,200,120,0); } }

.hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px dashed var(--phos-dim); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.hud strong { font-size: 18px; margin-left: 4px; }
.lives { display: inline-flex; gap: 6px; }
.lives i { width: 16px; height: 16px; border-radius: 50%; background: var(--phos); box-shadow: 0 0 8px var(--phos); display: inline-block; }
.lives i.lost { background: transparent; box-shadow: none; border: 2px solid var(--phos-dim); }

.stage { position: relative; flex: 1; display: flex; }
.scene { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 22px 18px; text-align: center; }
.scene[hidden] { display: none; }
.crt-title { font-family: var(--display); font-size: clamp(38px, 8vw, 64px); line-height: .95; margin: 0; color: var(--phos);
  text-shadow: 0 0 10px rgba(255,176,32,.7), 3px 3px 0 #C23A22; letter-spacing: .02em; }
.crt-title.small { font-size: clamp(32px, 7vw, 48px); }
.crt-sub { margin: 0; font-size: 18px; color: #FFE2A8; }
.how { list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; line-height: 1.5; color: #FFE2A8; text-align: left; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.key { display: inline-block; min-width: 92px; padding: 1px 8px; margin-right: 8px; border-radius: 4px; font-weight: 600; text-align: center; color: #fff; }
.k-block { background: var(--red); }
.k-ok { background: #2F7D4A; }
.options { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-size: 15px; color: #FFE2A8; }
.options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.options input { width: 20px; height: 20px; accent-color: var(--phos); }
.pick { margin: 6px 0 0; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--phos); }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 520px; }
.mode-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; min-height: 96px; cursor: pointer;
  background: #2F7D4A; color: #fff; border: 2px solid #000; border-radius: 10px; box-shadow: 4px 4px 0 #000; font-family: var(--mono); }
.mode-btn strong { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .03em; text-transform: uppercase; }
.mode-btn span { font-size: 14px; line-height: 1.35; }
.mode-btn.arcade { background: var(--red); }
.mode-btn:hover { filter: brightness(1.1); }
.mode-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.small-next { font-size: 18px; padding: 8px 28px; min-height: 48px; }
.small-next[hidden] { display: none; }
.best { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--phos-dim); }

.arcade-btn { font-family: var(--display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--red);
  border: 2px solid #000; border-radius: 8px; padding: 12px 32px; min-height: 56px; cursor: pointer; box-shadow: 4px 4px 0 #000; }
.arcade-btn:hover { background: #A52F1A; }
.arcade-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.arcade-btn.ghost { background: transparent; color: var(--phos); border-color: var(--phos); box-shadow: none; }
.mode-btn { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 4px 4px 0 #000, 0 0 18px rgba(255,176,32,.6); } }

/* Playing */
.scene-play { justify-content: flex-start; padding-top: 18px; }
.timer { width: 100%; max-width: 520px; height: 10px; border: 1px solid var(--phos-dim); border-radius: 5px; overflow: hidden; }
.timer span { display: block; height: 100%; width: 100%; background: var(--phos); box-shadow: 0 0 8px var(--phos); transform-origin: left center; }
.timer span.low { background: var(--red); box-shadow: 0 0 8px var(--red); }
.timer.off { visibility: hidden; }
.msg { position: relative; width: 100%; max-width: 520px; background: var(--label); color: var(--ink); border: 2px solid #000; border-radius: 14px;
  padding: 18px 20px 22px; text-align: left; box-shadow: 0 0 0 4px rgba(255,176,32,.15), 6px 6px 0 #000; cursor: grab; touch-action: pan-y;
  will-change: transform; margin-top: 8px; }
.msg.enter { animation: slidein .28s ease-out; }
.msg.ringing .msg-kind::before { animation: ring .5s ease-in-out infinite; }
@keyframes slidein { from { transform: translateY(-24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ring { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.msg-kind { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.msg-kind::before { content: attr(data-icon); display: inline-block; font-size: 18px; font-family: system-ui, -apple-system, "Segoe UI Emoji", "Apple Color Emoji", sans-serif; }
.msg-from { font-family: var(--display); font-size: 22px; line-height: 1.15; margin: 8px 0 10px; }
.msg-contact { margin: -4px 0 12px; font-family: var(--mono); font-size: 14px; letter-spacing: .02em; color: var(--muted); }
.msg-body { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.msg[data-kind="popup"] { background: #FFF3F0; border-color: var(--red); }
.msg[data-kind="ad"] { background: #FFFBEA; }
.stamp { position: absolute; top: 14px; padding: 4px 10px; border: 3px solid; border-radius: 6px; font-family: var(--display); font-size: 22px; opacity: 0; pointer-events: none; }
.stamp-block { right: 14px; color: var(--red); transform: rotate(10deg); }
.stamp-ok { left: 14px; color: #2F7D4A; transform: rotate(-10deg); }
.toast { min-height: 3.2em; max-width: 520px; font-size: 16px; line-height: 1.4; color: #FFE2A8; }
.toast strong { color: var(--phos); }
.toast .good { color: #7EE2A0; }

/* Mistake */
.miss-flag { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: .08em; padding: 4px 12px; border-radius: 4px; background: var(--red); color: #fff; }
.miss-h { margin: 0; font-family: var(--display); font-size: clamp(24px, 5vw, 34px); line-height: 1.1; color: var(--phos); max-width: 560px; }
.miss-tell { margin: 0; font-family: var(--serif); font-size: 20px; line-height: 1.45; color: #FFF6E2; max-width: 540px; }
.miss-from { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.45; color: var(--phos-dim); border-left: 3px solid var(--phos-dim); padding-left: 10px; text-align: left; }
.miss-learn { color: var(--phos); font-size: 16px; font-weight: 600; }

/* Game over */
.over-score { margin: 0; font-size: 22px; color: #FFE2A8; }
.over-score strong { display: block; font-family: var(--display); font-size: clamp(64px, 14vw, 104px); line-height: 1; color: var(--phos); text-shadow: 0 0 14px rgba(255,176,32,.6); }
.over-rank { margin: 0; font-family: var(--display); font-size: 24px; color: #fff; }
.over-stats { margin: 0; font-size: 15px; color: #FFE2A8; }
.over-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.share-note { margin: 0; min-height: 1.4em; font-size: 15px; color: #7EE2A0; }

/* Physical buttons */
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.controls[hidden] { display: none; }
.ctl { min-height: 72px; font-family: var(--display); font-size: 24px; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  border: 2px solid #000; border-radius: 12px; cursor: pointer; box-shadow: 0 5px 0 #000; }
.ctl:active { transform: translateY(4px); box-shadow: 0 1px 0 #000; }
.ctl-block { background: var(--red); }
.ctl-ok { background: #2F7D4A; }
.ctl:disabled { opacity: .5; }

/* Below the console */
.missed { max-width: 760px; align-self: center; width: 100%; background: var(--label); border: 2px solid var(--ink); border-radius: 8px; padding: 22px 24px; }
.missed[hidden] { display: none; }
.missed h2 { margin: 0 0 10px; font-size: 28px; }
.missed ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 18px; }
.game-sub { max-width: 760px; align-self: center; width: 100%; }
.game-notes { max-width: 760px; align-self: center; width: 100%; display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 20px; }
.game-notes h2 { margin: 0; font-size: 28px; }
.game-notes p { margin: 0; font-size: 18px; }
.game-learn { margin: 0; padding-left: 20px; font-size: 18px; }
.game-notes .fine { font-size: 15px; color: var(--muted); }

@media (max-width: 600px) {
  .console { padding: 8px; border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
  .screen { min-height: 470px; }
  .hud { font-size: 12px; padding: 10px 12px; }
  .scene { padding: 16px 12px; }
  .msg { padding: 14px 16px 18px; }
  .msg-from { font-size: 19px; }
  .msg-body { font-size: 18px; }
  .ctl { min-height: 64px; font-size: 20px; }
  .how { font-size: 14px; }
  .key { min-width: 82px; }
  .modes { grid-template-columns: 1fr; }
  .mode-btn { min-height: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen.shake, .msg.enter, .mode-btn, .msg.ringing .msg-kind::before { animation: none; }
}
