@font-face {
  font-family: "Press Start 2P";
  src: url("fonts/press-start-2p.woff2") format("woff2");
  font-display: swap;
}
:root {
  --bg: #1d2040;
  --ink: #f4f1de;
  --panel: #2b2f5c;
  --accent: #ffd23f;
  --shadow: #0d0f2b;
  --u: 4px;                                   /* one "pixel" of the UI */
  --pixel: "Press Start 2P", ui-monospace, "Courier New", monospace;
}
* { box-sizing: border-box; }
html {
  /* mobile browsers inflate long paragraphs on their own ("text autosizing"), which made the help tips show two sizes */
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 10px;
  line-height: 1.8;
  -webkit-font-smoothing: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }
main {
  max-width: 900px;
  margin: 0 auto;
  /* center the menu vertically: equal space above and below at any screen height */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* keep content clear of the notch / rounded corners in landscape */
  padding: max(16px, env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  text-align: center;
}
h1 {
  margin: 8px 0 10px;
  font-weight: normal;
  font-size: clamp(20px, 5.5vw, 36px);
  line-height: 1.3;
  text-shadow: 4px 4px 0 var(--shadow);
}
h1 span { color: var(--accent); }
.tag { margin: 0 0 4px; opacity: .8; }
.label { margin: 22px 0 14px; text-transform: uppercase; }

/* ---------- pixel icons (see ICONS in game.js) ---------- */
i[data-icon] { display: inline-flex; vertical-align: middle; --c: 2px; }
.ic {
  width: calc(var(--w) * var(--c, 2px));
  height: calc(var(--h) * var(--c, 2px));
  fill: currentColor;
  display: block;
  shape-rendering: crispEdges;
}

/* ---------- pixel buttons: stepped corners, two-tone bevel, press-in ---------- */
.pick, .small, .big, .round, .toast {
  --face: var(--panel);
  --edge: var(--shadow);
  --light: rgba(255, 255, 255, .16);
  --dark: rgba(0, 0, 0, .35);
  font-family: var(--pixel);
  color: var(--ink);
  background: var(--face);
  border: 0;
  border-radius: 0;
  box-shadow:
    0 calc(-1 * var(--u)) 0 0 var(--edge),     /* top edge */
    calc(-1 * var(--u)) 0 0 0 var(--edge),     /* left edge */
    var(--u) 0 0 0 var(--edge),                /* right edge */
    0 calc(2 * var(--u)) 0 0 var(--edge),      /* thick bottom edge = the button's depth */
    inset 0 var(--u) 0 0 var(--light),
    inset 0 calc(-1 * var(--u)) 0 0 var(--dark);
}
.pick, .small, .big, .round { cursor: pointer; }
.pick:active, .small:active, .big:active, .round:active {
  transform: translateY(var(--u));
  box-shadow:
    0 calc(-1 * var(--u)) 0 0 var(--edge),
    calc(-1 * var(--u)) 0 0 0 var(--edge),
    var(--u) 0 0 0 var(--edge),
    0 var(--u) 0 0 var(--edge),
    inset 0 var(--u) 0 0 var(--dark),
    inset 0 calc(-1 * var(--u)) 0 0 var(--light);
}
.pick:focus-visible, .small:focus-visible, .big:focus-visible, .round:focus-visible { outline: 0; --edge: #fff; }

.small {
  font-size: 10px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.big {
  --face: var(--accent);
  --light: rgba(255, 255, 255, .5);
  --dark: rgba(150, 90, 0, .45);
  color: var(--shadow);
  font-size: 16px;
  padding: 18px 34px;
  margin: 30px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
}
.big i[data-icon] { --c: 3px; }
.big:hover { --face: #ffe074; }
.small:hover { --face: #3a3f7a; }
.pick:hover { --face: #3a3f7a; }

/* ---------- animal picker ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px; }
.picker {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 18px 16px;
  padding: 0 var(--u);
}
.pick {
  padding: 12px 4px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  line-height: 1;
}
.pick canvas { width: 54px; height: 54px; image-rendering: pixelated; }
.pick small { font-size: 9px; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.pick.on { --face: #3a3f7a; --edge: var(--accent); }

/* ---------- hints: keys drawn as tiny pixel keycaps ---------- */
.hint { font-size: 8px; line-height: 2.6; opacity: .9; margin: 22px 0 0; }
.hint b {
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  margin-right: 2px;
  background: var(--panel);
  box-shadow: 0 -2px 0 0 var(--shadow), -2px 0 0 0 var(--shadow), 2px 0 0 0 var(--shadow), 0 4px 0 0 var(--shadow);
}
.hint.touch { display: none; }
@media (pointer: coarse) {
  .hint.kb { display: none; }
  .hint.touch { display: block; }
}

/* ---------- toast ---------- */
.toast {
  --edge: var(--accent);
  position: fixed;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  font-size: 9px;
  line-height: 1.4;
  z-index: 10;
}
.toast .small { padding: 8px 10px; --edge: var(--shadow); }

/* ---------- full-screen game stage ---------- */
#stage {
  overflow: hidden;
  position: fixed;
  inset: 0;
  z-index: 5;
  background: #000;
  touch-action: none;
}
#game {
  position: absolute;
  left: 0;
  top: 0;
  image-rendering: pixelated;
  touch-action: none;
}
.round {
  --face: rgba(43, 47, 92, .85);
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: calc(14px + env(safe-area-inset-left));
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.round i[data-icon] { --c: 2px; }
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: rgba(13, 15, 43, .85);
  text-align: center;
}
.overlay h2 { margin: 0 0 4px; font-weight: normal; font-size: 28px; text-shadow: 4px 4px 0 var(--shadow); }
.overlay .big { margin: 0; }
#rotate { z-index: 2; display: none; background: var(--bg); gap: 28px; line-height: 2; padding: 0 24px; }
#rotate .phone { animation: tilt 1.6s steps(6, end) infinite; }
#rotate .phone i[data-icon] { --c: 8px; }
@keyframes tilt { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
@media (orientation: portrait) and (pointer: coarse) {
  #stage:not([hidden]) #rotate { display: flex; }
}
@media (max-height: 460px) {
  .overlay { gap: 14px; }
  .overlay h2 { font-size: 20px; margin: 0; }
  .overlay .big { font-size: 12px; padding: 12px 24px; }
  .overlay .small { padding: 8px 12px; }
}

@media (max-width: 520px) {
  main { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); }
}

/* short landscape screens (phones): compact menu so everything fits without scrolling */
@media (max-height: 500px) and (orientation: landscape) {
  main { padding-top: max(10px, env(safe-area-inset-top)); padding-bottom: 10px; }
  h1 { margin: 2px 0 6px; font-size: 22px; text-shadow: 3px 3px 0 var(--shadow); }
  .tag { margin: 0; font-size: 8px; }
  .label { margin: 10px 0 12px; font-size: 8px; }
  .picker { grid-template-columns: repeat(9, 1fr); gap: 10px; }
  .pick { padding: 8px 2px; gap: 6px; font-size: 8px; }
  .pick canvas { width: 42px; height: 42px; }
  .pick small { font-size: 8px; }
  .big { margin: 16px 0 0; padding: 12px 26px; font-size: 12px; }
  .hint { margin: 14px 0 0; font-size: 7px; line-height: 2.4; }
  .actions { margin-top: 12px; gap: 14px; }
  .small { font-size: 8px; padding: 8px 10px; }
}

/* locked animals: dark silhouette + padlock */
.pick.locked { --face: #23264d; cursor: not-allowed; }
.pick.locked canvas { filter: brightness(0); opacity: .55; }
.pick.locked small { color: var(--ink); opacity: .7; }

.ability { margin: 20px 0 0; color: var(--accent); font-size: 9px; line-height: 1.6; min-height: 1.6em; }
@media (max-height: 500px) and (orientation: landscape) { .ability { margin: 12px 0 0; font-size: 8px; } }

/* very compact menu for short landscape screens (iPhone Safari / PWA): keep everything above the home indicator */
@media (max-height: 500px) and (orientation: landscape) {
  main { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  h1 { margin: 0 0 4px; font-size: 18px; }
  .tag { margin: 0 0 8px; font-size: 7px; }
  .label { display: none; }
  .picker { gap: 10px; }
  .pick { padding: 6px 2px 5px; gap: 4px; }
  .pick canvas { width: 36px; height: 36px; }
  .ability { margin: 10px 0 0; font-size: 7px; min-height: 0; }
  .big { margin: 12px 0 0; padding: 10px 22px; font-size: 11px; }
  .big i[data-icon] { --c: 2px; }
  .hint { margin: 10px 0 0; line-height: 2.2; }
  .actions { margin-top: 12px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  main { padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); }
}

.small.off { opacity: .65; }

/* ---------- help screen ---------- */
.help {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f2b;
  padding: max(12px, env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.help-box {
  width: 100%;
  max-width: 760px;
  height: min(100%, 540px);      /* fixed height so the box does not jump between tabs */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.help h2 { margin: 0; font-weight: normal; font-size: 22px; text-shadow: 3px 3px 0 var(--shadow); }
.tabs { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.tab.on { --face: var(--accent); color: var(--shadow); --light: rgba(255,255,255,.5); --dark: rgba(150, 90, 0, .45); }
.help-body {
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 16px;
  text-align: left;
  font-size: 8px;
  line-height: 2;
  background: rgba(43, 47, 92, .55);
  box-shadow: 0 -4px 0 0 var(--shadow), 0 4px 0 0 var(--shadow), -4px 0 0 0 var(--shadow), 4px 0 0 0 var(--shadow);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--shadow);
  outline: 0;
}
.help-body p { margin: 0; }
.help-body em { font-style: normal; color: var(--accent); }
.help-body h3 { margin: 16px 0 8px; font-weight: normal; font-size: 9px; text-transform: uppercase; color: var(--accent); }
.help-body .note { margin-top: 10px; opacity: .9; }
.keys { width: 100%; border-collapse: collapse; }
.keys th { font-weight: normal; text-align: left; color: var(--accent); padding-bottom: 6px; }
.keys td { padding: 5px 8px 5px 0; vertical-align: middle; }
.keys td:first-child { white-space: nowrap; }
.keys b {
  font-weight: normal;
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  margin: 0 4px 4px 0;
  background: var(--panel);
  box-shadow: 0 -2px 0 0 var(--shadow), -2px 0 0 0 var(--shadow), 2px 0 0 0 var(--shadow), 0 4px 0 0 var(--shadow);
}
.obs { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.obs > span { flex: 0 0 56px; display: flex; justify-content: center; }
.obs canvas, .ani .face canvas { image-rendering: pixelated; }
.ani { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 18px; }
.ani .row { display: flex; align-items: center; gap: 12px; }
.ani .face { flex: 0 0 60px; display: flex; justify-content: center; }
.ani .req { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }
.ani .row.locked .face canvas { filter: brightness(0); opacity: .55; }
.ani .row.locked .req { color: var(--ink); opacity: .75; }
.tips { list-style: none; margin: 0; padding: 0; }
.tips li { display: flex; gap: 10px; margin: 0 0 10px; align-items: flex-start; }
.tips .bullet { --c: 1px; margin-top: 3px; color: var(--accent); flex: 0 0 auto; }
@media (max-height: 500px) {
  .help-box { gap: 8px; }
  .help h2 { font-size: 14px; }
  .tabs { gap: 10px; }
  .help .small { padding: 7px 10px; font-size: 8px; }
  .help-body { padding: 10px 12px; line-height: 1.8; }
  .keys td { padding: 2px 8px 2px 0; }
  .keys b { margin-bottom: 2px; }
}

/* ---------- ranking ---------- */
.tab canvas { display: block; width: 18px; height: 18px; image-rendering: pixelated; }
.tabs .tab { padding: 8px 10px; }
.rank-msg { margin: 0; min-height: 1.6em; font-size: 8px; line-height: 1.6; color: var(--accent); text-align: center; }
.nickrow { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
#nick-input {
  font-family: var(--pixel);
  font-size: 10px;
  width: 190px;
  padding: 10px 10px;
  color: var(--ink);
  background: #151837;
  border: 0;
  border-radius: 0;
  box-shadow: 0 -4px 0 0 var(--shadow), -4px 0 0 0 var(--shadow), 4px 0 0 0 var(--shadow), 0 4px 0 0 var(--shadow);
  -webkit-user-select: text;
  user-select: text;
  outline: 0;
}
#nick-input:focus { box-shadow: 0 -4px 0 0 var(--accent), -4px 0 0 0 var(--accent), 4px 0 0 0 var(--accent), 0 4px 0 0 var(--accent); }
#nick-input::placeholder { color: rgba(244, 241, 222, .4); }
.lb { width: 100%; border-collapse: collapse; }
.lb td { padding: 5px 8px; }
.lb td:first-child { width: 56px; color: var(--accent); }
.lb td:last-child { text-align: right; width: 80px; }
.lb tr:nth-child(1) td:first-child { color: #ffd23f; }
.lb tr:nth-child(2) td:first-child { color: #d0d6e0; }
.lb tr:nth-child(3) td:first-child { color: #d99057; }
.lb tr.me { background: rgba(255, 210, 63, .18); }
.lb tr.me td { color: var(--accent); }
.lb .sep { text-align: center; opacity: .6; }
@media (max-height: 500px) {
  .rank-msg { min-height: 0; }
  #nick-input { width: 150px; padding: 7px 8px; }
  .lb td { padding: 3px 8px; }
}

#nick-input, .lb td { text-transform: uppercase; }

/* ---------- share button, ranking footer ---------- */
#share-btn {
  position: absolute;
  left: 0; right: 0;
  margin: 0 auto;
  width: max-content;
  bottom: max(14px, env(safe-area-inset-bottom));
}
.rank-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.rank-privacy { margin: 0; font-size: 7px; line-height: 1.6; opacity: .7; text-align: center; }
@media (max-height: 500px) { .rank-privacy { font-size: 6px; } }

/* destructive action: red button, brighter while waiting for the second click */
#rank-del { --face: #c23b32; --light: rgba(255, 255, 255, .3); --dark: rgba(80, 0, 0, .45); color: #fff; }
#rank-del:hover { --face: #d9473d; }
#rank-del.confirm { --face: #ff5448; --edge: #fff; animation: blink-red .5s steps(2, end) infinite; }
@keyframes blink-red { 50% { --face: #c23b32; } }

/* ---------- achievements ---------- */
.help h2 #ach-count { font-size: 12px; color: var(--accent); margin-left: 8px; }
.achs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.ach { display: flex; gap: 12px; align-items: flex-start; opacity: .62; }
.ach.got { opacity: 1; }
.ach i[data-icon] { --c: 3px; flex: 0 0 auto; color: rgba(244, 241, 222, .6); margin-top: 2px; }
.ach.got i[data-icon] { color: #ffd23f; }
.ach p { margin: 0; flex: 1 1 auto; min-width: 0; }
.ach em { font-style: normal; color: var(--accent); }
.ach .req { color: var(--ink); opacity: .8; }
.ach.got .req { color: #9be564; opacity: 1; }
.ach .bar { margin-top: 6px; height: 6px; background: #151837; box-shadow: 0 -2px 0 0 var(--shadow), 0 2px 0 0 var(--shadow), -2px 0 0 0 var(--shadow), 2px 0 0 0 var(--shadow); }
.ach .bar div { height: 100%; background: var(--accent); }

/* weekly / all-time switch and animal icon in ranking rows */
#rank-period { margin-bottom: -4px; }
#rank-period .tab { min-width: 110px; justify-content: center; }
.lb td.ico { width: 30px; padding-left: 0; padding-right: 4px; }
.lb td.ico canvas { display: block; width: 18px; height: 18px; image-rendering: pixelated; }

/* phones in landscape (<= 400px tall): the key hints live in the Help screen, so drop them to keep the menu on one screen */
@media (max-height: 400px) and (orientation: landscape) {
  .hint { display: none !important; }
  .actions { gap: 12px; margin-top: 10px; }
}

/* pause menu: options flow in rows (7 buttons would be a very tall column otherwise) */
.pause-opts { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; max-width: 640px; padding: 0 16px; }
@media (max-height: 460px) { .pause-opts { gap: 12px 14px; } }

/* wallet: total coins, pinned to the top-right corner of the menu (takes no room from the layout) */
.wallet {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: calc(16px + env(safe-area-inset-right));
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  background: var(--panel);
  box-shadow: 0 -3px 0 0 var(--shadow), -3px 0 0 0 var(--shadow), 3px 0 0 0 var(--shadow), 0 5px 0 0 var(--shadow);
}
.wallet i[data-icon] { --c: 2px; color: #ffd23f; }
#menu[hidden] .wallet { display: none; }
@media (max-height: 500px) and (orientation: landscape) { .wallet { padding: 5px 8px; font-size: 8px; } }

/* ---------- shop ---------- */
.wallet { cursor: pointer; }
.wallet:focus-visible { outline: 2px solid #fff; }
.shop-balance { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-size: 12px; color: var(--accent); vertical-align: middle; }
.shop-balance i[data-icon] { --c: 2px; color: #ffd23f; }
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px 22px; }
.shop .note { grid-column: 1 / -1; margin: 0 0 4px; }
.shop .item { display: flex; align-items: center; gap: 12px; }
.shop .face { flex: 0 0 60px; display: flex; justify-content: center; }
.shop .face canvas { image-rendering: pixelated; }
.shop .item p { margin: 0; flex: 1 1 auto; min-width: 0; }
.shop .item em { font-style: normal; color: var(--accent); }
.shop .buy { flex: 0 0 auto; padding: 8px 10px; gap: 6px; }
.shop .buy i, .shop .buy svg { color: #ffd23f; }
.shop .buy .ic { --c: 2px; }
.shop .buy.short { opacity: .5; }

/* ---------- statistics ---------- */
.stats { width: 100%; border-collapse: collapse; }
.stats td { padding: 4px 8px 4px 0; }
.stats td:last-child { text-align: right; color: var(--accent); }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; }
.rec { display: flex; align-items: center; gap: 8px; }
.rec p { margin: 0; }
.rec canvas { image-rendering: pixelated; flex: 0 0 auto; }
.rec.locked canvas { filter: brightness(0); opacity: .55; }
@media (max-height: 500px) { .shop { gap: 10px 18px; } .stats td { padding: 2px 8px 2px 0; } }

/* ---------- daily challenge ---------- */
.corner-left {                                         /* Reto + Guardado, pinned top-left (mirror of the wallet) */
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: calc(16px + env(safe-area-inset-left));
  z-index: 2;
  display: flex;
  gap: 14px;
}
#menu[hidden] .corner-left { display: none; }
.daily-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1;
  color: #9be564;
  background: var(--panel);
  cursor: pointer;
  box-shadow: 0 -3px 0 0 var(--shadow), -3px 0 0 0 var(--shadow), 3px 0 0 0 var(--shadow), 0 5px 0 0 var(--shadow);
}
.daily-chip i[data-icon] { --c: 2px; }
.daily-chip.done { color: var(--accent); }
.daily-chip:focus-visible { outline: 2px solid #fff; }
#menu[hidden] .daily-chip { display: none; }
.daily-box { max-width: 560px; height: auto; max-height: 100%; }
#daily-body { text-align: center; font-size: 9px; line-height: 2; }
#daily-body .face { display: flex; justify-content: center; margin-bottom: 6px; }
#daily-body .face canvas { image-rendering: pixelated; }
#daily-body .goal { color: #9be564; font-size: 11px; margin: 0 0 10px; }
#daily-body .state.ok { color: var(--accent); }
#daily-body p { margin: 0 0 6px; }
@media (max-height: 500px) and (orientation: landscape) { .daily-chip { padding: 5px 8px; font-size: 8px; } #daily-body .goal { font-size: 9px; } }

/* ---------- cloud save ---------- */
.cloud-chip { color: #b8c4ff; }
.cloud-chip.on { color: #7fd0ff; }
#cloud-body { text-align: center; font-size: 9px; line-height: 2; }
#cloud-body p { margin: 0 0 8px; }
#cloud-body h3 { margin: 16px 0 8px; }
#cloud-body .code { font-size: 18px; color: var(--accent); letter-spacing: 2px; margin: 4px 0 12px; -webkit-user-select: all; user-select: all; }
#cloud-body .row { display: flex; gap: 14px; justify-content: center; margin-bottom: 10px; }
#cloud-body .big { margin: 8px 0 4px; }
#cloud-danger { margin-top: 16px; }
#cloud-del { --face: #c23b32; --light: rgba(255, 255, 255, .3); --dark: rgba(80, 0, 0, .45); color: #fff; }
#cloud-del.confirm { --face: #ff5448; --edge: #fff; }
#cloud-input {
  font-family: var(--pixel); font-size: 10px; width: 190px; padding: 10px; color: var(--ink); background: #151837; border: 0; border-radius: 0;
  text-transform: uppercase; -webkit-user-select: text; user-select: text; outline: 0;
  box-shadow: 0 -4px 0 0 var(--shadow), -4px 0 0 0 var(--shadow), 4px 0 0 0 var(--shadow), 0 4px 0 0 var(--shadow);
}
#cloud-input:focus { box-shadow: 0 -4px 0 0 var(--accent), -4px 0 0 0 var(--accent), 4px 0 0 0 var(--accent), 0 4px 0 0 var(--accent); }
@media (max-height: 500px) { #cloud-body .code { font-size: 14px; margin-bottom: 8px; } #cloud-body h3 { margin: 10px 0 6px; } }
