/* Hungry Wolf Social Casino
   Layout: soft daylight template - moonlit slate sections, white cards, charcoal text,
   wolf-eye amber for actions, muted green for "free / yes" signals.
*/
:root {
  --sky: #eef1f5;        /* section ground: moonlit slate */
  --sky-2: #d9dfe7;      /* deeper sky for gradients / borders */
  --paper: #ffffff;      /* cards */
  --navy: #23272f;       /* charcoal: main text + dark frames */
  --slate: #5d6673;      /* secondary text */
  --line: #e2e6ec;       /* hairlines */
  --orange: #e39b17;     /* wolf-eye amber: actions */
  --on-accent: #23272f;  /* text on amber */
  --amber-ink: #a86a00;  /* amber for text on light grounds */
  --orange-2: #f7c04a;
  --meadow: #3b8a4a;     /* free / yes */
  --meadow-bg: #e5f5e6;
  --berry: #b8433a;      /* no / errors */
  --berry-bg: #fdecea;
  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(35, 39, 47, .18);
  --wrap: 1140px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--amber-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.18; text-wrap: balance; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
p { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.center { text-align: center; margin-inline: auto; justify-items: center; }
.muted { color: var(--slate); }
.eyebrow { font: 700 .74rem/1.4 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--amber-ink); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section.tint { background: linear-gradient(180deg, var(--sky), var(--paper)); }
.section.tint-rev { background: linear-gradient(180deg, var(--paper), var(--sky)); }
.stack { display: grid; gap: 1.2rem; }
.stack-lg { display: grid; gap: 2.5rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--f-display);
  padding: .95rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, var(--orange-2), var(--orange)); color: var(--on-accent); box-shadow: 0 10px 22px -10px var(--orange); }
.btn-primary:hover { color: var(--on-accent); box-shadow: 0 14px 26px -10px var(--orange); }
.btn-ghost { background: var(--paper); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); font: 700 1.1rem/1.1 var(--f-display); white-space: nowrap; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand small { display: block; font: 500 .7rem/1 var(--f-body); color: var(--slate); margin-top: 3px; }
.nav-links { display: flex; gap: 1.4rem; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { color: var(--navy); text-decoration: none; font: 500 .95rem var(--f-display); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--amber-ink); }
.nav-account { display: flex; align-items: center; gap: .6rem; }
.coin-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  background: var(--sky); border: 1px solid var(--sky-2); color: var(--navy); font: 600 .9rem/1 var(--f-display);
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.coin-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #f5a623 70%); box-shadow: inset 0 0 0 1px #d4891a; flex: none; }
.nav-toggle { display: none; margin-left: auto; background: var(--paper); border: 1px solid var(--line); color: var(--navy); border-radius: 12px; padding: .5rem .8rem; font: 600 .9rem var(--f-display); cursor: pointer; }

@media (max-width: 960px) {
  .nav { flex-wrap: wrap; gap: .75rem; padding-block: .6rem; }
  .nav-toggle { display: inline-block; }
  .nav-links, .nav-account { display: none; width: 100%; }
  .nav.open .nav-links { display: grid; gap: 0; margin: 0; }
  .nav.open .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav.open .nav-account { display: flex; flex-wrap: wrap; padding-bottom: .7rem; }
}

/* Hero */
.hero { background: radial-gradient(900px 420px at 80% 20%, #ffffff 0, transparent 70%), linear-gradient(180deg, #e3e8ef 0%, var(--sky) 60%, var(--paper) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.hero h1 em { font-style: normal; color: var(--amber-ink); display: block; }
.pill { display: inline-flex; align-self: start; justify-self: start; padding: .4rem .9rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--sky-2); font: 600 .74rem/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--navy); box-shadow: var(--shadow); }
.hero-lede { font-size: 1.15rem; color: var(--slate); max-width: 50ch; }
.hero-art { position: relative; }
.hero-art img.logo { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 30px 40px rgba(35, 39, 47, .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.page-hero { padding-block: clamp(48px, 7vw, 88px); background: linear-gradient(180deg, #e3e8ef, var(--paper)); }
.page-hero .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; }
.page-hero .wrap > * { min-width: 0; }
.page-hero .prose { margin-top: 1rem; }
.page-hero .art { max-width: 300px; justify-self: center; filter: drop-shadow(0 20px 30px rgba(35, 39, 47, .2)); }
@media (max-width: 860px) {
  .hero .wrap, .page-hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .page-hero .art { max-width: 200px; }
}
@media (prefers-reduced-motion: reduce) { .hero-art img.logo { animation: none; } html { scroll-behavior: auto; } }

/* Split intro (image + text) */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.split > * { min-width: 0; }
.split .art { max-width: 420px; margin-inline: auto; filter: drop-shadow(0 24px 30px rgba(35, 39, 47, .22)); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .art { max-width: 260px; } }

/* Feature cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .6rem; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.card.center { text-align: center; justify-items: center; }
.icon-bubble { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--orange-2); font: 800 1.15rem var(--f-display); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .97rem; }
caption { text-align: left; padding: 1rem 1.2rem .3rem; color: var(--slate); font-size: .9rem; caption-side: top; }
th, td { text-align: left; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 600 .74rem/1.3 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--slate); background: var(--sky); }
tbody tr:nth-child(even) { background: #f6f8fa; }
tbody tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font: 600 .74rem/1.6 var(--f-display); background: var(--sky); color: var(--navy); white-space: nowrap; }
.tag-yes { background: var(--meadow-bg); color: var(--meadow); }
.tag-no { background: var(--berry-bg); color: var(--berry); }

/* Game frames (dark navy frame like a console) */
.game-shell { border-radius: 24px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px -25px rgba(35, 39, 47, .55); }
.game-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; color: #fff; }
.game-bar .title { font: 700 1.05rem var(--f-display); }
.game-bar .fine { color: #b9c0ca; }
.game-stage { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; background: #16191f; }
@media (max-width: 700px) { .game-stage { aspect-ratio: 3 / 4; } }
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; background-size: cover; background-position: center; }
.game-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 25, 31, .15), rgba(22, 25, 31, .65)); }
.game-cover-inner { position: relative; display: grid; gap: .9rem; justify-items: center; }
.play-btn { width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(180deg, var(--orange-2), var(--orange)); box-shadow: 0 0 0 10px rgba(227, 155, 23, .25), 0 16px 30px -8px #000; display: grid; place-items: center; transition: transform .15s ease; }
.play-btn:hover { transform: scale(1.06); }
.play-btn svg { width: 30px; height: 30px; margin-left: 5px; }
.game-cover .label { color: #fff; font: 700 1.15rem var(--f-display); text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.cover-wolf { background-image: url("../img/hungry-wolf-logo.webp"); background-color: #3d6b2f; background-size: contain; background-repeat: no-repeat; }
.cover-soccer { background: radial-gradient(ellipse at 50% 110%, #4caf50, #2e7d32 55%, #1b5e20); }
.cover-soccer::after { content: ""; position: absolute; inset: 12% 10%; border: 3px solid rgba(255, 255, 255, .35); border-radius: 6px; pointer-events: none; }
.disclaimer-strip { display: flex; gap: .6rem; align-items: flex-start; padding: .85rem 1.1rem; font-size: .85rem; color: #cfd5dd; background: #1b1f26; }
.disclaimer-strip::before { content: "i"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: var(--on-accent); font: 700 .7rem/18px var(--f-display); text-align: center; margin-top: 2px; }
.howto { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: grid; gap: .8rem; box-shadow: var(--shadow); }
.howto-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.howto-grid img { width: 170px; }
@media (max-width: 700px) { .howto-grid { grid-template-columns: 1fr; } .howto-grid img { width: 130px; justify-self: center; } }
.fine { font-size: .85rem; color: var(--slate); }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; width: 100%; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 14px -10px rgba(35, 39, 47, .2); }
details + details { margin-top: .7rem; }
summary { cursor: pointer; padding: 1rem 1.25rem; font: 600 1rem var(--f-display); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--on-accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 1.25rem 1.1rem; color: var(--slate); }

/* Notice boxes */
.notice-box { border: 2px solid #e6d3a8; background: #fcfaf4; border-radius: 22px; padding: clamp(1.25rem, 4vw, 2.2rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.notice-box > * { min-width: 0; display: grid; gap: .7rem; align-content: start; }
@media (max-width: 860px) { .notice-box { grid-template-columns: 1fr; } }
.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; background: var(--paper); display: grid; gap: .6rem; box-shadow: var(--shadow); }
.help-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.help-list li { display: flex; flex-wrap: wrap; gap: .3rem .8rem; }

/* Coins page */
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.pack { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: .5rem; align-content: start; justify-items: start; text-align: left; color: var(--navy); font: inherit; cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.pack:hover { border-color: var(--orange); transform: translateY(-3px); }
.pack .amount { font: 800 1.8rem/1 var(--f-display); display: flex; align-items: center; gap: .5rem; }
.pack .amount .coin-dot { width: 22px; height: 22px; }
.pack .bonus { color: var(--meadow); font-weight: 700; font-size: .9rem; }
.pack .price { font: 700 1.05rem var(--f-display); color: var(--amber-ink); }
.pack .ribbon { position: absolute; top: -11px; right: 14px; background: var(--orange); color: var(--on-accent); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 1.8rem; display: grid; gap: .9rem; align-content: start; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--orange); }
.plan ul { margin: 0; padding-left: 1.1rem; color: var(--slate); display: grid; gap: .3rem; }
.plan .price { font: 800 2rem var(--f-display); }
.plan .price small { font: 500 .9rem var(--f-body); color: var(--slate); }
.balance-big { font: 800 2.5rem/1 var(--f-display); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.balance-big .coin-dot { width: 28px; height: 28px; }

/* Forms */
.form { display: grid; gap: 1rem; max-width: 560px; }
.field { display: grid; gap: .4rem; }
.field label { font: 600 .95rem var(--f-display); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; color: var(--navy); background: #f6f8fa; border: 1px solid var(--line);
  border-radius: 12px; padding: .8rem .95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--orange); background: var(--paper); outline: none; box-shadow: 0 0 0 4px rgba(227, 155, 23, .15); }
.field .hint { font-size: .85rem; color: var(--slate); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .35rem; accent-color: var(--orange); width: 18px; height: 18px; flex: none; }
.form-error { color: var(--berry); font-weight: 600; font-size: .92rem; }
.form-success { color: var(--meadow); font-weight: 600; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(35, 39, 47, .55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { position: relative; width: min(520px, 100%); background: var(--paper); border-radius: 24px; padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1rem; box-shadow: 0 40px 100px -20px rgba(35, 39, 47, .5); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.modal-close { background: var(--sky); border: 0; color: var(--navy); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-size: 1.2rem; flex: none; }
.summary-list { display: grid; gap: .45rem; margin: 0; padding: 1rem 1.1rem; background: var(--sky); border-radius: 14px; }
.summary-list div { display: flex; justify-content: space-between; gap: 1rem; }
.summary-list dt { color: var(--slate); }
.summary-list dd { margin: 0; font: 600 1rem var(--f-display); font-variant-numeric: tabular-nums; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(35, 39, 47, .6); backdrop-filter: blur(10px); }
.age-box { width: min(480px, 100%); text-align: center; display: grid; gap: 1rem; justify-items: center; background: var(--paper); border-radius: 28px; padding: clamp(1.5rem, 5vw, 2.4rem); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .45); }
.age-box img { width: 150px; margin-top: -10px; }
.age-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange); color: var(--on-accent); font: 800 1.3rem var(--f-display); box-shadow: 0 0 0 8px rgba(227, 155, 23, .18); }
body.gated { overflow: hidden; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 300; background: var(--navy); color: #fff; padding: .85rem 1.3rem; border-radius: 14px; font: 600 .95rem var(--f-display); box-shadow: 0 20px 50px -10px rgba(35, 39, 47, .5); max-width: calc(100% - 32px); }

/* Footer */
.site-footer { background: var(--navy); color: #c9ced6; padding-block: 60px 30px; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid > * { min-width: 0; }
.footer-grid p { color: #aeb5bf; }
.footer-grid ul { list-style: none; padding: 0; margin: .9rem 0 0; display: grid; gap: .5rem; }
.footer-grid a { color: #c9ced6; text-decoration: none; }
.footer-grid a:hover { color: var(--orange-2); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #3a404b; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; color: #9aa2ad; font-size: .85rem; }
.badge-19 { display: inline-grid; place-items: center; padding: .3rem .7rem; border-radius: 999px; background: var(--berry); color: #fff; font: 700 .8rem var(--f-display); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: var(--on-accent); padding: .5rem 1rem; border-radius: 8px; z-index: 600; }
.skip:focus { left: 8px; }
