/* TransilvaniaTech — site styles (plain CSS, no external resources).
   Studio pages use the default dark theme (amber accent). The Watt Merge page adds body.wm ("Neon Voltage" navy,
   cyan accent, same palette as the game). Fonts are hosted on this site (assets/fonts, SIL Open Font License). */

/* ---------- fonts (variable woff2, latin + latin-ext for ș ț ă â î) ---------- */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("fonts/spacegrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0C1018;
  --bg-alt: #0F141E;
  --line-alt: #1A2233;
  --card: #131A26;
  --card-line: #222C3D;
  --line: #2A3548;
  --text: #E8EDF5;
  --text-nav: #C3CCDA;
  --muted: #9AA6B8;
  --faint: #8592A6;
  --accent: #FFC24A;
  --accent-hover: #FFD883;
  --on-accent: #0C1018;
  --chip-line: #3A3220;
  --chip-bg: #1A1710;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --gutter: 32px;
  color-scheme: dark;
}
body.wm {
  --bg: #0B1430;
  --bg-alt: #0E1736;
  --line-alt: #1B2A58;
  --card: #131F45;
  --card-line: #22305C;
  --line: #26356A;
  --text: #E6ECFF;
  --text-nav: #C3CDEB;
  --muted: #9AA8D6;
  --faint: #8C9AC8;
  --accent: #38E1FF;
  --accent-hover: #9BEFFF;
  --on-accent: #0B1430;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* ---------- header ---------- */
.site-header .wrap {
  padding-top: 24px; padding-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px; background: #FFC24A; color: #0C1018;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 16px;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--text-nav); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

/* ---------- shared pieces ---------- */
.chip {
  display: inline-block; font-size: 13px; font-weight: 500; color: var(--accent);
  border: 1px solid var(--chip-line); background: var(--chip-bg); border-radius: 999px; padding: 6px 14px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; color: var(--text-nav); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.tag.solid { font-weight: 600; color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.tag.soft { font-weight: 600; background: var(--card-line); border-color: var(--card-line); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn {
  display: inline-block; font-weight: 600; font-size: 16px; line-height: 1.3; border-radius: 12px; padding: 14px 24px;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--text); font-weight: 500; border-color: var(--line); }
.btn.ghost:hover { border-color: var(--text-nav); color: var(--text); }
.btn.disabled { cursor: default; color: var(--muted); }
.btn.disabled:hover { border-color: var(--line); color: var(--muted); }
.section-title { font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line-alt); border-bottom: 1px solid var(--line-alt); }
.section { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 36px; }

/* level tiles (decorative merge boards) */
.tile {
  aspect-ratio: 1; border-radius: 14px; background: #0F1A3E; border: 1.5px solid var(--c, #1F2A44); color: var(--c, #1F2A44);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 20px;
}
.tile.empty { background: #0E1528; border-color: #1F2A44; }
.l1 { --c: #AAB4C8; } .l2 { --c: #D39B5B; } .l3 { --c: #4FD1C5; } .l4 { --c: #F6AD55; }
.l5 { --c: #F6E05E; } .l6 { --c: #63B3ED; } .l7 { --c: #3B9BFF; } .l8 { --c: #FF7A7A; }

/* ---------- hero ---------- */
.hero { padding-top: 56px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-art { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 520px; }
.board {
  width: 100%; max-width: 440px; background: #111827; border: 1px solid #1F2A3C; border-radius: 28px; padding: 20px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}

/* ---------- games ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head p { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.game-card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 24px; overflow: hidden;
  display: flex; flex-direction: column; color: var(--text); transition: border-color .15s ease, transform .15s ease;
}
.game-card:hover { color: var(--text); border-color: var(--line); transform: translateY(-2px); }
.game-card .media { height: 240px; border-bottom: 1px solid var(--card-line); overflow: hidden; }
.game-card .media img { width: 100%; height: 100%; object-fit: cover; }
.media.wm-art { background: #0B1430; display: flex; align-items: center; justify-content: center; gap: 14px; }
.media.wm-art .tile { width: 72px; border-radius: 18px; border-width: 2px; font-size: 26px; flex: none; }
.media.wm-art .tile.big { width: 88px; border-radius: 22px; font-size: 32px; }
.media.wm-art .op { color: #38E1FF; font-size: 28px; }
.game-card .body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.game-card h3 { font-family: var(--display); font-weight: 700; font-size: 28px; }
.game-card p { color: var(--muted); }
.game-card .more { color: var(--accent); font-weight: 500; font-size: 15px; margin-top: 4px; }

/* ---------- info cards ---------- */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.info-card { border: 1px solid var(--card-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.info-card h3 { font-size: 18px; font-weight: 600; }
.info-card p { color: var(--muted); font-size: 15px; }
.info-card svg { stroke: var(--accent); }

/* ---------- contact panel ---------- */
.contact { padding-bottom: 88px; }
.contact-panel {
  background: var(--card); border: 1px solid var(--card-line); border-radius: 28px; padding: 48px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.contact-panel > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contact-panel h2 { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -0.02em; }
.contact-panel p { color: var(--muted); }
.contact-panel .btn { overflow-wrap: anywhere; }

/* ---------- Watt Merge page ---------- */
.wm .hero { padding-top: 48px; padding-bottom: 96px; }
.wm .hero h1 { font-size: clamp(48px, 7vw, 80px); line-height: 1; color: var(--accent); }
.wm .lead { font-size: 20px; line-height: 1.55; color: var(--text-nav); }
.wm .langs { font-size: 14px; color: var(--muted); }
.wm .hero-art { flex-basis: 340px; }
.phone { width: 300px; max-width: 100%; background: #050A1C; border: 1px solid var(--line); border-radius: 44px; padding: 12px; }
.phone-screen { background: #0B1430; border-radius: 34px; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.phone .money { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.phone .money b { font-family: var(--display); font-weight: 700; font-size: 36px; color: #FFD23F; line-height: 1.2; }
.phone .money span { font-size: 13px; color: var(--text); }
.phone .money em { font-style: normal; color: #38E1FF; }
.phone .grid {
  background: #0E1736; border: 1px solid #1B2A58; border-radius: 16px; padding: 8px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
}
.phone .tile { border-radius: 10px; font-size: 15px; }
.phone .tile.empty { background: #101A3B; border-color: #26356A; }
.phone .buy { background: #FFD23F; color: #1A1400; border-radius: 14px; padding: 12px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.features li { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.features .num {
  width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 16px;
}
.features h3 { font-size: 19px; font-weight: 600; }
.features p { color: var(--muted); font-size: 15px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; border: 1px solid var(--card-line); background: var(--bg-alt); }

/* ---------- legal pages ---------- */
.prose { max-width: 820px; padding-top: 40px; padding-bottom: 88px; }
.prose h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 8px; }
.prose h2 { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 12px; scroll-margin-top: 16px; }
.prose h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: 16px; }
.prose p { margin: 0 0 14px; color: var(--text-nav); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; color: var(--text-nav); }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose code { font-size: 0.92em; background: var(--card); border: 1px solid var(--card-line); border-radius: 6px; padding: 1px 6px; }
.muted { color: var(--faint) !important; font-size: 15px; }
.toc { background: var(--card); border: 1px solid var(--card-line); border-radius: 20px; padding: 20px 24px; margin: 24px 0 8px; }
.toc ol { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--card-line); border-radius: 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--card-line); }
th { color: var(--text); font-weight: 600; background: var(--card); }
td { color: var(--text-nav); }
tr:last-child td { border-bottom: 0; }

/* ---------- 404 ---------- */
.notfound { padding-top: 88px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.notfound h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.03em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-alt); }
.site-footer .wrap {
  padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 14px; color: var(--faint);
}
.site-footer p { max-width: 760px; }
.site-footer a { color: var(--text-nav); }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header .wrap { padding-top: 16px; padding-bottom: 16px; }
  .site-nav { gap: 8px 18px; font-size: 14px; }
  .hero { padding-top: 24px; padding-bottom: 56px; gap: 40px; }
  .section { padding-top: 56px; padding-bottom: 56px; gap: 28px; }
  .section-title { font-size: 32px; }
  .lead, .wm .lead { font-size: 17px; }
  .board { padding: 14px; gap: 8px; border-radius: 22px; }
  .tile { font-size: 17px; border-radius: 11px; }
  .media.wm-art { gap: 8px; }
  .media.wm-art .tile { width: 56px; font-size: 20px; border-radius: 14px; }
  .media.wm-art .tile.big { width: 68px; font-size: 24px; border-radius: 17px; }
  .media.wm-art .op { font-size: 22px; }
  .game-card .media { height: 200px; }
  .game-card .body { padding: 20px; }
  .contact { padding-bottom: 56px; }
  .contact-panel { padding: 28px 22px; border-radius: 22px; }
  .contact-panel h2 { font-size: 28px; }
  .contact-panel .btn { width: 100%; text-align: center; font-size: 14px; padding: 14px 12px; }
  .shots { gap: 12px; }
  .shots img { border-radius: 16px; }
  .prose { padding-top: 16px; padding-bottom: 56px; }
  .prose h2 { font-size: 22px; margin-top: 36px; }
  .toc { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-card { transition: none; }
  .game-card:hover { transform: none; }
}
