#connection {
  font-size:10px;
  color:#c8e778;
  margin-right:12px
}
#connection.offline {
  color:#ffc4a0
}
.invite-panel {
  border-top:1px solid #344438;
  padding-top:18px;
  margin-top:20px
}
.invite-panel input {
  font-size:11px;
  color:#b5c6a2
}
.invite-panel button,#ready {
  width:100%;
  margin-top:10px
}
#results table {
  width:100%;
  border-collapse:collapse;
  font-size:12px
}
#results th {
  font-size:10px;
  color:#97aa98;
  text-align:left
}
#results td,#results th {
  padding:9px 4px;
  border-bottom:1px solid #344438
}
#results th:not(:first-child),#results td:not(:first-child) {
  text-align:center
}
@media(max-width:600px) {
  #connection {
    display:none
  }
  .brand {
    font-size:13px
  }
  .room-label {
    letter-spacing:0
  }
  .room-label button {
    margin-left:3px;
    padding:7px
  }
  .quiet {
    font-size:11px;
    padding:7px
  }
  header {
    gap:8px
  }
}
#catch-feedback {
  padding:16px;
  margin:0 0 20px;
  background:#4a3321;
  border:1px solid #e9b36d;
  border-radius:6px;
  color:#ffe1a7;
  font-size:15px;
  font-weight:700;
  line-height:1.6
}
.player.caught {
  opacity:.5
}
.player.caught>span:nth-child(2) {
  text-decoration:line-through
}
.arena.capture-flash {
  animation:capture-flash .8s ease-out
}
@keyframes capture-flash {
  0% {
    box-shadow:inset 0 0 60px #f8c781bb;
    border-color:#ffe1a7
  }
  100% {
    box-shadow:inset 0 0 0 #f8c78100
  }
}
:root {
  color-scheme:dark;
  --bg:#111c19;
  --panel:#18251f;
  --text:#e6ead8;
  --muted:#97aa98;
  --lime:#c8e778;
  --line:#344438
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px 'Segoe UI',Arial,sans-serif
}
button,input,select {
  font:inherit
}
button {
  cursor:pointer;
  border:0;
  border-radius:5px;
  padding:13px 17px;
  background:var(--lime);
  color:#1d2c1e;
  font-weight:700;
  transition:filter .2s
}
button:hover {
  filter:brightness(1.12)
}
button:disabled {
  opacity:.4;
  cursor:default
}
button:focus-visible,input:focus-visible,select:focus-visible {
  outline:2px solid var(--lime);
  outline-offset:3px
}
input,select {
  width:100%;
  padding:13px;
  background:#101d17;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:5px
}
label,.eyebrow {
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  letter-spacing:2px
}
label {
  margin:0 0 9px
}
.secondary {
  background:#293a2d;
  color:var(--text);
  border:1px solid var(--line)
}
.quiet {
  background:transparent;
  color:var(--muted);
  padding:9px
}
.entry {
  min-height:100vh;
  padding:7vh 9vw;
  position:relative;
  overflow:hidden;
  background:radial-gradient(ellipse at 85% 60%,#45603955,transparent 45%),repeating-linear-gradient(120deg,transparent 0 120px,#a6ce6a03 120px 122px),#111c19
}
.entry:after {
  content:'♠';
  position:absolute;
  font-size:min(70vw,850px);
  line-height:1;
  right:2%;
  top:6%;
  color:#75955715;
  z-index:0;
  pointer-events:none
}
.entry>* {
  position:relative;
  z-index:1
}
h1 {
  font:700 clamp(70px,9vw,134px)/.88 'Trebuchet MS',Arial,sans-serif;
  letter-spacing:-6px;
  margin:40px 0 22px
}
h1 span {
  color:var(--lime)
}
h1 i {
  font-style:normal;
  color:var(--lime);
  font-size:55px;
  vertical-align:top;
  margin-left:25px
}
.intro {
  font-size:19px;
  line-height:1.55;
  color:#bbc8b5
}
.join-card {
  max-width:450px;
  margin-top:28px
}
.entry-actions {
  display:flex;
  gap:10px;
  margin:14px 0 20px
}
.entry-actions button {
  flex:1
}
.entry-actions span {
  float:right
}
.join-row {
  display:flex;
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:18px
}
.join-row input {
  flex:1;
  min-width:0
}
.entry-foot {
  display:flex;
  gap:35px;
  margin-top:45px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:1px
}
.error {
  color:#ffc4a0;
  min-height:16px;
  font-size:12px
}
header {
  height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 30px;
  border-bottom:1px solid var(--line)
}
.brand {
  font:700 20px 'Trebuchet MS',Arial,sans-serif;
  letter-spacing:-.6px
}
.brand span {
  color:var(--lime)
}
.room-label {
  font-size:10px;
  color:var(--muted);
  letter-spacing:2px
}
.room-label button {
  background:#293a2d;
  color:var(--lime);
  margin-left:10px;
  padding:8px 12px;
  letter-spacing:2px
}
.play-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:22px;
  padding:22px;
  max-width:1900px;
  margin:auto
}
.arena {
  position:relative;
  height:calc(100vh - 120px);
  min-height:440px;
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#213329
}
canvas {
  width:100%;
  height:100%;
  display:block;
  outline:none
}
.banner-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.banner-status span {
  font-size:10px;
  letter-spacing:1.5px;
  color:var(--muted);
  text-align:left;
  line-height:1.5
}
.banner-status strong {
  font:700 40px/1 'Trebuchet MS',Arial,sans-serif;
  color:var(--lime);
  font-variant-numeric:tabular-nums;
  flex-shrink:0
}
.coordinates {
  position:absolute;
  bottom:20px;
  left:22px;
  color:#99b797;
  font-size:9px;
  letter-spacing:2px;
  pointer-events:none
}
.coordinates span {
  color:var(--lime)
}
aside {
  padding:8px 4px
}
h2 {
  font:500 34px 'Trebuchet MS',Arial,sans-serif;
  letter-spacing:-1px;
  margin:13px 0 8px
}
#objective {
  color:var(--muted);
  line-height:1.65;
  min-height:65px
}
.status {
  padding:12px;
  border:1px solid var(--line);
  border-radius:5px;
  color:var(--lime);
  font-size:12px;
  margin:16px 0 22px
}
#lobby {
  margin-bottom:25px
}
#start {
  width:100%;
  margin-top:10px
}
.bot-actions {
  display:flex;
  justify-content:space-between;
  margin-top:10px
}
.section-title {
  display:flex;
  justify-content:space-between;
  font-size:10px;
  letter-spacing:1.7px;
  color:var(--muted);
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:24px;
  margin-bottom:14px
}
.player {
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 0
}
.player .dot {
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--lime);
  flex-shrink:0
}
.player .dot.hunter {
  background:#f5b36d
}
.player .dot.dead {
  background:#647364
}
.player .player-badge {
  margin-left:auto;
  font-size:10px;
  color:var(--muted)
}
.player-name { flex:1; }
.kick-player { flex-shrink:0; padding:5px 8px; font-size:11px; background:#4b3024; color:#ffd1ab; border:1px solid #78513a; }
.cancel-kick { flex-shrink:0; padding:5px 0; font-size:11px; background:transparent; color:var(--muted); }
.player:has(.cancel-kick) { flex-wrap:wrap; }
.guide>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin:12px 0;
  font-size:11px;
  color:var(--muted)
}
kbd {
  font:10px 'Segoe UI',Arial,sans-serif;
  border:1px solid #4a5b48;
  border-radius:3px;
  color:var(--text);
  padding:5px 7px
}
.small {
  font-size:11px;
  color:var(--muted);
  line-height:1.6
}
.banner {
  position:absolute;
  top:16px;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  padding:14px 18px;
  background:#13221bee;
  border:1px solid #809b5b;
  border-radius:7px;
  width:min(calc(100% - 32px),460px);
  pointer-events:none
}
.banner h3 {
  font:500 23px/1.2 'Trebuchet MS',Arial,sans-serif;
  color:var(--lime);
  margin:10px 0 6px
}
.banner p {
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  margin:0
}
#toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  background:var(--lime);
  color:#162118;
  padding:12px 20px;
  border-radius:5px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s
}
#touch-controls {
  display:none;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  -webkit-touch-callout:none
}
[hidden] {
  display:none!important
}
@media(max-width:900px) {
  .play-layout {
    grid-template-columns:1fr;
    padding:12px
  }
  .arena {
    height:65vh;
    min-height:360px
  }
  aside {
    max-width:650px;
    width:100%;
    margin:auto
  }
  header {
    padding:0 16px;
    height:65px
  }
  .entry {
    padding:6vh 7vw
  }
  .entry-foot {
    flex-wrap:wrap;
    gap:16px
  }
  h1 {
    letter-spacing:-3px
  }
  .brand {
    font-size:16px
  }
}
@media(any-pointer:coarse), (max-width:600px) {
  #touch-controls {
    display:flex;
    align-items:end;
    gap:10px;
    position:absolute;
    bottom:40px;
    left:15px;
    right:15px;
    justify-content:space-between
  }
  #touch-controls button {
    touch-action:none;
    background:#17291fdd;
    color:var(--lime);
    border:1px solid #71895c;
    padding:12px;
    min-height:44px;
    min-width:44px;
    font-size:12px
  }
  .touch-actions {
    display:flex;
    flex-direction:column;
    gap:6px;
    align-items:stretch
  }
  .dpad {
    display:grid;
    grid-template-columns:repeat(3,42px);
    gap:4px
  }
  .dpad button {
    padding:12px!important
  }
  .dpad button:first-child {
    grid-column:2
  }
  .dpad button:nth-child(2) {
    grid-column:1;
    grid-row:2
  }
  .dpad button:nth-child(3) {
    grid-column:2;
    grid-row:2
  }
  .dpad button:nth-child(4) {
    grid-column:3;
    grid-row:2
  }
}

/* Scram Fam! base-release identity. All artwork and fonts work offline. */
:root { --lime:#f3ce75; --text:#faf1dc; --muted:#acbca4; --bg:#17271e; --panel:#203629; --line:#3e5340; }
body { background:var(--bg); }
.entry { display:grid; grid-template-columns:1.05fr 1fr; gap:24px; align-items:center; padding:6vh 7vw 4vh; background:radial-gradient(ellipse at 88% 35%,#63824845,transparent 55%),#17271e; }
.entry:after { content:none; }
.entry-copy { min-width:0; }
h1 { font:900 clamp(76px,9vw,138px)/.87 'Trebuchet MS',Arial,sans-serif; letter-spacing:-7px; margin:32px 0 24px; transform:rotate(-3deg); transform-origin:left; text-shadow:4px 6px 0 #0d1917; }
h1 span { color:#f3ce75; }
.intro { color:#d6dfc5; font-size:21px; }
.entry-actions button { min-height:52px; }
.entry-foot { gap:16px; flex-wrap:wrap; margin-top:25px; font-size:9px; }
.welcome-art { text-align:center; min-width:0; align-self:center; }
.welcome-art canvas { width:100%; height:auto; aspect-ratio:560/460; }
.map-chip { display:inline-block; padding:9px 16px; border:1px solid #8da66b66; border-radius:30px; color:#bdd49a; font-size:10px; font-weight:700; letter-spacing:2px; transform:rotate(3deg); }
.welcome-caption { display:flex; flex-direction:column; gap:8px; margin-top:-12px; }
.welcome-caption strong { color:#f3ce75; font:700 30px 'Trebuchet MS',Arial,sans-serif; }
.welcome-caption span { color:#acbca4; font-size:13px; }
.how-to { grid-column:1/-1; border-top:1px solid var(--line); padding-top:20px; margin-top:12px; max-width:1100px; }
.how-to summary { color:#d6dfc5; cursor:pointer; font-weight:600; padding:8px 0; }
.how-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.how-grid p { color:var(--muted); line-height:1.7; font-size:13px; }
.how-grid strong { display:block; color:var(--lime); margin-bottom:5px; }
.brand { color:#faf1dc; }
#connection { color:#bdd49a; }
#scan, #dash { margin:0 5px 6px 0; }
#results { background:#223b2c; padding:0 14px 12px; border-radius:8px; margin:18px 0; }
button { border-radius:8px; }
.player span:nth-child(2) { overflow-wrap:anywhere; min-width:0; }
.player .player-badge { flex-shrink:0; }
@media(max-width:900px) { .entry { grid-template-columns:1fr 1fr; padding:5vh 5vw; gap:14px; } h1 { font-size:clamp(72px,12vw,108px); letter-spacing:-5px; } .intro { font-size:17px; } .entry-actions { flex-direction:column; } .entry-foot { letter-spacing:0; } }
@media(max-width:620px) { .entry { grid-template-columns:1fr; padding:35px 7vw; } .welcome-art { grid-row:2; max-width:350px; margin:auto; } h1 { font-size:94px; } .entry-actions { flex-direction:row; } .how-grid { grid-template-columns:1fr; gap:0; } .welcome-caption strong { font-size:24px; } .map-chip { margin-top:16px; } header { padding:0 10px; gap:5px; } .brand { font-size:15px; } .room-label { font-size:9px; } }
@media(prefers-reduced-motion:reduce) { *, *:before, *:after { animation:none!important; transition:none!important; } }
/* Quiet studio attribution: the game remains the primary brand. */
.studio-footer { grid-column:1/-1; border-top:1px solid var(--line); padding:22px 0 8px; margin-top:6px; max-width:1100px; width:100%; color:var(--muted); font-size:12px; }
.studio-credit { display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
[data-company-link] { color:#c2cdae; font-weight:600; }
a[data-company-link][href] { text-decoration:underline; text-underline-offset:4px; }
a[data-company-link][href]:hover { color:var(--lime); }
a[data-company-link]:focus-visible { outline:2px solid var(--lime); outline-offset:5px; }
