@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #070b1f;
  --deep: #0e1638;
  --panel: #18214a;
  --text: #f3ebdd;
  --muted: #9aa6c8;
  --amber: #ffc46b;
  --teal: #4fd1c5;
  --stroke: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: linear-gradient(180deg, #050817 0%, #0e1638 45%, #2b1f52 100%) fixed;
  min-height: 100vh;
}
a { color: var(--amber); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

header.site {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
header.site .brand { font-family: "Cinzel", serif; font-weight: 700; letter-spacing: 2px; color: var(--text); text-decoration: none; font-size: 20px; }
header.site nav a { color: var(--muted); text-decoration: none; margin-left: 22px; font-weight: 700; font-size: 15px; }
header.site nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: "Cinzel", serif; font-weight: 700; line-height: 1.2; letter-spacing: 0.5px; }
h1 { font-size: clamp(34px, 6vw, 58px); margin: 0 0 8px; }
h2 { font-size: 28px; margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 28px 0 6px; }

.hero {
  position: relative; border-radius: 28px; overflow: hidden; margin-top: 8px;
  border: 1px solid rgba(255, 213, 138, 0.25);
  min-height: 420px; display: flex; align-items: flex-end;
  background: url("assets/dawn.webp") center / cover;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,11,31,0.05) 30%, rgba(7,11,31,0.92) 100%); }
.hero .content { position: relative; z-index: 1; padding: 36px; display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.tagline { color: var(--amber); font-size: 20px; margin: 0; }

.badge {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #ffd58a, #e59a3c); color: #2a1a08; font-weight: 800; text-decoration: none;
}
.badge.soon { background: var(--panel); color: var(--muted); border: 1px solid var(--stroke); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.shots img { border-radius: 18px; border: 1px solid var(--stroke); }
@media (max-width: 720px) { .shots { grid-template-columns: 1fr 1fr; } .shots img:last-child { display: none; } }

.isles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 18px 0; }
@media (max-width: 720px) { .isles { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: rgba(24, 33, 74, 0.75); border: 1px solid var(--stroke); border-radius: 22px; padding: 26px; margin: 18px 0;
}
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .games { grid-template-columns: 1fr; } }
.games .card h3 { margin-top: 0; }
.muted { color: var(--muted); }

.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: #e6dccb; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--stroke); vertical-align: top; }

/* Studio landing */
.hero.studio { min-height: 360px; }
.hero.studio h1 { max-width: 640px; }
.eyebrow { color: var(--amber); text-transform: uppercase; letter-spacing: 3px; font-weight: 800; font-size: 13px; margin: 0 0 8px; }

.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .game-grid { grid-template-columns: 1fr; } }
.game-card { display: flex; flex-direction: column; height: 100%; border-radius: 26px; overflow: hidden; text-decoration: none; border: 1px solid var(--stroke); transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.game-card .art { flex: none; height: 300px; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; padding-top: 26px; }
.game-card .art img { width: 62%; height: 274px; object-fit: cover; object-position: top center; border-radius: 16px 16px 0 0; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.game-card .info { display: flex; gap: 16px; padding: 22px; align-items: flex-start; flex: 1; }
.game-card h3 { margin: 0 0 4px; }
.game-card p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.game-card .more { font-weight: 800; font-size: 15px; }
.game-card.isles { margin: 0; gap: 0; background: linear-gradient(180deg, #2b1f52, #121938); color: var(--text); }
.game-card.isles .art { background: url("assets/dawn.webp") center / cover; }
.game-card.isles p { color: var(--muted); }
.game-card.isles .more { color: var(--amber); }
.game-card.pocket { background: #f4efe3; color: #1f3a2c; }
.game-card.pocket .art { background: linear-gradient(180deg, #e9e2cf, #f4efe3); }
.game-card.pocket h3 { color: #173226; }
.game-card.pocket p { color: #4d5f53; }
.game-card.pocket .more { color: #2f6b4f; }
.mini-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }

.other-game { display: flex; gap: 18px; align-items: center; margin-top: 40px; }
.other-game h3 { margin: 0 0 4px; }
.other-game p { margin: 0 0 6px; }

/* Pocket Deduction page: its own calm cream and forest palette */
body.theme-pocket { background: #f4efe3; color: #1f3a2c; }
body.theme-pocket a { color: #2f6b4f; }
body.theme-pocket h1, body.theme-pocket h2, body.theme-pocket h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; color: #173226; letter-spacing: 0; }
body.theme-pocket header.site .brand { color: #173226; }
body.theme-pocket header.site nav a { color: #4d5f53; }
body.theme-pocket .card { background: #fbf8f0; border-color: rgba(23, 50, 38, .12); }
body.theme-pocket .card p, body.theme-pocket .muted { color: #4d5f53; }
body.theme-pocket .card h3 { font-size: 21px; }
body.theme-pocket footer.site { border-color: rgba(23, 50, 38, .15); color: #4d5f53; }
body.theme-pocket footer.site a { color: #4d5f53; }
body.theme-pocket .badge.soon { background: #e6dfcc; color: #2f4a3b; border-color: rgba(23, 50, 38, .15); }
.pd-hero { text-align: center; padding: 40px 0 10px; }
.pd-icon { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 28px; box-shadow: 0 10px 28px rgba(23, 50, 38, .16); }
.pd-hero h1 { margin-bottom: 4px; }
.pd-tagline { font-family: Georgia, serif; font-size: 22px; color: #4d5f53; margin: 0; }
.pd-story { margin: 28px auto 0; }
.shots.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .shots.four { grid-template-columns: 1fr 1fr; } .shots.four img:last-child { display: block; } }
body.theme-pocket .shots img { border-color: rgba(23, 50, 38, .15); box-shadow: 0 10px 26px rgba(23, 50, 38, .12); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }
.features .card { margin: 0; }
.features h3 { margin-top: 0; }
.features p { margin: 0; font-size: 15px; }

/* Unfinished details that must be filled in before publishing. */
mark.todo { background: #ffe45c; color: #2a1a08; padding: 0 4px; border-radius: 4px; font-weight: 700; }

footer.site { margin: 64px 0 28px; padding-top: 22px; border-top: 1px solid var(--stroke); color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
