/* eggman.css — FEED EGGS. Site palette around the monitor; inside it, 1998 Macintosh grey (drawn by eggman.js). */
:root {
  --bg: #07020f; --ink: #f4ecff; --dim: #a99bc4; --pink: #ff2bd6; --cyan: #00f0ff; --yellow: #ffe14d; --red: #ff3b3b;
  --display: 'Unbounded', system-ui, sans-serif; --mono: 'Space Mono', ui-monospace, monospace;
  --screen: #c9ced2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: hidden; overflow-x: clip; }
body {
  min-height: 100vh; color: var(--ink); font: 14px/1.6 var(--mono);
  background: radial-gradient(ellipse at 50% -10%, #3a2e0a 0%, #14062a 40%, var(--bg) 75%);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }

.top { max-width: 960px; margin: 0 auto; padding: 26px 16px 8px; text-align: center; }
.back { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cyan); border: 1px solid rgba(0, 240, 255, .35); border-radius: 999px; padding: 6px 14px; }
.back:hover { background: rgba(0, 240, 255, .12); }
h1 {
  margin: 18px 0 12px; font: 900 clamp(1.5rem, 6.2vw, 3.6rem)/1 var(--display); letter-spacing: .02em;
  color: var(--yellow); text-shadow: 0 0 2px #000, 3px 3px 0 #6b4a00, 0 0 34px rgba(255, 225, 77, .45);
}
h1 span { display: block; margin-top: 10px; font-size: .36em; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 20px rgba(0, 240, 255, .5); }
.sub { max-width: 68ch; margin: 0 auto 22px; color: var(--dim); font-size: .82rem; line-height: 1.75; }
.sub i { color: var(--ink); }

main { max-width: 960px; margin: 0 auto; padding: 0 16px 70px; }

/* ---------- the monitor ---------- */
.monitor { position: relative; }
.bezel {
  position: relative; padding: 14px; border-radius: 16px;
  background: linear-gradient(160deg, #2a2a2e, #141416);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(255, 225, 77, .08);
}
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--screen); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px #000, inset 0 0 40px rgba(0, 0, 0, .08); }
#screen { display: block; width: 100%; height: 100%; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.led { position: absolute; right: 28px; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: #58ff8a; box-shadow: 0 0 8px #58ff8a; }
.stand { width: 120px; height: 26px; margin: 0 auto; background: linear-gradient(#1b1b1e, #0e0e10); clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%); }
.stand-base { width: 300px; max-width: 80%; height: 8px; margin: 0 auto; border-radius: 0 0 6px 6px; background: #1a1a1d; box-shadow: 0 6px 20px rgba(0, 0, 0, .6); }

/* ---------- toolbar ---------- */
.egg-bar { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; font: 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.egg-bar button { padding: 8px 12px; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; cursor: pointer; }
.egg-bar button:hover { background: rgba(255, 225, 77, .18); border-color: var(--yellow); }
.egg-bar .status { flex-basis: 100%; text-align: center; margin-top: 6px; }

/* fullscreen: real (top layer) or fake (pinned to the viewport on iPhone) */
.monitor:fullscreen, .monitor:-webkit-full-screen, .monitor.fake-full { width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; }
.monitor.fake-full { position: fixed; inset: 0; z-index: 95; }
.monitor:fullscreen .bezel, .monitor:-webkit-full-screen .bezel, .monitor.fake-full .bezel { width: 100%; height: 100%; padding: 0; border-radius: 0; box-shadow: none; background: #000; display: flex; align-items: center; justify-content: center; }
.monitor:fullscreen .screen, .monitor:-webkit-full-screen .screen, .monitor.fake-full .screen { width: min(100vw, calc(100vh * 16 / 9)); width: min(100dvw, calc(100dvh * 16 / 9)); border-radius: 0; box-shadow: none; }
.monitor:fullscreen .led, .monitor:fullscreen .stand, .monitor:fullscreen .stand-base,
.monitor:-webkit-full-screen .led, .monitor:-webkit-full-screen .stand, .monitor:-webkit-full-screen .stand-base,
.monitor.fake-full .led, .monitor.fake-full .stand, .monitor.fake-full .stand-base { display: none; }
html.fake-full, html.fake-full body { overflow: hidden; }

.foot { max-width: 820px; margin: 18px auto 0; text-align: center; color: var(--dim); font-size: .72rem; line-height: 1.75; }
.foot.dim { opacity: .7; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 700px) {
  .top { padding-top: 18px; }
  h1 span { letter-spacing: .14em; font-size: .34em; }
  .sub { font-size: .76rem; }
  .bezel { padding: 8px; border-radius: 10px; }
  .led { right: 16px; bottom: 1px; }
  .stand, .stand-base { display: none; }
  .egg-bar { font-size: 10px; }
}
