/* workforce-skip: generated CSS code, not prose */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  background: black;
  color: white;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: black;
  border-bottom: 3px solid red;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 100;
}

.nav__logo {
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
  color: white;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__logo--red {
  color: red;
}

.nav__tabs {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav__tab {
  display: block;
  padding: 0 1.2rem;
  line-height: var(--nav-h);
  color: silver;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}

.nav__tab:hover { color: white; }
.nav__tab.active { color: red; border-bottom-color: red; }

.nav__hamburger {
  display: none;
  background: none;
  border: 2px solid white;
  color: white;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MAIN ── */
main {
  padding-top: var(--nav-h);
}

.page {
  display: none;
  min-height: calc(100vh - var(--nav-h));
}

.page.active { display: block; }

/* ── HOME ── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: 'D';
  position: absolute;
  right: -0.1em;
  top: 50%;
  transform: translateY(-50%);
  font-size: 55vw;
  font-weight: 900;
  color: maroon;
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__tag {
  background: red;
  color: black;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: red;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: silver;
  max-width: 40ch;
  line-height: 1.5;
  margin-bottom: 2.5rem;
  border-left: 3px solid red;
  padding-left: 1rem;
}

.hero__cta {
  display: inline-block;
  background: red;
  color: black;
  padding: 0.8rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
}

.hero__cta:hover { background: white; color: black; }

.about {
  padding: 4rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 2rem;
}

.about__item {
  background: maroon;
  padding: 1.5rem;
  border-top: 3px solid red;
}

.about__item h3 {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: silver;
  margin-bottom: 0.5rem;
}

.about__item p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: white;
}

/* ── SECTION HEADER ── */
.section {
  padding: 3rem;
}

.section__header {
  margin-bottom: 2.5rem;
  border-bottom: 2px solid red;
  padding-bottom: 1rem;
}

.section__label {
  font-size: 0.7rem;
  color: red;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* ── GAMES ── */
.games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}

.game-card {
  background: maroon;
  border-top: 4px solid red;
  padding: 2rem;
  position: relative;
}

.game-card--soon {
  background: navy;
  border-top-color: blue;
  opacity: 0.85;
}

.game-card__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  margin-bottom: 1rem;
  background: red;
  color: black;
}

.game-card--soon .game-card__badge {
  background: blue;
  color: white;
}

.game-card__title {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.game-card__sub {
  font-size: 0.8rem;
  color: silver;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.game-card__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 1.5rem;
}

.game-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.game-card__features li {
  font-size: 0.85rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid maroon;
  color: silver;
}

.game-card__features li::before {
  content: '▸ ';
  color: red;
}

.game-card--soon .game-card__features li::before {
  color: cyan;
}

.game-card__img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 16px;
  border-radius: 4px;
}
.game-card__img--box {
  max-height: 160px;
  object-fit: contain;
  background: black;
  margin-top: 12px;
  margin-bottom: 12px;
}
.game-card__price {
  font-size: 1.1rem;
  font-weight: 900;
  color: yellow;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid red;
  background: transparent;
  color: red;
  transition: background 0.15s, color 0.15s;
}

.btn:hover { background: red; color: black; }
.btn--solid { background: red; color: black; }
.btn--solid:hover { background: white; border-color: white; }
.btn--blue { border-color: blue; color: blue; }
.btn--blue:hover { background: blue; color: white; }

/* ── IDEAS ── */
.ideas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
}

.idea-card {
  background: navy;
  border-top: 3px solid blue;
  padding: 1.5rem;
}

.idea-card__game {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: cyan;
  margin-bottom: 0.5rem;
}

.idea-card__title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: white;
}

.idea-card__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: silver;
}

.idea-card__tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.65rem;
  background: teal;
  color: white;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── DICE ── */
.dice-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem;
  gap: 2rem;
}

.dice-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.dice-toggle {
  display: flex;
  gap: 2px;
}

.dice-toggle__btn {
  padding: 0.5rem 1.2rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  background: black;
  color: silver;
  border: 2px solid silver;
  transition: all 0.15s;
}

.dice-toggle__btn.active {
  background: red;
  color: black;
  border-color: red;
}

.dice-arena {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  flex-wrap: wrap;
}

/* # inline-edit-ok: 3D die CSS rewrite — surgical block replacement */
.die-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  perspective: 600px;
  perspective-origin: 50% 40%;
}

.die {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(25deg);
  cursor: pointer;
  transition: transform 0.12s ease-out;
}

.die:hover {
  transform: rotateX(-22deg) rotateY(28deg) scale(1.07);
}

.die.rolling {
  animation: dieRoll 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes dieRoll {
  0%   { transform: rotateX(-20deg)  rotateY(25deg); }
  20%  { transform: rotateX(120deg)  rotateY(85deg); }
  40%  { transform: rotateX(-60deg)  rotateY(200deg); }
  60%  { transform: rotateX(200deg)  rotateY(120deg); }
  80%  { transform: rotateX(80deg)   rotateY(320deg); }
  100% { transform: rotateX(-20deg)  rotateY(25deg); }
}

.die__face {
  position: absolute;
  width: 120px;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 14px;
  gap: 2px;
  border-radius: 12px;
  border: 2px solid black;
  box-sizing: border-box;
}

.die__face--front {
  transform: translateZ(60px);
  background: white;
  box-shadow: inset 0 0 10px silver;
}

.die__face--top {
  transform: rotateX(90deg) translateZ(60px);
  background: silver;
}

.die__face--right {
  transform: rotateY(90deg) translateZ(60px);
  background: silver;
}

.die__face--back   { transform: rotateY(180deg) translateZ(60px);  background: gray; }
.die__face--left   { transform: rotateY(-90deg) translateZ(60px);  background: gray; }
.die__face--bottom { transform: rotateX(-90deg) translateZ(60px);  background: gray; }

.dot {
  width: 18px;
  height: 18px;
  background: black;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
  box-shadow: inset 1px 1px 2px gray;
}

.dot--hidden { visibility: hidden; }

.die-display {
  width: 80px;
  height: 80px;
  background: white;
  border: 2px solid black;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 8px;
  gap: 2px;
  box-shadow: 4px 4px 0 gray, 8px 8px 0 silver;
}

.die-display .dot {
  width: 14px;
  height: 14px;
}

.die-hint {
  font-size: 0.7rem;
  color: gray;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.dice-result {
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.dice-result__sum {
  font-size: 3.5rem;
  font-weight: 900;
  color: red;
  line-height: 1;
}

.dice-result__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: silver;
}

.dice-result__individual {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.dice-result__individual span {
  font-size: 1.2rem;
  font-weight: 700;
  color: yellow;
}

.dice-result__displays {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.dice-result__display-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dice-result__display-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: gray;
  text-transform: uppercase;
}

.roll-btn {
  padding: 0.8rem 2.5rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  background: red;
  color: black;
  border: none;
  transition: background 0.15s;
}

.roll-btn:hover { background: white; }
.roll-btn:disabled { background: gray; cursor: not-allowed; }

/* ── FOOTER ── */
footer {
  background: black;
  border-top: 3px solid maroon;
  padding: 2rem 3rem;
  text-align: center;
  color: gray;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

footer strong { color: red; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav__tabs { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: black; border-bottom: 2px solid red; }
  .nav__tabs.open { display: flex; }
  .nav__tab { line-height: 1; padding: 1rem 1.5rem; border-bottom: 1px solid maroon; }
  .nav__tab.active { border-bottom-color: maroon; }
  .nav__hamburger { display: flex; }
  .hero { padding: 2rem 1.5rem; }
  .about__grid { grid-template-columns: 1fr; }
  .section { padding: 2rem 1.5rem; }
  .dice-page { padding: 2rem 1rem; }
}
