/* KEBAB VANILLA - the site is a Minecraft world: sky + grass on top, the menus underground. Shared by kebabvanilla.com and the store. */
:root {
  /* Minecraft chat colours */
  --gold: #ffaa00;
  --yellow: #ffff55;
  --green: #55ff55;
  --aqua: #55ffff;
  --blue: #5555ff;
  --red: #ff5555;
  --purple: #ff55ff;
  --white: #ffffff;
  --gray: #aaaaaa;
  --dark-gray: #555555;
  /* GUI */
  --gui: #c6c6c6;
  --gui-text: #404040;
  --slot: #8b8b8b;
  --sky: #78a7ff;
  --sky-2: #a9c8ff;
  --shadow: 2px 2px 0 #3f3f3f;
  --px: "Pixelify Sans", "Courier New", monospace;
  --measure: 60ch;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--white); font: 400 1.1rem/1.55 var(--px); min-height: 100vh;
  /* underground: the darkened stone of the options screen */
  background: linear-gradient(rgba(10, 8, 6, .78), rgba(10, 8, 6, .78)), url(stone.png) 0 0 / 64px 64px #2b2b2b;
  image-rendering: pixelated;
}
a { color: var(--aqua); text-underline-offset: 3px; }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
img { image-rendering: pixelated; }
code { font: inherit; color: var(--yellow); }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the overworld: sky, clouds, grass ---------- */
.sky { position: relative; overflow: hidden; background: linear-gradient(var(--sky) 0%, var(--sky-2) 100%); }
.clouds { position: absolute; inset: 0; pointer-events: none; }
.cloud { position: absolute; height: 28px; background: rgba(255, 255, 255, .9);
  box-shadow: 28px -14px 0 rgba(255, 255, 255, .9), 56px 0 0 rgba(255, 255, 255, .9); animation: drift 90s linear infinite; }
.cloud.c1 { top: 70px; left: -10%; width: 112px; }
.cloud.c2 { top: 150px; left: 40%; width: 84px; animation-duration: 120s; animation-delay: -50s; }
.cloud.c3 { top: 40px; left: 75%; width: 140px; animation-duration: 140s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; } }
/* one row of grass blocks, then a dirt row fading into the dark */
.ground { height: 64px; background: url(grass.png) 0 0 / 64px 64px repeat-x; position: relative; }
.ground::after { content: ""; position: absolute; left: 0; right: 0; top: 64px; height: 64px;
  background: linear-gradient(rgba(10, 8, 6, .2), rgba(10, 8, 6, .78)), url(dirt.png) 0 0 / 64px 64px repeat-x; }
.ground + * { margin-top: 64px; }

/* header */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 700; font-size: 1.15rem;
  text-shadow: var(--shadow); }
.brand img { width: 40px; height: 40px; border: 2px solid #000; }
.brand:hover { color: var(--yellow); }
.top nav { display: flex; gap: 10px; }

/* the stone button */
.btn, .top nav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  font: 400 1.05rem var(--px); color: var(--white); text-shadow: var(--shadow);
  padding: 10px 18px; background: #6f6f6f; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -4px 0 #4a4a4a;
}
.top nav a { padding: 6px 14px; font-size: .98rem; }
.btn:hover, .top nav a:hover, .top nav a[aria-current] { color: var(--yellow); background: #7e88bf; box-shadow: inset 2px 2px 0 #b6bfe8, inset -2px -4px 0 #4f5785; }
.btn:active { box-shadow: inset 2px 2px 0 #4a4a4a; }
.btn:disabled { color: #a0a0a0; background: #2c2c2c; box-shadow: none; cursor: wait; }
.btn.big { font-size: 1.25rem; padding: 14px 26px; }
.btn.green { background: #3c8527; box-shadow: inset 2px 2px 0 #6ec24f, inset -2px -4px 0 #24521a; }
.btn.green:hover { background: #4ea133; box-shadow: inset 2px 2px 0 #86dc66, inset -2px -4px 0 #2d6620; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.title { position: relative; width: fit-content; margin: 0; font-weight: 700; line-height: .95; font-size: clamp(3rem, 8.5vw, 6.2rem); letter-spacing: .02em; }
/* blocky 3D logo: stacked hard shadows like the title screen */
.title span { display: block; color: var(--gold);
  text-shadow: 3px 3px 0 #b36b00, 6px 6px 0 #7a4800, 9px 9px 0 rgba(0, 0, 0, .35); }
.title span + span { color: var(--white); text-shadow: 3px 3px 0 #a8a8a8, 6px 6px 0 #6b6b6b, 9px 9px 0 rgba(0, 0, 0, .35); }
/* the yellow splash text */
.splash { position: absolute; right: -6px; bottom: -10px; color: var(--yellow); font-size: clamp(.95rem, 2vw, 1.25rem); font-weight: 700;
  text-shadow: 2px 2px 0 #3f3f00; transform: rotate(-16deg); animation: splash .55s ease-in-out infinite alternate; white-space: nowrap; }
@keyframes splash { to { transform: rotate(-16deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .splash { animation: none; } }
.lede { max-width: 32ch; font-size: 1.3rem; line-height: 1.45; margin: 34px 0 26px; text-shadow: var(--shadow); }

/* the multiplayer server-list entry */
.entry { display: grid; grid-template-columns: 72px 1fr; gap: 10px; width: 100%; max-width: 520px; padding: 6px; text-align: left; cursor: pointer;
  font: inherit; color: var(--white); background: rgba(0, 0, 0, .55); border: 2px solid transparent; }
.entry:hover, .entry:focus-visible { border-color: var(--gray); outline: none; }
.entry img { width: 72px; height: 72px; }
.entry .row { display: flex; justify-content: space-between; gap: 10px; }
.entry .name { text-shadow: var(--shadow); }
.entry .count { color: var(--gray); display: flex; align-items: center; gap: 8px; }
.motd { margin: 2px 0 0; font-size: .98rem; line-height: 1.3; text-shadow: var(--shadow); text-align: center; }
.motd b { font-weight: 700; }
.c-gold { color: var(--gold); } .c-white { color: var(--white); } .c-gray { color: var(--dark-gray); }
.c-green { color: var(--green); } .c-yellow { color: var(--yellow); }
/* ping bars */
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.bars i { width: 3px; background: var(--dark-gray); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 7px; } .bars i:nth-child(3) { height: 10px; }
.bars i:nth-child(4) { height: 13px; } .bars i:nth-child(5) { height: 16px; }
.bars.on i { background: var(--green); }
.ip-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.status { margin: 0; color: var(--white); text-shadow: var(--shadow); }

/* the kebab as a painting on the wall */
.painting { justify-self: center; width: min(340px, 72vw); padding: 14px; background: #6b4a2b;
  border: 3px solid #2f1f10; box-shadow: inset 3px 3px 0 #9c7146, inset -3px -3px 0 #4a321b, 8px 8px 0 rgba(0, 0, 0, .25); }
.painting img { display: block; width: 100%; height: auto; border: 3px solid #2f1f10; }

/* ---------- sections underground ---------- */
section { padding: 52px 0; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1; margin: 0 0 8px; color: var(--white); text-shadow: 3px 3px 0 #3f3f3f; }
.sub { margin: 0 0 28px; color: var(--gray); max-width: var(--measure); text-shadow: var(--shadow); }

/* item tooltips: one per feature */
.tooltips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tip { padding: 14px 16px; background: rgba(16, 0, 16, .94); border: 3px solid #100010;
  box-shadow: inset 0 0 0 2px #3a1d8c, inset 0 -4px 0 2px #22104f; text-shadow: var(--shadow); }
.tip h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--aqua); }
.tip p { margin: 0; color: var(--gray); font-size: 1rem; line-height: 1.4; }
.tip .cmd { margin-top: 10px; color: var(--dark-gray); }
.tip .cmd code { color: var(--yellow); }
.tip:nth-child(3n+2) h3 { color: var(--gold); }
.tip:nth-child(3n+3) h3 { color: var(--green); }

/* a GUI panel (inventory grey) */
.gui { max-width: 680px; padding: 18px 20px 20px; background: var(--gui); color: var(--gui-text); border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555; }
.gui h2 { color: var(--gui-text); text-shadow: none; font-size: 1.5rem; margin-bottom: 4px; }
.gui .gui-sub { margin: 0 0 16px; }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; }
.steps li::before { content: counter(step); display: grid; place-items: end; width: 56px; height: 56px; padding: 4px 8px;
  background: var(--slot); border: 0; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff;
  color: var(--white); font-size: 1.4rem; font-weight: 700; text-shadow: var(--shadow); }
.steps strong { color: #000; }
.steps code { color: #2a2ab0; }

/* the rules: a written book page */
.book { position: relative; max-width: 560px; padding: 34px 34px 30px; background: #e7dbb1; color: #2b2b2b;
  border: 3px solid #3b2a14; box-shadow: inset 4px 0 0 #c9b98a, 8px 8px 0 rgba(0, 0, 0, .3); }
.book .page { position: absolute; top: 12px; right: 18px; font-size: .9rem; color: #5a4a2a; }
.book h2 { color: #000; text-shadow: none; font-size: 1.6rem; text-align: center; margin-bottom: 14px; }
.book ol { margin: 0; padding-left: 1.4em; }
.book li { margin: 0 0 8px; }
.book li::marker { color: #8a1c1c; font-weight: 700; }
.book .sig { margin: 18px 0 0; text-align: right; color: #5a4a2a; font-style: italic; }
.cta { margin-top: 30px; }

/* the advancement toast */
.toast { position: fixed; top: 16px; right: 16px; z-index: 10; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  width: min(320px, calc(100vw - 32px)); padding: 10px 14px; background: #212121; border: 3px solid #000;
  box-shadow: inset 0 0 0 2px #555, 6px 6px 0 rgba(0, 0, 0, .35); transform: translateX(120%); transition: transform .35s steps(6); }
.toast.show { transform: none; }
.toast img { width: 40px; height: 40px; }
.toast b { display: block; color: var(--yellow); font-weight: 400; text-shadow: var(--shadow); }
.toast span { color: var(--white); text-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* bedrock: the bottom of the world */
footer { margin-top: 48px; padding: 30px 0 38px; color: var(--gray); font-size: .95rem; text-shadow: var(--shadow);
  background: linear-gradient(rgba(0, 0, 0, .55), rgba(0, 0, 0, .55)), url(bedrock.png) 0 0 / 64px 64px; border-top: 3px solid #000; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- store ---------- */
.notice { max-width: var(--measure); margin: 0 0 26px; padding: 12px 16px; color: var(--yellow); text-shadow: var(--shadow);
  background: rgba(0, 0, 0, .6); border: 3px solid var(--gold); }
.who { display: grid; gap: 8px; max-width: 420px; margin: 0 0 30px; }
.who label { color: var(--white); text-shadow: var(--shadow); }
/* the vanilla text field */
.who input { font: 400 1.2rem var(--px); padding: 12px 14px; color: var(--white); background: #000; border: 2px solid #a0a0a0; border-radius: 0; }
.who input::placeholder { color: var(--dark-gray); }
.who input:focus { border-color: var(--white); outline: none; }
.who .hint { margin: 0; color: var(--gray); font-size: .95rem; text-shadow: var(--shadow); }
.orders { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; align-items: start; }
.order { position: relative; padding: 18px 20px 20px; background: rgba(16, 0, 16, .95); border: 3px solid #100010;
  box-shadow: inset 0 0 0 2px #3a1d8c, inset 0 -4px 0 2px #22104f; text-shadow: var(--shadow); }
/* the featured rank is enchanted: it glints */
.order.featured { box-shadow: inset 0 0 0 2px #a14cff, inset 0 -4px 0 2px #5a1fa3, 0 0 0 3px #a14cff55; overflow: hidden; }
.order.featured::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(190, 120, 255, .22) 45%, transparent 55%) 0 0 / 300% 100%;
  animation: glint 3.5s linear infinite; }
@keyframes glint { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .order.featured::after { animation: none; } }
.order h3 { margin: 0; font-size: 1.9rem; font-weight: 700; color: var(--rank); }
.price { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 14px; }
.price b { font-size: 1.6rem; color: var(--gold); }
.price span { color: var(--gray); }
/* perks read like attribute lines: blue "+" */
.order ul { list-style: none; margin: 0 0 20px; padding: 0; }
.order li { margin-bottom: 6px; color: #8c8cff; padding-left: 1.2em; text-indent: -1.2em; }
.order li::before { content: "+ "; }
.order .btn { position: relative; z-index: 1; width: 100%; }
.msg { min-height: 1.6em; margin: 18px 0 0; text-shadow: var(--shadow); }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }
.receipt { max-width: var(--measure); margin: 0 0 28px; padding: 16px 20px; background: rgba(0, 0, 0, .65); border: 3px solid var(--green);
  text-shadow: var(--shadow); }
.receipt h2 { font-size: 1.5rem; color: var(--green); }
.receipt p { margin: 0; }
.store-hero { padding: 28px 0 44px; }
.store-hero .title { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.store-hero .lede { margin-top: 26px; max-width: 46ch; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 20px 0 48px; }
  .painting { width: 200px; justify-self: start; order: -1; padding: 10px; }
  .top { flex-wrap: wrap; }
  .top nav { gap: 8px; }
  .entry { grid-template-columns: 52px 1fr; }
  .entry img { width: 52px; height: 52px; }
  .motd { font-size: .85rem; text-align: left; }
  .splash { right: 0; }
  .book { padding: 30px 20px 24px; }
}
