:root {
  --ink: #02040d;
  --panel: #070d21;
  --panel-2: #0b1432;
  --blue: #123d91;
  --blue-light: #3673ca;
  --line: #4b6cad;
  --text: #eaf0ff;
  --muted: #9cabce;
  --gold: #f5d75f;
  --green: #67e071;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 20%, rgba(91, 135, 233, .24) 0 1px, transparent 1px),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, .18) 0 1px, transparent 1px),
    linear-gradient(90deg, #071e68, #06123e 30%, #02040d 50%, #06123e 70%, #071e68);
  background-size: 97px 97px, 151px 151px, auto;
  font: 12px Verdana, Arial, sans-serif;
}

a { color: #c7d7ff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.page {
  width: min(1060px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ink);
  border-inline: 2px solid #819bd2;
  box-shadow: 0 0 45px #000;
}

.topline {
  display: flex;
  justify-content: space-between;
  padding: 5px 12px;
  color: #91a9db;
  background: #020617;
  border-bottom: 1px solid #39558e;
  font-size: 9px;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 96px;
  padding: 14px 20px;
  background:
    linear-gradient(130deg, transparent 58%, rgba(100, 164, 255, .16) 58% 59%, transparent 59%),
    radial-gradient(ellipse at 50% 0, #2265b3, #0b3385 44%, #07174f);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.brand strong {
  font: 40px/1 Arial Black, Arial, sans-serif;
  letter-spacing: -3px;
  text-shadow: 2px 2px #041039;
}

.brand em {
  color: #9ac9ff;
  font: normal 23px Arial, sans-serif;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: #a6c4ee;
  font-size: 9px;
  letter-spacing: 3px;
}

.brand-photo {
  position: relative;
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  padding: 3px;
  overflow: hidden;
  background: #07103b;
  border: 3px outset #b9cbf0;
  box-shadow: 4px 4px 0 rgba(0,0,0,.42), 0 0 12px rgba(93, 105, 255, .55);
  transform: rotate(-2deg);
}

.brand-photo::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.2) 2px 3px);
  pointer-events: none;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.live {
  color: #aec8f4;
  font-size: 9px;
}

.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.3s step-end infinite;
}

.live b { color: #fff583; }

nav {
  display: flex;
  background: linear-gradient(#2856a3, #081b58 60%, #040d35);
  border-block: 1px solid #829fe1;
}

nav a {
  padding: 10px 17px;
  color: white;
  border-right: 1px solid #5976b2;
  font-weight: bold;
  font-size: 9px;
  text-decoration: none;
}

nav a:hover,
nav a.active { background: #2460b3; }

.watch-link {
  color: #152000;
  background: linear-gradient(#7dff4a, #48b925);
  text-shadow: none;
}

.watch-link:hover { color: #071000; background: #93ff68; }
.watch-link i,
.kick-watch-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 7px #fff;
  animation: blink .9s step-end infinite;
}

.ticker {
  display: flex;
  overflow: hidden;
  min-height: 28px;
  background: #01030a;
  border-bottom: 1px solid #3d5792;
  white-space: nowrap;
}

.ticker b {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #171400;
  background: var(--gold);
  font-size: 9px;
}

.ticker span {
  padding: 7px 12px;
  color: #b9c4df;
  font-size: 9px;
}

main {
  width: min(780px, calc(100% - 24px));
  margin: 0 auto;
  padding: 42px 0 55px;
}

.intro { text-align: center; }
.file-number {
  color: #f49c35;
  font: bold 9px "Courier New", monospace;
  letter-spacing: 2px;
}

.intro h1 {
  margin: 9px 0 10px;
  color: white;
  font: 36px/1.08 Arial Black, Arial, sans-serif;
  letter-spacing: -2px;
}

.intro p {
  max-width: 570px;
  margin: 0 auto 25px;
  color: #aab8d7;
  line-height: 1.55;
}

.kick-watch {
  display: grid;
  grid-template-columns: auto 1fr;
  width: fit-content;
  min-width: 270px;
  margin: -8px auto 24px;
  padding: 7px 11px;
  color: #172100;
  background: linear-gradient(#92ff63, #55c92d);
  border: 3px outset #b8ff98;
  box-shadow: 5px 6px 0 rgba(0,0,0,.48);
  text-align: left;
  text-decoration: none;
  transform: rotate(-.5deg);
}

.kick-watch:hover {
  color: #101800;
  filter: brightness(1.12);
  transform: rotate(.5deg);
}

.kick-watch-status {
  grid-row: 1 / 3;
  align-self: center;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid rgba(25,60,8,.35);
  font-size: 8px;
  font-weight: bold;
}

.kick-watch-status i { background: #efffe8; }
.kick-watch strong { font-size: 11px; }
.kick-watch small { margin-top: 2px; color: #2e641d; font-size: 8px; }

.terminal {
  background: #aebddb;
  border: 3px outset #d7e1f3;
  box-shadow: 10px 12px 0 rgba(0,0,0,.52), 0 0 40px rgba(39, 84, 170, .22);
}

.window-title,
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 31px;
  padding: 4px 6px;
  color: white;
  background: linear-gradient(90deg, #071c75, #2674bb);
  text-shadow: 1px 1px #000;
}

.window-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  color: #10265d;
  background: white;
  border-radius: 50%;
  font-weight: bold;
  text-shadow: none;
}

.window-title small { color: #b9d1f0; }
.window-buttons { display: flex; gap: 3px; }

.window-buttons span,
.dialog-title button {
  display: grid;
  place-items: center;
  width: 23px;
  height: 21px;
  padding: 0;
  color: #111;
  background: #cad4e5;
  border: 2px outset #fff;
  font-weight: bold;
  text-shadow: none;
}

.machine-status {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: #17223d;
  background: #d3dceb;
  border: 2px inset #f1f5fb;
}

.machine-avatar {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #dce8ff;
  background: radial-gradient(circle, #2851a0, #0b173e);
  border: 2px ridge #8295bd;
  font: bold 27px Georgia, serif;
  text-shadow: 0 0 8px #9ac3ff;
}

.machine-status strong,
.machine-status span { display: block; }
.machine-status span { margin-top: 4px; color: #4d5b76; font-size: 9px; }
.machine-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #30a744;
  border-radius: 50%;
}

.trust {
  color: #687690;
  font-size: 8px;
  text-align: right;
}

.trust b { color: #15802a; font-size: 13px; }

.chat {
  height: 330px;
  padding: 18px;
  overflow-y: auto;
  color: var(--text);
  background:
    linear-gradient(rgba(4, 9, 25, .97), rgba(4, 9, 25, .97)),
    repeating-linear-gradient(0deg, transparent 0 3px, #fff 3px 4px);
  border: 2px inset #697896;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 9px;
  margin-bottom: 14px;
}

.message.user-message {
  flex-direction: row-reverse;
}

.speaker {
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: linear-gradient(135deg, #3573c2, #132453);
  border: 2px outset #718cc5;
  font-weight: bold;
}

.user-message .speaker {
  background: linear-gradient(135deg, #80643a, #33260f);
  border-color: #b49c68;
}

.bubble {
  position: relative;
  max-width: 78%;
  padding: 10px 12px 18px;
  color: #bcc9e5;
  background: #0d1732;
  border: 1px solid #405b96;
  line-height: 1.5;
}

.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 10px;
  width: 11px;
  height: 11px;
  background: #0d1732;
  border-left: 1px solid #405b96;
  border-bottom: 1px solid #405b96;
  transform: rotate(45deg);
}

.user-message .bubble {
  color: #e8dec1;
  background: #2a2313;
  border-color: #665834;
}

.user-message .bubble::before {
  left: auto;
  right: -7px;
  background: #2a2313;
  border: 0;
  border-top: 1px solid #665834;
  border-right: 1px solid #665834;
}

.bubble b { color: var(--gold); font-size: 9px; }
.user-message .bubble b { color: #f4cf78; }
.bubble p { margin: 5px 0 0; }
.bubble time {
  position: absolute;
  right: 7px;
  bottom: 4px;
  color: #637394;
  font-size: 8px;
}

.typing p::after {
  content: " ■";
  animation: blink .7s step-end infinite;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 9px 10px;
  background: #bdc9df;
  border-inline: 2px inset #edf3fc;
}

.suggestions > span {
  width: 100%;
  color: #4b5974;
  font-size: 8px;
  font-weight: bold;
}

.suggestions button {
  padding: 5px 7px;
  color: #1b2b50;
  background: #e6edf8;
  border: 2px outset #f7faff;
  font-size: 9px;
}

.suggestions button:hover { background: #fff8c9; }

.ask-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 10px;
  background: #ccd6e7;
  border: 2px inset #f4f7fc;
}

.ask-box input,
.guestbook input,
.guestbook textarea {
  width: 100%;
  padding: 9px;
  color: #111a2d;
  background: white;
  border: 2px inset #9eacc5;
  outline: none;
}

.ask-box input:focus,
.guestbook input:focus,
.guestbook textarea:focus { background: #fffde3; }

.ask-box button,
.guestbook button {
  padding: 7px 15px;
  color: white;
  background: linear-gradient(#3471bd, #102d70);
  border: 2px outset #7190c9;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.disclaimer {
  padding: 6px 10px;
  color: #5b6881;
  background: #b9c5da;
  font-size: 8px;
}

.mini-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 27px;
}

.mini-panels article {
  display: flex;
  gap: 9px;
  min-height: 110px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid #3f5a94;
}

.panel-icon {
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: #08132c;
  background: var(--gold);
  border: 2px outset #fff09a;
  font: bold 17px Georgia, serif;
}

.mini-panels b { color: var(--gold); font-size: 9px; }
.mini-panels p { margin: 7px 0 0; color: #9eaccb; font-size: 10px; line-height: 1.5; }

.guestbook {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 18px;
  margin-top: 35px;
  padding: 20px;
  background: linear-gradient(135deg, #0b1432, #060a18);
  border: 1px solid #435f9d;
}

.guestbook small { color: #ed9d38; font-weight: bold; }
.guestbook h2 { margin: 6px 0; color: white; font: 21px Arial Black, Arial, sans-serif; }
.guestbook p { color: #a6b2cf; line-height: 1.5; }

.guestbook form {
  display: grid;
  gap: 6px;
}

.bot-field { position: absolute !important; left: -9999px !important; }

.guestbook-status {
  min-height: 13px;
  color: #90a3ca;
  font-size: 8px;
  line-height: 1.4;
}

.guestbook-status.success { color: #75df7c; }
.guestbook-status.error { color: #ff7b73; }

.guestbook textarea {
  min-height: 72px;
  resize: vertical;
}

.last-opinion {
  grid-column: 1 / -1;
  padding-top: 13px;
  border-top: 1px dotted #3f5486;
}

.last-opinion > b { color: #6f82ae; font-size: 8px; }
.last-opinion blockquote { margin: 6px 0; color: #d6def1; font: italic 15px Georgia, serif; }
.last-opinion span { color: #e6ca61; font-size: 9px; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  color: #7180a2;
  background: #02040b;
  border-top: 2px solid #3c5792;
  font-size: 9px;
}

footer b { color: #d9e3fa; }

dialog {
  width: min(430px, calc(100% - 30px));
  padding: 3px;
  color: #65ed80;
  background: #b8c6dd;
  border: 3px outset #e0e7f2;
  box-shadow: 8px 8px rgba(0,0,0,.5);
}

dialog::backdrop { background: rgba(0, 2, 12, .82); }
.dialog-title button { cursor: pointer; }
.secret-content {
  padding: 18px;
  background: #020704;
  border: 2px inset #425b47;
  font-family: "Courier New", monospace;
}

.secret-content p { color: white; animation: blink .8s step-end infinite; }
.secret-content pre { white-space: pre-wrap; line-height: 1.5; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 10;
  transform: translate(-50%, 15px);
  padding: 9px 13px;
  color: #221c00;
  background: var(--gold);
  border: 2px outset #fff3a4;
  box-shadow: 5px 5px rgba(0,0,0,.55);
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

#toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.merch-popup {
  position: fixed;
  z-index: 20;
  top: 205px;
  right: 16px;
  width: 246px;
  padding: 3px;
  color: #101010;
  background: #c2ccdc;
  border: 3px outset #eef3fb;
  box-shadow: 8px 9px 0 rgba(0,0,0,.62);
  opacity: 0;
  transform: translateX(calc(100% + 30px)) rotate(2deg);
  transition: transform .38s cubic-bezier(.2, 1.35, .5, 1), opacity .18s;
  pointer-events: none;
}

.merch-popup.show {
  opacity: 1;
  transform: translateX(0) rotate(1deg);
  pointer-events: auto;
  animation: popup-shake 7s steps(1) 1.2s infinite;
}

.merch-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding-left: 6px;
  color: #fff;
  background: linear-gradient(90deg, #071c75, #2377bd);
  font-size: 9px;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.merch-titlebar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #ffef48;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff84f;
  animation: merch-blink .45s step-end infinite;
}

.merch-titlebar button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  margin-right: 2px;
  padding: 0;
  color: #111;
  background: #cad3e2;
  border: 2px outset white;
  font-weight: bold;
}

.merch-titlebar button:active { border-style: inset; }

.merch-body {
  position: relative;
  padding: 7px;
  overflow: hidden;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
    #050817;
  border: 2px inset #7786a4;
}

.merch-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid #ffed36;
  pointer-events: none;
  animation: merch-border .65s step-end infinite;
}

.merch-alert {
  margin-bottom: 6px;
  padding: 4px;
  color: #201900;
  background: #ffe83a;
  border: 2px outset #fff48c;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .5px;
}

.merch-alert span {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 4px;
  color: #fff;
  background: #ef2319;
  animation: merch-new .55s step-end infinite;
}

.merch-image {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: #000;
  border: 2px inset #53617f;
}

.merch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: contrast(1.08) saturate(.75);
}

.merch-image b {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 3px 5px;
  color: #000;
  background: #9dff62;
  border: 1px solid #d7ffbf;
  font-size: 7px;
  transform: rotate(-3deg);
}

.merch-copy {
  padding: 8px 3px 4px;
  color: white;
  font-family: Arial Black, Arial, sans-serif;
  text-shadow: 2px 2px #000;
}

.merch-copy > span {
  color: #87b5ff;
  font: bold 8px Verdana, sans-serif;
  letter-spacing: 1px;
}

.merch-copy strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.15;
}

.merch-copy mark {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 4px;
  color: #170e00;
  background: #ffdb37;
  text-shadow: none;
  animation: merch-highlight .6s step-end infinite;
}

.merch-copy p {
  margin: 5px 0 0;
  color: #ff685f;
  font-size: 16px;
  line-height: 1.08;
  animation: merch-text .7s step-end infinite;
}

.merch-progress {
  height: 13px;
  margin: 1px 7px 7px;
  padding: 2px;
  background: #111728;
  border: 2px inset #78849d;
}

.merch-progress span {
  display: block;
  width: 73%;
  height: 100%;
  background: repeating-linear-gradient(90deg, #25a6ef 0 8px, #97d8ff 8px 10px);
  animation: merch-progress 1s steps(8) infinite;
}

.merch-body small {
  display: block;
  padding-bottom: 4px;
  color: #9ba9c7;
  font-size: 8px;
}

.steam-popup {
  position: fixed;
  z-index: 19;
  top: 245px;
  left: 16px;
  width: 255px;
  padding: 3px;
  color: white;
  background: #c7cfdc;
  border: 3px outset #eef2f8;
  box-shadow: 9px 10px 0 rgba(0,0,0,.62);
  opacity: 0;
  transform: translateX(calc(-100% - 30px)) rotate(-2deg);
  transition: transform .42s cubic-bezier(.2, 1.35, .5, 1), opacity .18s;
  pointer-events: none;
}

.steam-popup.show {
  opacity: 1;
  transform: translateX(0) rotate(-1deg);
  pointer-events: auto;
  animation: steam-popup-shake 8s steps(1) 1.5s infinite;
}

.steam-popup-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding-left: 6px;
  color: white;
  background: linear-gradient(90deg, #480408, #b0141e);
  font-size: 9px;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.steam-popup-titlebar i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #ff3939;
  border-radius: 50%;
  box-shadow: 0 0 7px #ff2727;
  animation: merch-blink .55s step-end infinite;
}

.steam-popup-titlebar button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  margin-right: 2px;
  padding: 0;
  color: #111;
  background: #cad3e2;
  border: 2px outset white;
  font-weight: bold;
}

.steam-popup-titlebar button:active { border-style: inset; }

.steam-popup-body {
  padding: 7px;
  overflow: hidden;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    #080203;
  border: 2px inset #776e75;
}

.steam-warning {
  margin-bottom: 6px;
  padding: 4px;
  color: #fff;
  background: #aa1018;
  border: 2px outset #e44f55;
  font-size: 8px;
  font-weight: bold;
  letter-spacing: .5px;
  animation: steam-warning .7s step-end infinite;
}

.steam-popup-image {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #160305;
  border: 2px inset #654248;
}

.steam-popup-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,.24) 2px 3px);
  pointer-events: none;
}

.steam-popup-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: contrast(1.12) saturate(.82);
}

.steam-popup-image span {
  position: absolute;
  z-index: 1;
  left: 5px;
  bottom: 5px;
  padding: 3px 5px;
  color: white;
  background: #8d0d14;
  border: 1px solid #ff4d55;
  font-size: 7px;
  font-weight: bold;
}

.steam-popup-copy {
  padding: 8px 2px 5px;
  font-family: Arial Black, Arial, sans-serif;
  text-shadow: 2px 2px #000;
}

.steam-popup-copy small {
  color: #f06e74;
  font: bold 8px Verdana, sans-serif;
  letter-spacing: 1px;
}

.steam-popup-copy strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.17;
}

.steam-popup-copy mark {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 4px;
  color: white;
  background: #c51620;
  text-shadow: 1px 1px #550000;
  animation: steam-mark .65s step-end infinite;
}

.steam-popup-copy p {
  margin: 6px 0 0;
  color: #b8aeb0;
  font: 9px Verdana, sans-serif;
  text-shadow: none;
}

.steam-gift-button {
  display: block;
  margin: 0 5px 6px;
  padding: 8px 5px;
  color: white;
  background: linear-gradient(#3b7597, #17384f);
  border: 2px outset #78a4bd;
  font-weight: bold;
  font-size: 10px;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  animation: steam-button 1.1s step-end infinite;
}

.steam-gift-button:active { border-style: inset; }

.steam-popup-note {
  display: block;
  overflow: hidden;
  color: #736b70;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merch-inspect {
  position: absolute;
  z-index: 3;
  right: 8px;
  top: 128px;
  display: grid;
  grid-template-columns: 28px 1fr;
  width: 142px;
  padding: 6px;
  color: #182100;
  background: #dfff62;
  border: 3px outset #f1ffb8;
  box-shadow: 4px 5px 0 rgba(0,0,0,.65);
  text-align: left;
  opacity: 0;
  transform: translate(12px, 5px) rotate(-3deg);
  transition: opacity .15s, transform .2s;
  pointer-events: none;
}

.merch-popup:hover .merch-inspect,
.merch-inspect:focus-visible {
  opacity: 1;
  transform: translate(0, 0) rotate(-3deg);
  pointer-events: auto;
  animation: inspect-pulse .8s step-end infinite;
}

.merch-inspect > span { grid-row: 1 / 3; align-self: center; font-size: 20px; }
.merch-inspect b { font-size: 9px; }
.merch-inspect small { padding: 1px 0 0; color: #546000; font-size: 7px; }

.product-dialog {
  width: min(860px, calc(100% - 24px));
  max-width: none;
  padding: 3px;
  color: #172036;
  background: #bcc7da;
  border: 3px outset #eef2f8;
  box-shadow: 12px 14px 0 rgba(0,0,0,.58);
}

.product-dialog::backdrop { background: rgba(0, 2, 12, .8); backdrop-filter: blur(2px); }
.product-window { border: 1px solid #6c7a95; }

.product-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  padding-left: 7px;
  color: white;
  background: linear-gradient(90deg, #071c75, #2c78bd);
  font-size: 10px;
  font-weight: bold;
  text-shadow: 1px 1px #000;
}

.product-titlebar button,
.product-toolbar button {
  padding: 2px 7px;
  color: #111;
  background: #cbd4e3;
  border: 2px outset white;
  font-weight: bold;
}

.product-titlebar button { width: 24px; height: 22px; margin-right: 3px; padding: 0; }

.product-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 5px;
  padding: 5px;
  background: #d4dce9;
  border-bottom: 2px groove white;
}

.product-toolbar span {
  padding: 5px 7px;
  overflow: hidden;
  color: #4b5871;
  background: white;
  border: 2px inset #aab5c8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-content {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  min-height: 510px;
  padding: 16px;
  background: linear-gradient(rgba(255,255,255,.93), rgba(233,238,247,.96));
  border: 2px inset #fff;
}

.product-main-image {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #050505;
  border: 3px inset #8996ad;
}

.product-main-image img { width: 100%; height: 100%; object-fit: contain; }

.product-main-image span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 6px;
  color: #111900;
  background: #dfff62;
  border: 2px outset #f2ffb5;
  font-size: 8px;
  font-weight: bold;
}

.product-thumbnails { display: flex; gap: 6px; margin-top: 8px; }
.product-thumbnails button {
  display: grid;
  place-items: center;
  width: 64px;
  height: 58px;
  padding: 3px;
  color: #68748c;
  background: #d6deea;
  border: 2px outset white;
}
.product-thumbnails button.selected { background: #fffbc5; border-style: inset; }
.product-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbnails span { font: bold 18px Georgia, serif; }
.product-thumbnails small { font-size: 6px; }

.product-info h2 {
  margin: 8px 0 4px;
  color: #101b38;
  font: 24px/1.08 Arial Black, Arial, sans-serif;
  letter-spacing: -1px;
}

.product-badge {
  display: inline-block;
  padding: 4px 7px;
  color: white;
  background: #b71019;
  border: 2px outset #e96c72;
  font-size: 8px;
  font-weight: bold;
  transform: rotate(-1deg);
}

.product-code { color: #77839b; font: 8px "Courier New", monospace; }
.product-info > p { color: #536078; font-size: 10px; line-height: 1.5; }

.product-price {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 9px;
  margin: 12px 0;
  padding: 9px;
  background: #e1e7f1;
  border: 2px inset white;
}
.product-price > span { align-self: center; color: #6a7690; font-size: 8px; font-weight: bold; }
.product-price strong { color: #b3161e; font: 21px Arial Black, Arial, sans-serif; text-align: right; }
.product-price small { grid-column: 1 / -1; color: #68748c; font-size: 8px; text-align: right; }

.sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0;
  padding: 8px;
  border: 1px solid #9aa8bf;
}
.sizes legend { color: #33435f; font-size: 9px; font-weight: bold; }
.sizes label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 49px;
  color: #999;
  background: #d9dce2;
  border: 2px inset #f2f2f2;
  cursor: not-allowed;
}
.sizes input { position: absolute; opacity: 0; }
.sizes b { font-size: 14px; text-decoration: line-through; }
.sizes span { color: #a0353a; font-size: 6px; font-weight: bold; }

.stock-message {
  margin-top: 8px;
  padding: 7px;
  color: #741016;
  background: #ffd9d9;
  border: 1px solid #d58f94;
  font-size: 8px;
  font-weight: bold;
  text-align: center;
}
.stock-message i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  background: #d3151f;
  border-radius: 50%;
  animation: merch-blink .7s step-end infinite;
}

.cart-playground {
  position: relative;
  height: 92px;
  margin-top: 9px;
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, #e7ebf2 0 6px, #dce2ec 6px 12px);
  border: 2px inset white;
}
.cart-playground > span { position: absolute; left: 7px; top: 6px; color: #6a7690; font-size: 7px; }

#runaway-cart {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 135px;
  padding: 9px 6px;
  color: white;
  background: linear-gradient(#e34a42, #941018);
  border: 3px outset #ef8781;
  font-weight: bold;
  text-shadow: 1px 1px #000;
  transform: translateX(-50%);
  transition: left .08s, top .08s;
}

.product-footnote { margin-top: 5px; color: #8993a7; font-size: 7px; text-align: center; }
.product-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 4px 7px;
  color: #4f5b71;
  background: #d1d9e6;
  border-top: 2px groove white;
  font-size: 8px;
}

@keyframes inspect-pulse { 50% { filter: brightness(1.25); } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes merch-blink { 50% { opacity: .1; } }
@keyframes merch-border {
  50% { border-color: #e82b22; box-shadow: inset 0 0 11px #ff2d23; }
}
@keyframes merch-new {
  50% { color: #ef2319; background: white; }
}
@keyframes merch-highlight {
  50% { color: white; background: #ee251d; }
}
@keyframes merch-text {
  50% { color: #fff; }
}
@keyframes merch-progress {
  50% { filter: brightness(1.5); transform: translateX(2px); }
}
@keyframes popup-shake {
  0%, 94%, 100% { transform: translateX(0) rotate(1deg); }
  95% { transform: translateX(-3px) rotate(-1deg); }
  96% { transform: translateX(3px) rotate(2deg); }
  97% { transform: translateX(-2px) rotate(0); }
}
@keyframes steam-warning {
  50% { color: #230000; background: #ffdf3c; border-color: #fff184; }
}
@keyframes steam-mark {
  50% { color: #1c0000; background: #ffdc3b; text-shadow: none; }
}
@keyframes steam-button {
  50% { filter: brightness(1.32); }
}
@keyframes steam-popup-shake {
  0%, 95%, 100% { transform: translateX(0) rotate(-1deg); }
  96% { transform: translateX(3px) rotate(1deg); }
  97% { transform: translateX(-3px) rotate(-2deg); }
  98% { transform: translateX(2px) rotate(0); }
}

@media (max-width: 650px) {
  .brand-row { min-height: 74px; padding: 10px; }
  .brand strong { font-size: 26px; letter-spacing: -2px; }
  .brand em { font-size: 15px; }
  .brand small, .live { display: none; }
  .brand-photo { width: 42px; height: 42px; padding: 2px; border-width: 2px; }
  nav { overflow-x: auto; }
  nav a { flex: 0 0 auto; padding: 9px 11px; }
  .ticker span { overflow: hidden; text-overflow: ellipsis; }
  main { padding-top: 28px; }
  .intro h1 { font-size: 28px; }
  .kick-watch { min-width: 0; width: 90%; }
  .chat { height: 380px; padding: 11px; }
  .bubble { max-width: 84%; }
  .machine-status { grid-template-columns: 42px 1fr; }
  .machine-avatar { width: 39px; height: 39px; }
  .trust { display: none; }
  .suggestions { flex-wrap: nowrap; overflow-x: auto; }
  .suggestions > span { display: none; }
  .suggestions button { flex: 0 0 auto; }
  .mini-panels { grid-template-columns: 1fr; }
  .mini-panels article { min-height: auto; }
  .guestbook { grid-template-columns: 1fr; }
  footer { display: block; text-align: center; line-height: 2; }
  footer span { display: block; }
  .merch-popup {
    top: auto;
    right: 8px;
    bottom: 9px;
    width: 210px;
    transform: translateY(calc(100% + 30px)) rotate(1deg);
  }
  .merch-popup.show { transform: translateY(0) rotate(1deg); }
  .merch-image { height: 118px; }
  .merch-copy strong, .merch-copy p { font-size: 13px; }
  .merch-body small { display: none; }
  .merch-inspect {
    top: 80px;
    right: 5px;
    width: 128px;
  }
  .merch-inspect small { display: block; }
  .product-dialog { width: calc(100% - 12px); }
  .product-toolbar { grid-template-columns: auto 1fr; }
  .product-toolbar button:last-child { display: none; }
  .product-content {
    display: block;
    max-height: 78vh;
    min-height: 0;
    overflow-y: auto;
    padding: 10px;
  }
  .product-main-image { height: 300px; }
  .product-info h2 { font-size: 19px; }
  .product-statusbar span:last-child { display: none; }
  .steam-popup {
    top: auto;
    left: 8px;
    bottom: 9px;
    width: 215px;
    transform: translateY(calc(100% + 30px)) rotate(-1deg);
  }
  .steam-popup.show { transform: translateY(0) rotate(-1deg); }
  .steam-popup-image { height: 105px; }
  .steam-popup-copy strong { font-size: 12px; }
  .steam-popup-copy p, .steam-popup-note { display: none; }
  @keyframes popup-shake {
    0%, 94%, 100% { transform: translateY(0) rotate(1deg); }
    95% { transform: translate(-2px, 0) rotate(-1deg); }
    96% { transform: translate(2px, 0) rotate(2deg); }
    97% { transform: translateY(0) rotate(0); }
  }
  @keyframes steam-popup-shake {
    0%, 95%, 100% { transform: translateY(0) rotate(-1deg); }
    96% { transform: translate(2px, 0) rotate(1deg); }
    97% { transform: translate(-2px, 0) rotate(-2deg); }
    98% { transform: translateY(0) rotate(0); }
  }
}
