/* Ninky Games – site styles (v2: display unit colours)
   Colours are taken from the Vegan Vampires display unit. Change them here and every page follows.
   Previous teal theme kept in style-v1-teal.css for comparison. */

@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("../fonts/comic-neue-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --pink: #ed137e;        /* display unit background */
  --pink-soft: #fde8f2;
  --wine: #6e0216;        /* title outline */
  --red: #ce203e;         /* cape */
  --plum: #382139;        /* suit */
  --teal: #1cb8b7;        /* display unit border */
  --teal-soft: #e2f6f6;
  --slate: #2d424d;       /* Ninky Games logo text */
  --paper: #fffbfd;
  --ink: #2d424d;
  --radius: 16px;
  --max: 1120px;
  --heading: "Comic Neue", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  --body: "Comic Neue", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--heading); line-height: 1.15; margin: 0 0 .5em; color: var(--plum); }
h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--cream { background: var(--pink-soft); }
.section--teal { background: var(--teal-soft); border-top: 8px solid var(--teal); }
.section--deep { background: var(--plum); color: #fff; }
.section--deep h2, .section--deep h3 { color: #fff; }
.lead { font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--red); }
.btn--ghost { border-color: var(--wine); color: var(--wine); background: transparent; }
.btn--light { background: #fff; color: var(--wine); }
.hero .btn--ghost { border-color: #fff; color: #fff; }
.hero .btn--primary { background: #fff; color: var(--wine); }
.hero .btn--primary:hover { background: var(--pink-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header { background: #fff; border-bottom: 4px solid var(--teal); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--slate); }
.brand img { width: 52px; }
.brand span { font-family: var(--heading); font-weight: 700; font-size: 1.5rem; }
.nav-toggle { display: none; }
.nav-label { display: none; cursor: pointer; font-weight: 700; padding: 8px 12px; border: 2px solid var(--wine); border-radius: 999px; color: var(--wine); }
.site-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.site-nav a:hover { color: var(--pink); }
.site-nav a[aria-current="page"] { color: var(--wine); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 6px; }
@media (max-width: 760px) {
  .nav-label { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 4px solid var(--teal); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .site-nav a { display: block; padding: 10px 0; }
  .nav-toggle:checked ~ .site-nav { display: block; }
}

/* Hero */
.hero { background: var(--pink); color: #fff; padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); border-bottom: 8px solid var(--teal); overflow: hidden; }
.hero h1 { color: #fff; }
.title-svg { width: 100%; max-width: 440px; margin: 0 0 12px -6px; filter: drop-shadow(0 3px 0 rgba(0,0,0,.12)); }
.tagline-svg { width: 100%; max-width: 400px; margin: 0 0 18px; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 5fr 7fr; } }
.hero p.lead { color: #fff; font-weight: 700; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 24px; }
.hero .credit { font-weight: 700; margin: -8px 0 22px; }
.facts li { background: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: 1rem; color: var(--wine); }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--plum); box-shadow: 0 18px 40px rgba(56,33,57,.45); border: 6px solid #fff; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video img { filter: blur(3px); transform: scale(1.04); }
.video__soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(56,33,57,.8); color: #fff; text-align: center; padding: 16px; }
.video__play { width: 76px; height: 76px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.video__play::after { content: ""; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.video__soon strong { font-family: var(--heading); font-size: 1.5rem; }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 32px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border-radius: var(--radius); padding: 24px; border: 3px solid var(--teal); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; font-size: 1.2rem; margin: 0 auto 12px; }
.step p { margin: 0; }

/* Cards */
.cards { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.cards--3 { grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .cards--3 { gap: 24px; } }
@media (max-width: 639px) { .cards--3 .card p { font-size: .85rem; } .cards--3 .card h3 { font-size: .95rem; } }
.card figure { margin: 0; }
.card img { border-radius: 12px; box-shadow: 0 10px 24px rgba(30,43,40,.18); transition: transform .2s; }
.card:hover img { transform: rotate(-2deg) translateY(-4px); }
.card h3 { margin-top: 16px; }
.card p { font-size: .98rem; margin: 0; }
.section--deep .card p { color: #f1e6f0; }

/* Buy */
.buy { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 860px) { .buy { grid-template-columns: repeat(3, 1fr); } }
.buy__box { background: #fff; border-radius: var(--radius); padding: 24px; border: 3px solid var(--teal); display: flex; flex-direction: column; }
.buy__box p { flex: 1; }
.tag { align-self: center; display: inline-block; background: var(--pink); color: #fff; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* Signup */
.signup { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .signup { grid-template-columns: 1fr 1fr; } }
.signup__ninky { max-width: 300px; margin: 0 auto; }
form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 700; margin-bottom: 4px; }
form input[type="text"], form input[type="email"] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--slate); background: #fff; }
form input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hidden { display: none; }

/* Other products */
.more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* Footer */
.site-footer { background: #fff; color: var(--slate); padding: 40px 0; font-size: 1rem; border-top: 8px solid var(--teal); }
.site-footer h3 { color: var(--plum) !important; }
.footer-logo { width: 150px; margin-bottom: 8px; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: var(--wine); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }

.small { font-size: .85rem; opacity: .85; }

/* Game page */
.hero__box { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(29,59,53,.35); }
.hero__char { max-height: 520px; width: auto; margin: 0 auto -40px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.25)); }
.rules { max-width: 780px; }
.rules h2 { margin-top: 1.6em; }
.rules h3 { margin-top: 1.2em; }
.rules ul, .rules ol { padding-left: 1.3em; }
.rules li p { margin: 0 0 .4em; }
.toc { background: var(--pink-soft); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 24px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
@media (max-width: 520px) { .toc ul { columns: 1; } }
.table-wrap { overflow-x: auto; }
.rules table { border-collapse: collapse; width: 100%; max-width: 420px; margin: 8px 0 16px; }
.rules th, .rules td { border: 1px solid #e8c9d8; padding: 6px 12px; text-align: center; }
.rules th { background: var(--plum); color: #fff; }

/* Inner pages */
.hero--page { padding: clamp(32px, 5vw, 56px) 0; }
.hero--page .lead { margin-bottom: 0; }
.narrow { max-width: 760px; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 820px) { .split { grid-template-columns: 2fr 3fr; } .split--reverse .split__img { order: 2; } }
.split__img { max-width: 320px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
form select, form textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--slate); background: #fff; }
form textarea { resize: vertical; }
form select:focus, form textarea:focus { outline: 3px solid var(--pink); outline-offset: 1px; }

/* Game page v2 */
.title-h1 { margin: 0; line-height: 0; }
.steps--detail .step { text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-content: start; }
.steps--detail .step::before { margin: 0; }
.steps--detail .step h3 { margin: 0; align-self: center; }
.steps--detail .step > p, .steps--detail .step > ul { grid-column: 1 / -1; }
.step__sub { margin: 14px 0 10px !important; }
.steps--detail ul { margin: 0; padding-left: 1.2em; }
.steps--detail li { margin-bottom: 6px; }
.section--tight-top { padding-top: 8px; }
.rules--head { max-width: 780px; }
.rules--head .toc { text-align: left; }
.rules__title { font-size: clamp(2rem, 5vw, 3rem); }
.box-sub { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .4em; }
.section--deep .box-sub { color: #fff; }
.rules table.score-table { max-width: 100%; }
.score-table td.rule, .score-table td.how { text-align: left; font-size: .95rem; }
.section--tight-bottom { padding-bottom: 16px; }
@media (max-width: 640px) {
  .rules table.score-table { min-width: 560px; font-size: .9rem; }
  .hero__char { max-height: 300px; margin-bottom: -20px; }
}
