/* Tears of Destiny website: the game's start screen carried onto the page (near-black stone,
   warm torchlight, the carved title, stone buttons with pale-blue Georgia capitals). */
:root {
  --bg: #050507; --bg2: #0c0a0d; --ink: #e8d7b8; --ink2: #b9ab90; --dim: #8d8170; --gold: #ffd36a; --ice: #cfe3ff;
  --line: rgba(236, 206, 150, 0.22); --panel: rgba(10, 8, 12, 0.78);
  --serif: Georgia, 'Times New Roman', serif; --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:focus-visible, .stone:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

/* Hero: the title screen. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 62%, rgba(70, 44, 20, 0.45), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 0%, #0b0b10, var(--bg) 70%); }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.heroIn { position: relative; z-index: 1; width: min(1100px, 100% - 32px); text-align: center; padding: 64px 0 22vh; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(1000px, 100%); margin: 0 auto; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.9)); }
.tag { margin: 18px 0 26px; font-size: clamp(16px, 2.2vw, 20px); color: var(--ink2); letter-spacing: 0.02em; }
.btns { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gpuNote { margin: 22px auto 0; max-width: 520px; font: 13.5px/1.5 var(--sans); color: var(--dim); }
.gpuNote.warn { color: #f2b07a; }
.ledge { position: absolute; left: 0; right: 0; bottom: 0; height: 14vh; min-height: 70px; z-index: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0) 0, rgba(5, 5, 7, 0.0) 60%, var(--bg) 100%),
    repeating-linear-gradient(90deg, transparent 0 119px, #000 119px 121px),
    repeating-linear-gradient(180deg, #17130f 0 24px, #000 24px 26px);
  border-top: 2px solid #1d1813; }

/* Stone buttons: the menu's carved slabs. */
.stone { display: inline-grid; place-items: center; width: min(300px, 100%); min-height: 46px; padding: 10px 20px; border-radius: 4px;
  font: 700 15px/1.2 var(--serif); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; color: var(--ice);
  text-shadow: 0 0 8px rgba(120, 170, 255, 0.45), 0 2px 2px #000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.35)), url(stone.png) center / 256px, #5a5550;
  border: 1px solid #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: filter 0.15s, transform 0.15s, box-shadow 0.15s; }
.stone:hover { filter: brightness(1.18); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(150, 190, 255, 0.5), 0 6px 16px rgba(0, 0, 0, 0.8); }
.stone:active { transform: translateY(1px); }
.stone.primary { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(120, 170, 255, 0.55), 0 0 22px rgba(90, 150, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.7); }
.stone.soon { color: #9a948a; text-shadow: 0 2px 2px #000; filter: saturate(0.5) brightness(0.8); cursor: default; }
.stone.soon small { display: block; font: 600 10px var(--sans); letter-spacing: 0.12em; color: #8a8070; margin-top: 2px; }

/* Bands. */
.band { padding: clamp(56px, 9vw, 110px) 0; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.band.dark { background: var(--bg2); }
.kicker { margin: 0 0 6px; font: 700 12px var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: #9fc6ff; }
h2 { margin: 0 0 18px; font: 700 clamp(28px, 4.2vw, 44px)/1.15 var(--serif); color: #f4e3c0; letter-spacing: 0.01em; text-wrap: balance; }
.band p { color: #d7c7a8; max-width: 62ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* The in-game FLUID TEARS panel. */
.panel { background: var(--panel); border: 1px solid rgba(200, 190, 170, 0.28); border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.fluid { padding: 16px 18px 12px; font: 14px/1.3 var(--sans); }
.fluid h3 { margin: 0 0 12px; font: 600 13px var(--serif); letter-spacing: 0.14em; color: #e8d7b8; }
.stat { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-bottom: 10px; }
.stat span { color: #cfc5ae; }
.stat b { font-weight: 600; color: #f4ead2; font-size: 12.5px; }
.stat i { grid-column: 1 / 3; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.stat i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: linear-gradient(90deg, #4aa7d8, #9de0ff); }
.stat i.hot::after { background: linear-gradient(90deg, #d8704a, #ffc07a); }

/* Gallery. */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.gallery figure { margin: 0; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.4s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 9px 12px 10px; font: 600 13px var(--serif); letter-spacing: 0.04em; color: var(--ink2); }

/* Feature plaques: leather-backed stone. */
.plaques { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.plaque { position: relative; padding: 20px 20px 18px; border-radius: 10px; border: 1px solid rgba(0, 0, 0, 0.8);
  background: linear-gradient(180deg, rgba(30, 20, 10, 0.55), rgba(8, 6, 4, 0.85)), url(leather.png) center / 220px, #3a2a1a;
  box-shadow: inset 0 0 0 1px rgba(236, 206, 150, 0.12), 0 10px 24px rgba(0, 0, 0, 0.55); }
.plaque b { display: block; font: 700 40px/1 var(--serif); color: var(--gold); text-shadow: 0 2px 6px #000; }
.plaque h3 { margin: 8px 0 6px; font: 700 14px var(--serif); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); }
.plaque p { margin: 0; font-size: 15px; line-height: 1.5; color: #d9c9aa; }

/* Demo vs full. */
.compare { width: 100%; border-collapse: collapse; margin: 22px 0 30px; font: 15px/1.4 var(--sans); }
.compare th, .compare td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 700 12px var(--serif); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.compare tbody th { font: 600 14px var(--serif); color: #f4e3c0; width: 22%; }
.compare td { color: #cdbd9e; }
.compare td:last-child { color: #f0e2c4; }
.controls { margin: 18px auto 0; text-align: center; font: 13.5px/1.55 var(--sans); color: var(--dim) !important; }

.foot { padding: 30px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); font: 13.5px var(--sans); color: var(--dim); text-align: center; }
.foot a { color: var(--ink2); }

/* Text pages (privacy, 404). */
.doc { width: min(760px, 100% - 32px); margin: 0 auto; padding: 48px 0 70px; }
.doc .logo { display: block; width: min(420px, 100%); margin: 0 0 30px; }
.doc h1 { font: 700 clamp(28px, 5vw, 40px)/1.2 var(--serif); color: #f4e3c0; margin: 0 0 6px; }
.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p, .doc li { color: #d7c7a8; }
.doc .meta { font: 14px var(--sans); color: var(--dim); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .gallery, .plaques { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .gallery, .plaques { grid-template-columns: 1fr; }
  .heroIn { padding-bottom: 18vh; }
  .compare th, .compare td { padding: 9px 6px; font-size: 13.5px; }
  .compare tbody th { width: 26%; }
}
