
/* Oregon Fail — Snack Dash V1 */
#snack-dash-screen {
  background: #102235;
  color: #fff;
  overflow: hidden;
  padding: 0 !important;
}

.sd1-shell {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 14px;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

.sd1-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}

.sd1-brand {
  display:flex;
  align-items:center;
  gap:12px;
}

.sd1-mini-logo {
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  border:3px solid #ffd21f;
  border-radius:12px;
  background:#1b5130;
  color:#fff;
  font-weight:900;
  font-size:9px;
  line-height:1.05;
  text-align:center;
  transform:rotate(-2deg);
}

.sd1-title {
  font-family:"Press Start 2P", monospace;
  color:#ffd21f;
  font-size:clamp(20px,3.2vw,40px);
  line-height:1.1;
  text-shadow:3px 3px 0 #7a2e16;
}

.sd1-subtitle {
  margin-top:5px;
  font-size:11px;
  letter-spacing:.16em;
  font-weight:900;
  color:#b8d3df;
}

.sd1-hud {
  display:flex;
  gap:8px;
}

.sd1-hud-card {
  min-width:82px;
  padding:7px 12px;
  border:2px solid #3b5364;
  border-radius:12px;
  background:#091622;
  text-align:center;
  box-shadow:0 4px 0 #07101a;
}

.sd1-hud-card span {
  display:block;
  font-size:9px;
  letter-spacing:.12em;
  color:#9fb4c2;
  font-weight:900;
}

.sd1-hud-card strong {
  display:block;
  margin-top:2px;
  font-family:"Press Start 2P",monospace;
  font-size:17px;
  color:#b7ff2a;
}

.sd1-time-card strong { color:#ffd21f; }
.sd1-score-card strong { color:#ff8b3d; }
.sd1-danger { color:#ff4c4c !important; }

.sd1-game-wrap {
  position:relative;
  width:100%;
  border:4px solid #2b4252;
  border-radius:16px;
  overflow:hidden;
  background:#d9c8a8;
  box-shadow:0 9px 0 #071522, 0 18px 45px rgba(0,0,0,.28);
}

#sd1-canvas {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1200/700;
  touch-action:none;
  image-rendering:auto;
}

.sd1-overlay {
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(7,18,28,.57);
  backdrop-filter:blur(2px);
  z-index:5;
}

.sd1-hidden { display:none !important; }

.sd1-card {
  width:min(620px,92%);
  padding:30px;
  border:3px solid #172a37;
  border-radius:20px;
  background:#f4ead4;
  color:#18232b;
  box-shadow:0 10px 0 #111b21, 0 18px 45px rgba(0,0,0,.35);
  text-align:center;
}

.sd1-sticker {
  display:inline-block;
  padding:7px 11px;
  border-radius:6px;
  background:#e34a27;
  color:#fff;
  font-weight:900;
  letter-spacing:.12em;
  transform:rotate(-2deg);
  box-shadow:3px 3px 0 #7a2e16;
}

.sd1-card h2 {
  margin:17px 0 8px;
  font-family:"Press Start 2P",monospace;
  font-size:clamp(18px,3vw,30px);
  line-height:1.35;
}

.sd1-card p {
  margin:0 auto 18px;
  max-width:520px;
  font-size:17px;
  line-height:1.45;
  font-weight:700;
}

.sd1-how {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0;
}

.sd1-how span {
  padding:10px 7px;
  border-radius:9px;
  background:#dce7df;
  font-size:10px;
  line-height:1.4;
  font-weight:900;
}

.sd1-how b {
  display:block;
  color:#217b39;
  font-size:11px;
}

.sd1-big-button,
.sd1-dash {
  border:0;
  cursor:pointer;
  font-family:"Press Start 2P",monospace;
  font-weight:900;
  -webkit-tap-highlight-color:transparent;
  user-select:none;
}

.sd1-big-button {
  width:100%;
  padding:17px 14px;
  border-radius:12px;
  background:#3cad4b;
  color:#fff;
  box-shadow:0 6px 0 #22652b;
  font-size:14px;
}

.sd1-big-button:active {
  transform:translateY(4px);
  box-shadow:0 2px 0 #22652b;
}

.sd1-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:12px;
}

.sd1-tip {
  color:#c5d7df;
  font-weight:900;
  letter-spacing:.04em;
  font-size:13px;
}

.sd1-controls {
  display:flex;
  align-items:center;
  gap:18px;
}

.sd1-joystick {
  width:88px;
  height:88px;
  border-radius:50%;
  background:rgba(8,20,30,.9);
  border:3px solid #456170;
  box-shadow:inset 0 0 0 8px #172c3a;
  display:flex;
  align-items:center;
  justify-content:center;
  touch-action:none;
}

.sd1-stick {
  width:35px;
  height:35px;
  border-radius:50%;
  background:#63be4f;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  box-shadow:0 4px 0 #2f6f2b;
  will-change:transform;
}

.sd1-dash {
  width:105px;
  height:70px;
  border-radius:16px;
  background:#e34a27;
  color:#fff;
  font-size:13px;
  box-shadow:0 6px 0 #7a2e16;
}

.sd1-dash:active {
  transform:translateY(4px);
  box-shadow:0 2px 0 #7a2e16;
}

.sd1-result-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin:18px 0;
}

.sd1-result-grid div {
  padding:13px 7px;
  background:#dce7df;
  border-radius:10px;
}

.sd1-result-grid span {
  display:block;
  font-size:9px;
  letter-spacing:.1em;
  font-weight:900;
  color:#4c6259;
}

.sd1-result-grid b {
  display:block;
  margin-top:5px;
  font-family:"Press Start 2P",monospace;
  font-size:16px;
  color:#217b39;
}

@media (max-width: 760px) {
  .sd1-shell { padding:8px; }
  .sd1-topbar {
    align-items:flex-start;
    flex-direction:column;
  }
  .sd1-hud {
    width:100%;
    display:grid;
    grid-template-columns:repeat(3,1fr);
  }
  .sd1-hud-card { min-width:0; }
  .sd1-title { font-size:22px; }
  .sd1-subtitle { font-size:8px; }
  .sd1-bottom {
    align-items:center;
  }
  .sd1-tip {
    flex:1;
    font-size:10px;
  }
  .sd1-controls {
    gap:9px;
  }
  .sd1-card { padding:22px 16px; }
  .sd1-how { grid-template-columns:1fr; }
  .sd1-how span { padding:8px; }
  .sd1-joystick { width:76px; height:76px; }
  .sd1-dash { width:90px; height:62px; font-size:11px; }
}

@media (min-width: 761px) {
  .sd1-controls { opacity:.92; }
}

@media (max-height: 720px) and (min-width: 761px) {
  .sd1-shell { padding:6px; }
  .sd1-topbar { margin-bottom:5px; }
  .sd1-bottom { margin-top:5px; }
  .sd1-game-wrap { max-height:calc(100vh - 110px); }
  #sd1-canvas { max-height:calc(100vh - 110px); object-fit:contain; }
}
