/* peckainteractive.com – one stylesheet, no scripts, no external fonts.
   Colours follow the game Cube Galaxy (dark space, cyan neon, amber accent). */
:root {
  --ink: #060918;
  --panel: rgba(8, 18, 34, 0.8);
  --line: rgba(120, 230, 255, 0.45);
  --text: #e6f4ff;
  --muted: #8ea6c2;
  --head: #e8ecff;
  --holo: #6fe3ff;
  --neon: #3fd3ff;
  --neon-light: #c8f6ff;
  --neon-glow: rgba(63, 211, 255, 0.55);
  --amber: #ffb547;
  --amber-light: #ffe2a8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 9%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 32%, rgba(200, 246, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 30% 62%, rgba(255, 255, 255, 0.35), transparent 60%),
    radial-gradient(1px 1px at 88% 71%, rgba(255, 255, 255, 0.4), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(111, 227, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(180, 92, 255, 0.1), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  font: 400 17px/1.6 var(--font);
}

a {
  color: var(--holo);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--neon-light);
}

a:focus-visible {
  outline: 2px solid var(--holo);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 10;
  padding: 6px 10px;
  background: var(--ink);
}

/* header ---------------------------------------------------------------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--head);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand b {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.22em;
}

.brand i {
  font-style: normal;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.62em;
  margin-top: 3px;
}

.lang {
  display: flex;
  gap: 4px;
  font-size: 14px;
  letter-spacing: 0.1em;
}

.lang a,
.lang strong {
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
}

.lang strong {
  color: var(--neon-light);
  border-color: var(--line);
  font-weight: 600;
}

/* content --------------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 0 34px rgba(111, 227, 255, 0.12);
  padding: 28px 32px 32px;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  color: var(--head);
  line-height: 1.25;
}

h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 700;
  color: var(--head);
}

.hub h1 {
  background: linear-gradient(180deg, #ffffff 20%, var(--holo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin: 34px 0 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 230, 255, 0.18);
  font-size: 21px;
  color: var(--holo);
}

h1 + p + h2,
h1 + h2 {
  border-top: 0;
  padding-top: 0;
}

h3 {
  margin: 24px 0 6px;
  font-size: 18px;
}

p,
ul {
  margin: 0 0 12px;
}

ul {
  padding-left: 1.3em;
}

li {
  margin: 4px 0;
}

li > ul {
  margin: 4px 0 0;
}

strong {
  color: #ffffff;
  font-weight: 600;
}

h1 + p {
  color: var(--muted);
  font-size: 15px;
}

blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 178, 63, 0.5);
  border-left-width: 4px;
  border-radius: 12px;
  background: rgba(255, 178, 63, 0.07);
}

blockquote p:last-child {
  margin-bottom: 0;
}

blockquote strong {
  color: var(--amber-light);
}

/* home: hub ------------------------------------------------------------- */
.hub {
  max-width: 560px;
  margin: 24px auto 0;
  text-align: center;
}

.hub h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 8vw, 52px);
}

/* boss turning under the title (animated WebP, still frame with reduced motion) */
.boss {
  display: block;
  max-width: 440px;
  margin: 0 auto 22px;
}

.boss img {
  display: block;
  width: 100%;
  height: auto;
}

.links {
  display: grid;
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

/* "dark glass, neon edge" buttons with chamfered corners, as in the game */
.xb {
  display: block;
  filter: drop-shadow(0 0 9px var(--neon-glow));
  text-decoration: none;
}

.xb .edge {
  display: block;
  padding: 2px;
  background: var(--neon);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.xb .in {
  display: block;
  padding: 15px 18px;
  clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
  background:
    linear-gradient(180deg, rgba(63, 211, 255, 0.22), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    #070c22;
  color: var(--neon-light);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 0 10px var(--neon);
}

.xb:hover .in,
.xb:focus-visible .in {
  background: var(--neon);
  color: #05081a;
  text-shadow: none;
}

.xb:focus-visible {
  outline: none;
  filter: drop-shadow(0 0 16px var(--neon-glow)) brightness(1.15);
}

/* footer ---------------------------------------------------------------- */
.foot {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 16px 28px;
  border-top: 1px solid rgba(120, 230, 255, 0.14);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.foot p {
  margin: 0;
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .panel {
    padding: 20px 18px 24px;
    border-radius: 16px;
  }

  h2 {
    font-size: 19px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand b {
    font-size: 17px;
  }

  .foot .sep {
    display: none;
  }

  .foot .mail {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .xb .in {
    transition: background 0.15s, color 0.15s;
  }
}
