.snake-stage { display: block; width: 100%; max-width: 850px; margin-inline: auto; }
.snake-play-column,.snake-main { min-width: 0; }
.snake-hero .day-hero-grid { grid-template-columns: minmax(360px,.75fr) minmax(0,1.25fr); }
.snake-tech { min-width: 0; padding: 16px 14px; border: 2px solid #070b10; border-radius: 8px; background: linear-gradient(rgba(32,55,42,.045) 50%,transparent 50%) 0 0 / 100% 4px,#bfd494; box-shadow: inset 0 0 24px rgba(28,49,34,.28),0 0 0 3px #080d13; color: #20372a; }
.snake-tech-head,.snake-tech-feed-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #46623f; font-family: 'Press Start 2P',monospace; font-size: 6px; line-height: 1.6; }
.snake-tech-head { margin-bottom: 18px; }
.snake-tech-head span:first-child { color: #172d20; }
.snake-tech-score { margin-bottom: 18px; }
.snake-tech-score > span,.snake-tech-clock span,.snake-tech-balance > span { display: block; margin-bottom: 6px; color: #46623f; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.snake-tech-score output { display: block; color: #172d20; font-family: 'Press Start 2P',monospace; font-size: 21px; line-height: 1.35; letter-spacing: .03em; }
.snake-tech-clock { margin-bottom: 16px; }
.snake-tech-clock > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.snake-tech-clock output { color: #172d20; font-family: 'Press Start 2P',monospace; font-size: 16px; line-height: 1.4; }
.snake-tech-clock small { display: block; margin-top: 6px; color: #46623f; font-size: 9px; }
.snake-tech-daybar { overflow: hidden; height: 6px; margin-top: 9px; border: 1px solid rgba(32,55,42,.3); border-radius: 2px; background: rgba(32,55,42,.16); }
.snake-tech-daybar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#2f65ff,#20372a); transition: width .16s linear; }
.snake-tech-balance { margin-bottom: 12px; padding: 12px 0; border-block: 1px solid rgba(32,55,42,.28); }
.snake-tech-balance output { display: block; color: #172d20; font-family: 'Press Start 2P',monospace; font-size: 12px; line-height: 1.5; }
.snake-tech-contributions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin-bottom: 16px; }
.snake-tech-contributions > div:not(.snake-tech-share) { min-width: 0; padding: 8px 7px; border: 1px solid rgba(32,55,42,.28); border-radius: 3px; background: rgba(32,55,42,.06); }
.snake-tech-contributions > div > span { display: block; margin-bottom: 5px; color: #46623f; font-size: 7px; font-weight: 800; line-height: 1.35; letter-spacing: .08em; }
.snake-tech-contributions output { display: block; overflow: hidden; color: #172d20; font-family: 'Press Start 2P',monospace; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.snake-tech-contributions > div:nth-child(2) output { color: #254bb5; }
.snake-tech-share { display: flex; overflow: hidden; height: 6px; grid-column: 1 / -1; border: 1px solid rgba(32,55,42,.35); border-radius: 2px; background: rgba(32,55,42,.12); }
.snake-tech-share span { display: block; height: 100%; margin: 0; transition: width .2s ease; }
.snake-tech-share span:first-child { width: 100%; background: #20372a; }
.snake-tech-share span:last-child { width: 0; background: #2f65ff; }
.snake-tech-feed-head { margin-bottom: 9px; }
.snake-tech-feed-head span:last-child { color: #46623f; }
.snake-transactions { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.snake-transaction { display: grid; grid-template-columns: 73px minmax(0,1fr); align-items: baseline; gap: 7px; padding: 8px 7px; border-left: 2px solid #5d7a55; border-radius: 3px; background: rgba(32,55,42,.065); font-size: 10px; line-height: 1.35; }
.snake-transaction strong { font-size: 11px; font-weight: 800; white-space: nowrap; }
.snake-transaction span { min-width: 0; overflow-wrap: anywhere; }
.snake-transaction-lead { border-left-color: #20372a; }
.snake-transaction-lead strong { color: #172d20; }
.snake-transaction-helper { border-left-color: #2f65ff; }
.snake-transaction-helper strong { color: #254bb5; }
.snake-transaction-problem { border-left-color: #b5342b; }
.snake-transaction-problem strong { color: #8d261f; }
.snake-transaction.is-new { animation: snake-transaction-in .24s ease-out; }
.snake-transaction-empty { padding: 14px 8px; border: 1px dashed #6b8a61; border-radius: 4px; color: #46623f; font-size: 10px; line-height: 1.5; text-align: center; }
@keyframes snake-transaction-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.snake-console { position: relative; display: grid; width: 100%; grid-template-columns: minmax(0,360px) minmax(260px,1fr); align-items: center; gap: 16px; padding: 20px 22px 19px; border: 1px solid #4c5868; border-radius: 28px 28px 42px; outline: none; background: linear-gradient(140deg,#303a48 0%,#1a2330 48%,#101721 100%); box-shadow: inset 1px 1px 0 rgba(255,255,255,.14),inset -4px -5px 12px rgba(0,0,0,.28),0 38px 74px rgba(0,0,0,.45),12px 14px 0 #080c13; transform: rotate(1deg); }
.snake-console:focus-visible { outline: 3px solid var(--lime); outline-offset: 5px; }
.snake-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: #eef2f5; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.snake-brand span:last-child { color: #95a2b4; font-family: 'Press Start 2P',monospace; font-size: 7px; font-weight: 400; letter-spacing: 0; }
.snake-bezel { padding: 14px; border: 1px solid #070b10; border-radius: 17px 17px 26px; background: #080d13; box-shadow: inset 0 0 0 2px #27313d,0 2px 0 rgba(255,255,255,.07); }
.snake-screen { overflow: hidden; padding: 12px; border-radius: 6px; background: #bfd494; box-shadow: inset 0 0 28px rgba(28,49,34,.3); color: #20372a; }

.snake-hud-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.snake-clock-wrap { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.snake-clock { color: #172d20; font-family: 'Press Start 2P',monospace; font-size: 14px; line-height: 1.2; letter-spacing: 0; }
.snake-clock-wrap small { color: #46623f; font-size: 8px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; white-space: nowrap; }
.snake-money-wrap { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 2px; }
.snake-money-wrap span { color: #46623f; font-size: 7px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; }
.snake-money-wrap output { display: inline-block; color: #20372a; font-family: 'Press Start 2P',monospace; font-size: 10px; line-height: 1.45; white-space: nowrap; }
.snake-daybar { overflow: hidden; height: 6px; margin: 8px 0 6px; border: 1px solid rgba(32,55,42,.35); border-radius: 2px; background: rgba(32,55,42,.16); }
.snake-daybar span { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#4f6bff 0%,#6b86ff 58%,#c7f36b 100%); transition: width .16s linear; }
.snake-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 1px 0 8px; font-family: 'Press Start 2P',monospace; font-size: 7px; line-height: 1.4; white-space: nowrap; }
.snake-stats span { display: flex; min-width: 0; align-items: center; gap: 5px; }
.snake-stats output { color: #172d20; font-size: 8px; }

.snake-board-wrap { position: relative; overflow: hidden; border: 1px solid rgba(32,55,42,.35); border-radius: 4px; background: #bfd494; }
.snake-board-wrap::after { content: ''; position: absolute; z-index: 3; inset: 0; background: transparent; opacity: 0; pointer-events: none; }
.snake-console.is-hit .snake-board-wrap::after { background: rgba(201,55,45,.34); animation: snake-flash .38s ease; }
.snake-console.is-help .snake-board-wrap::after { background: rgba(199,243,107,.34); animation: snake-flash .38s ease; }
.snake-board { display: block; width: 100%; height: auto; aspect-ratio: 10 / 7; image-rendering: pixelated; touch-action: none; }

.snake-effects { position: absolute; z-index: 2; left: 5px; top: 5px; display: flex; max-width: calc(100% - 10px); flex-wrap: wrap; gap: 3px; pointer-events: none; }
.snake-chip { padding: 3px 5px; border: 1px solid rgba(239,255,211,.5); border-radius: 2px; background: rgba(32,55,42,.9); color: #efffd3; font-family: 'Press Start 2P',monospace; font-size: 6px; line-height: 1.45; letter-spacing: 0; }
.snake-chip-shield { border-color: #c7f36b; color: #c7f36b; }
.snake-chip-boost { border-color: #ffe7a8; color: #ffe7a8; }
.snake-chip-slow { border-color: #cfe0ff; color: #cfe0ff; }
.snake-chip-speed { border-color: #ffc9c1; color: #ffc9c1; }
.snake-chip-freeze { border-color: #ffffff; color: #ffffff; }

.snake-overlay { position: absolute; z-index: 4; left: 50%; bottom: 10px; display: flex; width: max-content; max-width: calc(100% - 20px); flex-direction: column; align-items: center; gap: 5px; padding: 10px 13px; transform: translateX(-50%); border: 1px solid #20372a; border-radius: 4px; background: rgba(32,55,42,.95); box-shadow: 5px 5px 0 rgba(32,55,42,.2); color: #e4f2bd; text-align: center; transition: opacity .2s,transform .2s; }
.snake-overlay strong { font-family: 'Press Start 2P',monospace; font-size: 9px; line-height: 1.65; }
.snake-overlay span { font-size: 11px; font-weight: 700; line-height: 1.4; }
.snake-overlay.is-final { top: 50%; bottom: auto; width: min(92%,360px); padding: 16px 14px; transform: translate(-50%,-50%); background: #20372a; box-shadow: 0 0 0 5px rgba(199,243,107,.22),8px 10px 0 rgba(32,55,42,.24); }
.snake-overlay.is-final strong { font-size: 8px; line-height: 1.7; }
.snake-overlay.is-final span { font-size: 10px; }
.snake-overlay.is-final .snake-overlay-owner,.snake-overlay.is-final .snake-overlay-crm { margin-top: 3px; padding: 6px 9px; border: 1px solid rgba(199,243,107,.5); border-radius: 3px; font-family: 'Press Start 2P',monospace; font-size: clamp(6px,1.8vw,8px); line-height: 1.8; }
.snake-overlay.is-final .snake-overlay-owner { border-color: rgba(207,224,255,.55); background: rgba(207,224,255,.08); color: #cfe0ff; }
.snake-overlay.is-final .snake-overlay-crm { background: rgba(199,243,107,.08); color: var(--lime); }
.snake-overlay[hidden],.snake-overlay-owner[hidden],.snake-overlay-crm[hidden] { display: none; }
.snake-again { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; margin-top: 5px; padding: 7px 12px; border: 1px solid #172111; border-radius: 3px; background: var(--lime); box-shadow: 3px 3px 0 rgba(0,0,0,.34); color: #172111; font-family: 'Press Start 2P',monospace; font-size: 8px; line-height: 1.4; }
.snake-again[hidden] { display: none; }
.snake-again:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 rgba(0,0,0,.34); }
.snake-again:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

.snake-event { display: flex; min-height: 38px; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 7px 8px; border-left: 4px solid #5d7a55; border-radius: 3px; background: rgba(32,55,42,.09); color: #20372a; font-size: 10.5px; font-weight: 700; line-height: 1.35; }
.snake-event-tag { flex: 0 0 auto; padding: 2px 4px; border-radius: 2px; background: #20372a; color: #e4f2bd; font-family: 'Press Start 2P',monospace; font-size: 6px; line-height: 1.55; letter-spacing: 0; }
.snake-event span:last-child { min-width: 0; overflow-wrap: anywhere; }
.snake-event[data-tone="problem"] { border-left-color: #b5342b; background: rgba(181,52,43,.13); }
.snake-event[data-tone="problem"] .snake-event-tag { background: #8d261f; color: #ffe7e2; }
.snake-event[data-tone="helper"],.snake-event[data-tone="shield"] { border-left-color: #4f6bff; background: rgba(79,107,255,.12); }
.snake-event[data-tone="helper"] .snake-event-tag,.snake-event[data-tone="shield"] .snake-event-tag { background: #3450db; color: #ffffff; }
.snake-event[data-tone="lead"] { border-left-color: #4f6bff; background: rgba(79,107,255,.1); }
.snake-event[data-tone="lead"] .snake-event-tag { background: #4f6bff; color: #ffffff; }

.snake-screen-foot { display: flex; min-height: 27px; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 6px; font-size: 10px; font-weight: 800; line-height: 1.3; }
.snake-screen-foot span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snake-screen-foot span:last-child { flex: 0 0 auto; color: #46623f; font-family: 'Press Start 2P',monospace; font-size: 6px; white-space: nowrap; }

.snake-controls { display: grid; grid-template-columns: 152px minmax(0,1fr); align-items: center; gap: 20px; padding: 17px 5px 0; }
.snake-dpad { display: grid; width: 152px; height: 112px; grid-template-columns: repeat(3,48px); grid-template-rows: repeat(2,52px); gap: 4px; }
.snake-direction { display: grid; width: 48px; height: 52px; place-items: center; padding: 0; border: 1px solid #080c12; border-radius: 8px; background: linear-gradient(#202a36,#111720); box-shadow: 0 4px 0 #070a0e,inset 0 1px rgba(255,255,255,.12); color: #a9b5c4; font-size: 20px; line-height: 1; }
.snake-direction:hover,.snake-direction[aria-pressed="true"] { background: #2c3c2a; color: var(--lime); }
.snake-direction:active { transform: translateY(3px); box-shadow: 0 1px 0 #070a0e; }
.snake-direction[data-direction="up"] { grid-column: 2; grid-row: 1; }
.snake-direction[data-direction="left"] { grid-column: 1; grid-row: 2; }
.snake-direction[data-direction="down"] { grid-column: 2; grid-row: 2; }
.snake-direction[data-direction="right"] { grid-column: 3; grid-row: 2; }
.snake-system { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 15px; }
.snake-goal { display: flex; flex-direction: column; align-items: flex-end; color: #98a5b6; text-align: right; }
.snake-goal span { font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.snake-goal strong { margin: 2px 0; color: var(--lime); font-family: 'Press Start 2P',monospace; font-size: 10px; line-height: 1.6; }
.snake-goal small { font-size: 10px; line-height: 1.35; }
.snake-system-buttons { display: flex; gap: 9px; }
.snake-system-buttons button { min-width: 72px; min-height: 34px; padding: 6px 12px; border: 1px solid #090d13; border-radius: 999px; background: #0d131c; box-shadow: inset 0 1px rgba(255,255,255,.1); color: #a8b4c3; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.snake-system-buttons button:first-child { border-color: #668239; background: var(--lime); color: #172111; }
.snake-help { margin: 23px 0 0; color: #b7c1cf; font-size: 12px; font-weight: 700; text-align: center; }
.snake-help kbd { display: inline-grid; min-width: 24px; min-height: 24px; place-items: center; margin-inline: 2px; padding: 2px 5px; border: 1px solid #485466; border-radius: 5px; background: #171f2b; box-shadow: 0 2px 0 #080c12; color: var(--lime); font-family: var(--font); font-size: 12px; }
.snake-stage .console-note { margin-top: 10px; }
.snake-stage .console-note strong { color: var(--lime); }
.snake-mode-switch { margin-bottom: 14px; }
.snake-mode[data-mode="manual"][aria-pressed="true"] { background: #3b4353; color: #ffffff; }

.snake-legend { display: flex; flex-wrap: wrap; gap: 7px 14px; margin: 18px 0 22px; padding: 0; list-style: none; color: #aeb8c7; font-size: 11px; font-weight: 700; line-height: 1.35; }
.snake-legend li { display: flex; align-items: center; gap: 7px; }
.snake-dot { flex: 0 0 auto; width: 13px; height: 13px; border-radius: 2px; }
.snake-dot-good { background: #2f65ff; }
.snake-dot-bad { background: #ef3f36; }

.snake-money-pop { animation: snake-money .4s ease; }
@keyframes snake-money { 0% { transform: scale(1); } 45% { transform: scale(1.12); color: #3450db; } 100% { transform: scale(1); } }
@keyframes snake-flash { 0% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 1280px) {
  .snake-hero .day-hero-grid { grid-template-columns: minmax(0,.9fr) minmax(430px,1.1fr); }
  .snake-stage { max-width: 590px; }
  .snake-console { grid-template-columns: minmax(0,1fr); }
  .snake-tech { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 20px; }
  .snake-tech-head,.snake-tech-feed-head,.snake-transactions,.snake-tech-balance,.snake-tech-contributions { grid-column: 1 / -1; }
  .snake-tech-head,.snake-tech-score,.snake-tech-clock,.snake-tech-balance { margin-bottom: 0; }
  .snake-tech-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .snake-tech-balance > span { margin-bottom: 0; }
}
@media (max-width: 900px) {
  .snake-hero .day-hero-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 1100px) {
  .snake-console { padding-inline: 18px; }
  .snake-controls { grid-template-columns: 152px minmax(0,1fr); gap: 12px; }
}
@media (max-width: 640px) {
  .snake-stage { width: calc(100% - 8px); }
  .snake-console { padding: 16px 14px 18px; border-radius: 24px 24px 34px; transform: none; box-shadow: inset 1px 1px 0 rgba(255,255,255,.14),inset -4px -5px 12px rgba(0,0,0,.28),0 26px 50px rgba(0,0,0,.42),7px 8px 0 #080c13; }
  .snake-bezel { padding: 10px; }
  .snake-screen { padding: 9px; }
  .snake-clock { font-size: 11px; }
  .snake-clock-wrap small { font-size: 7px; }
  .snake-money-wrap span { font-size: 6px; }
  .snake-money-wrap output { font-size: 8px; }
  .snake-stats { gap: 6px; font-size: 6px; }
  .snake-stats span { gap: 3px; }
  .snake-stats output { font-size: 7px; }
  .snake-chip { padding: 2px 4px; font-size: 5px; }
  .snake-event { min-height: 34px; gap: 5px; padding: 6px 7px; font-size: 9.5px; }
  .snake-event-tag { font-size: 5px; }
  .snake-screen-foot { min-height: 24px; font-size: 9px; }
  .snake-screen-foot span:last-child { font-size: 5px; }
  .snake-overlay { bottom: 8px; padding: 8px 10px; }
  .snake-overlay strong { font-size: 7px; }
  .snake-overlay span { font-size: 9px; }
  .snake-overlay.is-final { width: min(94%,330px); padding: 12px 10px; }
  .snake-overlay.is-final strong { font-size: 7px; }
  .snake-overlay.is-final span { font-size: 9px; }
  .snake-again { min-height: 32px; padding: 6px 9px; font-size: 8px; }
  .snake-controls { grid-template-columns: 140px minmax(0,1fr); gap: 8px; padding-inline: 0; }
  .snake-dpad { width: 140px; height: 100px; grid-template-columns: repeat(3,44px); grid-template-rows: repeat(2,48px); }
  .snake-direction { width: 44px; height: 48px; }
  .snake-goal strong { font-size: 9px; }
  .snake-goal small { font-size: 9px; }
  .snake-system-buttons { gap: 6px; }
  .snake-system-buttons button { min-width: 60px; min-height: 32px; padding-inline: 8px; font-size: 8px; }
  .snake-help { margin-top: 20px; font-size: 11px; }
  .snake-legend { gap: 6px 10px; margin: 15px 0 18px; font-size: 10.5px; }
  .snake-hero .industry-switch { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .snake-tech { padding: 15px 14px; gap: 14px; }
  .snake-tech-score output { font-size: 16px; }
  .snake-tech-clock output { font-size: 13px; }
  .snake-tech-balance output { font-size: 11px; }
}
@media (max-width: 350px) {
  .snake-console { padding-inline: 10px; }
  .snake-overlay.is-final { gap: 4px; padding: 10px; }
  .snake-overlay.is-final #snake-overlay-copy { display: none; }
  .snake-clock { font-size: 9px; }
  .snake-clock-wrap small { font-size: 6px; }
  .snake-money-wrap span { font-size: 5px; }
  .snake-money-wrap output { font-size: 7px; }
  .snake-stats { font-size: 5px; }
  .snake-stats output { font-size: 6px; }
  .snake-controls { grid-template-columns: 128px minmax(0,1fr); }
  .snake-dpad { width: 128px; grid-template-columns: repeat(3,40px); }
  .snake-direction { width: 40px; }
  .snake-goal small { display: none; }
  .snake-system-buttons button { min-width: 52px; padding-inline: 6px; }
  .snake-legend { font-size: 10px; }
  .snake-tech { grid-template-columns: minmax(0,1fr); }
  .snake-tech-score,.snake-tech-clock { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .snake-console,.snake-overlay,.snake-money-pop,.snake-daybar span,.snake-tech-daybar span { animation: none !important; transition: none !important; }
  .snake-console.is-hit .snake-board-wrap::after,.snake-console.is-help .snake-board-wrap::after { animation: none !important; opacity: 0; }
  .snake-transaction.is-new { animation: none !important; }
}
