/* Zero Gaming reskin overrides — built on flutter's design tokens
   (navy #0b112e, royal #16215b, blue #0285ff, light-blue #cce5ff, Clash Display + Poppins) */
:root{
  --zg-navy:#0b112e; --zg-navy2:#16215b; --zg-blue:#0285ff; --zg-blue2:#0a77eb;
  --zg-light:#cce5ff; --zg-ink:#0b112e; --zg-grey:#5b6276; --zg-bg:#f5f7fb; --zg-white:#fff;
}

/* ---------- wordmark logo ---------- */
.zg-logo{font-family:'ClashDisplay-Bold','Poppins',sans-serif;color:#fff;font-size:1.6rem;
  font-weight:700;letter-spacing:-.02em;line-height:1;white-space:nowrap;display:inline-block}
.zg-logo b{color:var(--zg-blue);font-weight:700}

/* ---------- hero ---------- */
.hero .hero__background{background:radial-gradient(120% 120% at 80% 0%,#1b2d6b 0%,#0b112e 55%,#070b1f 100%)!important}
.hero .hero__background:after{content:"";position:absolute;inset:0;
  background:radial-gradient(60% 80% at 15% 110%,rgba(2,133,255,.35),transparent 60%);pointer-events:none}
.hero .hero__content{max-width:1180px;margin:0 auto;padding:0 28px}
.hero__content-h1.h1{max-width:16ch}
/* Nuxt JS is stripped, so flutter's reveal animations never fire — force the
   hero's animated content to its final visible state. */
.hero, .hero *{opacity:1!important;transform:none!important;visibility:visible!important;
  animation:none!important;transition:none!important}
/* tighten the hero so it isn't a tall empty gradient without the betting film/marquee */
.hero{min-height:78vh!important}
.hero__content{display:flex;flex-direction:column;justify-content:center;min-height:78vh}
.zg-hero-sub{color:#cfd8ff;font-family:'Poppins',sans-serif;font-size:clamp(1.05rem,1.6vw,1.4rem);
  line-height:1.5;max-width:46ch;margin:26px 0 34px}
/* ---------- buttons ---------- */
.zg-btn{display:inline-flex;align-items:center;gap:.6em;background:var(--zg-blue);color:#fff;
  font-family:'Poppins',sans-serif;font-weight:600;font-size:1rem;text-decoration:none;
  padding:15px 30px;border-radius:100px;transition:background .2s,transform .2s;border:none;cursor:pointer}
.zg-btn:hover{background:var(--zg-blue2);transform:translateY(-2px)}
.zg-btn--ghost{background:transparent;border:1.5px solid rgba(255,255,255,.55);color:#fff}
.zg-btn--ghost:hover{background:rgba(255,255,255,.1)}
.zg-btn--dark{background:var(--zg-navy)}.zg-btn--dark:hover{background:var(--zg-navy2)}

/* ---------- generic section ---------- */
.zg-section{padding:96px 0}
.zg-container{max-width:1240px;margin:0 auto;padding:0 28px}
.zg-eyebrow{font-family:'Poppins',sans-serif;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
  font-size:.8rem;color:var(--zg-blue)}
.zg-h2{font-family:'ClashDisplay-Bold',sans-serif;font-weight:700;line-height:1.04;letter-spacing:-.02em;
  font-size:clamp(2rem,4vw,3.4rem);color:var(--zg-ink);margin:.4em 0 .2em}
.zg-lead{font-family:'Poppins',sans-serif;color:var(--zg-grey);font-size:1.15rem;line-height:1.6;max-width:60ch}

/* ---------- what we do : cards ---------- */
.zg-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;margin-top:54px}
.zg-card{background:#fff;border:1px solid #e7ecf5;border-radius:22px;padding:40px 34px;
  transition:transform .25s,box-shadow .25s}
.zg-card:hover{transform:translateY(-6px);box-shadow:0 24px 60px rgba(11,17,46,.12)}
.zg-card__n{font-family:'ClashDisplay-Bold',sans-serif;color:var(--zg-blue);font-size:1rem;letter-spacing:.1em}
.zg-card__icon{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;margin-bottom:22px;
  background:linear-gradient(135deg,#0285ff,#16215b);color:#fff;font-size:1.5rem}
.zg-card h3{font-family:'ClashDisplay-Semibold',sans-serif;font-weight:600;font-size:1.5rem;
  color:var(--zg-ink);margin:0 0 12px;letter-spacing:-.01em}
.zg-card p{font-family:'Poppins',sans-serif;color:var(--zg-grey);line-height:1.6;margin:0;font-size:1.02rem}

/* ---------- about band ---------- */
.zg-band{background:radial-gradient(120% 140% at 100% 0%,#1b2d6b,#0b112e 60%);color:#fff}
.zg-band .zg-h2{color:#fff}
.zg-band .zg-lead{color:#c7d0ee}
.zg-band .zg-eyebrow{color:var(--zg-light)}
.zg-grid2{display:grid;grid-template-columns:1.1fr .9fr;gap:60px;align-items:center}
.zg-stat{font-family:'ClashDisplay-Bold',sans-serif;font-size:2.4rem;color:#fff}
.zg-statwrap{display:flex;gap:48px;margin-top:30px;flex-wrap:wrap}
.zg-statwrap small{display:block;font-family:'Poppins',sans-serif;color:#9fb0e0;font-size:.9rem;margin-top:4px;letter-spacing:.02em}

/* ---------- news ---------- */
.zg-news{background:var(--zg-bg)}
.zg-newscard{display:block;background:#fff;border:1px solid #e7ecf5;border-radius:22px;padding:38px;
  text-decoration:none;max-width:760px;transition:transform .25s,box-shadow .25s}
.zg-newscard:hover{transform:translateY(-4px);box-shadow:0 24px 60px rgba(11,17,46,.10)}
.zg-newscard time{font-family:'Poppins',sans-serif;color:var(--zg-blue);font-weight:600;font-size:.9rem}
.zg-newscard h3{font-family:'ClashDisplay-Semibold',sans-serif;font-weight:600;color:var(--zg-ink);
  font-size:1.45rem;margin:10px 0 0;letter-spacing:-.01em}

/* ---------- footer ---------- */
.zg-footer{background:#070b1f;color:#fff;padding:72px 0 36px}
.zg-footer .zg-container{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:48px}
.zg-footer .zg-logo{font-size:1.5rem;margin-bottom:18px}
.zg-footer address{font-style:normal;font-family:'Poppins',sans-serif;color:#9fb0e0;line-height:1.7;font-size:.95rem;max-width:32ch}
.zg-footer h4{font-family:'Poppins',sans-serif;text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;
  color:#6f7ba6;margin:0 0 16px}
.zg-footer ul{list-style:none;margin:0;padding:0}
.zg-footer li{margin:0 0 12px}
.zg-footer a{color:#cdd6f2;text-decoration:none;font-family:'Poppins',sans-serif;font-size:.97rem}
.zg-footer a:hover{color:#fff}
.zg-footer__bar{border-top:1px solid rgba(255,255,255,.1);margin-top:54px;padding-top:26px;
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.zg-footer__bar p{font-family:'Poppins',sans-serif;color:#6f7ba6;font-size:.85rem;margin:0}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .zg-cards{grid-template-columns:1fr}.zg-grid2{grid-template-columns:1fr;gap:34px}
  .zg-footer .zg-container{grid-template-columns:1fr 1fr}.zg-section{padding:64px 0}
}
@media(max-width:560px){.zg-footer .zg-container{grid-template-columns:1fr}}

/* ============ inner pages ============ */
.zg-banner{background:radial-gradient(120% 130% at 80% 0%,#1b2d6b 0%,#0b112e 60%,#070b1f 100%);color:#fff;padding:140px 0 90px}
.zg-banner .zg-eyebrow{color:var(--zg-light)}
.zg-banner h1{font-family:'ClashDisplay-Bold',sans-serif;font-weight:700;letter-spacing:-.02em;line-height:1.02;
  font-size:clamp(2.6rem,6vw,5rem);margin:.2em 0 0;text-transform:uppercase}
.zg-banner p{font-family:'Poppins',sans-serif;color:#c7d0ee;font-size:1.2rem;line-height:1.6;max-width:54ch;margin:24px 0 0}
.zg-prose{font-family:'Poppins',sans-serif;color:var(--zg-grey);font-size:1.08rem;line-height:1.75;max-width:70ch}
.zg-prose h2{font-family:'ClashDisplay-Semibold',sans-serif;color:var(--zg-ink);font-size:1.7rem;margin:2em 0 .6em;letter-spacing:-.01em}
.zg-prose h3{font-family:'ClashDisplay-Semibold',sans-serif;color:var(--zg-ink);font-size:1.25rem;margin:1.6em 0 .4em}
.zg-prose p{margin:0 0 1.1em}.zg-prose ul{margin:0 0 1.1em;padding-left:1.2em}.zg-prose li{margin:.3em 0}
.zg-prose a{color:var(--zg-blue)}
.zg-split{display:grid;grid-template-columns:1.2fr .8fr;gap:64px;align-items:start}
.zg-aside{background:var(--zg-bg);border:1px solid #e7ecf5;border-radius:22px;padding:34px}
.zg-aside h4{font-family:'ClashDisplay-Semibold',sans-serif;color:var(--zg-ink);font-size:1.1rem;margin:0 0 14px}
.zg-aside p,.zg-aside address{font-family:'Poppins',sans-serif;color:var(--zg-grey);line-height:1.7;font-style:normal;margin:0 0 10px}
.zg-pillar{display:grid;grid-template-columns:64px 1fr;gap:28px;padding:40px 0;border-top:1px solid #e7ecf5}
.zg-pillar:first-of-type{border-top:none}
.zg-pillar .zg-card__icon{margin:0}
.zg-pillar h3{font-family:'ClashDisplay-Semibold',sans-serif;color:var(--zg-ink);font-size:1.7rem;margin:0 0 10px;letter-spacing:-.01em}
.zg-pillar p{font-family:'Poppins',sans-serif;color:var(--zg-grey);line-height:1.65;margin:0;font-size:1.08rem;max-width:60ch}
/* contact form */
.zg-form{display:grid;gap:18px;max-width:540px}
.zg-form label{font-family:'Poppins',sans-serif;font-weight:600;color:var(--zg-ink);font-size:.92rem;display:block;margin-bottom:7px}
.zg-form input,.zg-form textarea{width:100%;font-family:'Poppins',sans-serif;font-size:1rem;padding:14px 16px;
  border:1px solid #d6deec;border-radius:12px;background:#fff;color:var(--zg-ink)}
.zg-form input:focus,.zg-form textarea:focus{outline:2px solid var(--zg-blue);border-color:var(--zg-blue)}
/* news list */
.zg-newslist{display:grid;gap:20px;max-width:820px}
/* coming soon */
.zg-soon{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  background:radial-gradient(120% 120% at 50% 0%,#1b2d6b,#0b112e 60%,#070b1f);color:#fff;padding:80px 24px}
.zg-soon h1{font-family:'ClashDisplay-Bold',sans-serif;font-size:clamp(2.4rem,6vw,4.2rem);margin:0;text-transform:uppercase}
.zg-soon p{font-family:'Poppins',sans-serif;color:#c7d0ee;font-size:1.15rem;margin:18px 0 30px;max-width:46ch}
@media(max-width:860px){.zg-split{grid-template-columns:1fr;gap:34px}.zg-banner{padding:110px 0 64px}}

/* ---------- active nav state (current page) ---------- */
.navigation-desktop__list-item-anchor{background:transparent!important;color:#fff!important}
.navigation-desktop__list-item-anchor[aria-current="page"]{background:var(--zg-light)!important;color:var(--zg-navy)!important}
.navigation-mobile__list-item-anchor[aria-current="page"]{color:var(--zg-blue)!important}

/* ============================================================
   Mobile-fidelity + scroll-animation fixes (added in fidelity pass)
   ============================================================ */

/* hero background gradient must FILL the hero (flutter's video gave it height;
   that's gone, so the bg collapsed to 0 height → white hero + invisible logo) */
.hero{position:relative!important}
.hero .hero__background{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0}
.hero .hero__content{position:relative;z-index:1}

/* mobile typography: stop the long ZG headline overflowing */
@media (max-width:600px){
  .hero__content-h1.h1, .hero__content-h1{font-size:clamp(2.1rem,10.5vw,3rem)!important;line-height:1.04;word-break:normal}
  .hero{min-height:68vh!important}
  .hero .hero__content{min-height:68vh}
  .zg-hero-sub{font-size:1.05rem;margin:18px 0 26px}
}

/* ---------- mobile menu overlay (wired to flutter's "Menu" button via zg.js) ---------- */
.zg-mobile-menu{position:fixed;inset:0;background:var(--zg-navy);z-index:100000;
  display:flex;flex-direction:column;justify-content:center;padding:32px 28px;
  transform:translateX(100%);transition:transform .4s cubic-bezier(.22,1,.36,1);visibility:hidden}
body.zg-menu-open{overflow:hidden}
body.zg-menu-open .zg-mobile-menu{transform:none;visibility:visible}
.zg-mobile-menu__nav{display:flex;flex-direction:column}
.zg-mobile-menu__nav a{color:#fff;font-family:'ClashDisplay-Bold','Poppins',sans-serif;font-weight:700;
  font-size:2rem;letter-spacing:-.01em;text-decoration:none;padding:15px 0;border-bottom:1px solid rgba(255,255,255,.12)}
.zg-mobile-menu__nav a[aria-current="page"]{color:var(--zg-blue)}
.zg-menu-close{position:absolute;top:18px;right:22px;background:none;border:0;color:#fff;
  font-size:2.6rem;line-height:1;cursor:pointer;padding:6px}
/* the overlay is a mobile affordance — never show it on desktop */
@media (min-width:1041px){ .zg-mobile-menu, .zg-menu-close{display:none!important} }

/* hero headline is always over the dark gradient → keep it white (flutter renders
   it navy at mobile breakpoints, which was illegible on the gradient) */
.hero__content-h1, .hero__content-h1.h1{color:#fff!important}

/* mobile top bar (.top-nav-mobile) is transparent in flutter (it overlaid the dark
   hero video); give it the brand navy so the white wordmark stays legible */
@media (max-width:1040px){
  .top-nav-mobile{background:var(--zg-navy)!important}
}

/* flutter's mega-nav panel (search + report cards + betting links) is hidden by JS
   in the live site; static-ified it renders inline as page content → hide it.
   (Our real nav is .navigation-desktop + .top-nav-mobile + #zg-mobile-menu.) */
.navigation-container{display:none!important}

/* ---------- language toggle (bottom-left, clear of the navbar) ---------- */
.zg-lang{position:fixed;bottom:20px;left:20px;z-index:100001;display:inline-flex;gap:2px;
  background:rgba(11,17,46,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.28);border-radius:100px;padding:3px}
.zg-lang button{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:#fff;
  font-family:'Poppins',sans-serif;font-size:.74rem;font-weight:600;letter-spacing:.02em;
  padding:6px 12px;border-radius:100px;cursor:pointer;line-height:1;opacity:.65;transition:opacity .15s,background .15s}
.zg-lang button:hover{opacity:1}
.zg-lang button[aria-pressed="true"]{background:var(--zg-blue);opacity:1}
/* keep the toggle bottom-left on mobile too (clear of the navbar) */
@media (max-width:1040px){ .zg-lang{top:auto;right:auto;bottom:20px;left:14px} }










/* === zg hero video (sora) === */
.hero .hero__background{overflow:hidden}
.hero .hero__background .zg-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
/* legibility scrim over the video, under the headline */
.hero .hero__background:before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(7,11,31,.5),rgba(7,11,31,.2) 45%,rgba(7,11,31,.78))}
.hero .hero__content-column,.hero .hero__content{position:relative;z-index:3}
/* tiled "placeholder" watermark over the generated hero video */
.hero .hero__background .zg-hero-wm{position:absolute;inset:0;z-index:2;pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'660'%20height%3D'150'%3E%3Ctext%20x%3D'0'%20y%3D'115'%20transform%3D'rotate(-18%200%20115)'%20font-family%3D'-apple-system%2CSegoe%20UI%2CRoboto%2Csans-serif'%20font-size%3D'15'%20font-weight%3D'700'%20paint-order%3D'stroke'%20stroke%3D'rgba(0%2C0%2C0%2C0.38)'%20stroke-width%3D'0.7'%20fill%3D'rgba(255%2C255%2C255%2C0.34)'%3EPLACEHOLDER%20%E2%80%94%20MORE%20CONTEXT%20NEEDED%20FOR%20IMAGE%20GENERATION%3C%2Ftext%3E%3C%2Fsvg%3E");background-repeat:repeat}

/* ===== override: subtle hero watermark (bottom-right pill, not tiled) ===== */
.hero .hero__background .zg-hero-wm{inset:auto!important;right:14px!important;bottom:14px!important;
  background-image:none!important;background:none!important;width:auto!important;height:auto!important}
.hero .hero__background .zg-hero-wm::after{content:"PLACEHOLDER";display:inline-block;
  font:600 12px/1 -apple-system,Segoe UI,Roboto,sans-serif;color:rgba(255,255,255,.55);
  background:rgba(8,12,30,.3);padding:6px 10px;border-radius:100px}

/* ===== hero: match flutter source (full viewport height, content bottom-left) ===== */
.hero{height:calc(100vh - 20px)!important;min-height:calc(100vh - 20px)!important;
  display:flex!important;flex-direction:column;justify-content:flex-end}
.hero .hero__content-column{width:100%;position:relative;z-index:3;padding-bottom:64px}
.hero .hero__content{max-width:1180px;margin:0 auto;padding:0 28px;display:block!important;
  min-height:0!important;text-align:left}
.hero__content-h1.h1{text-align:left;max-width:20ch;margin:0}
.zg-hero-sub{margin:22px 0 30px}
@media (max-width:600px){
  .hero{height:calc(100vh - 20px)!important;min-height:calc(100vh - 20px)!important}
  .hero .hero__content{min-height:0!important}
  .hero .hero__content-column{padding-bottom:42px}
}

/* ===== company-information table (brief-styled; N/A for unknowns) ===== */
.zg-company{background:var(--zg-bg)}
.zg-company .zg-h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:0 0 32px}
.zg-company-table{width:100%;max-width:980px;border-collapse:collapse;background:#fff;
  border:1px solid #e2e8f5;border-radius:14px;overflow:hidden;font-family:'Poppins',sans-serif}
.zg-company-table th,.zg-company-table td{text-align:left;padding:18px 24px;
  border-bottom:1px solid #eef2f9;vertical-align:top;font-size:1rem;line-height:1.5}
.zg-company-table tr:last-child th,.zg-company-table tr:last-child td{border-bottom:0}
.zg-company-table th{width:34%;background:#f4f7fc;color:var(--zg-ink);font-weight:600}
.zg-company-table td{color:var(--zg-grey)}
.zg-company-table a{color:var(--zg-blue);text-decoration:none}
.zg-company-table a:hover{text-decoration:underline}
@media (max-width:600px){
  .zg-company-table th,.zg-company-table td{display:block;width:auto}
  .zg-company-table th{border-bottom:0;padding-bottom:4px}
  .zg-company-table td{padding-top:0;padding-bottom:18px}
}

/* hero headline: large but sized to sit bottom-left within one screen (flutter-like) */
.hero__content-h1.h1{font-size:clamp(2.4rem,5.2vw,5rem)!important;line-height:1.02!important;max-width:18ch}

/* hero content: anchor absolute bottom-left exactly like flutter (override flex + forced-relative) */
.hero{display:block!important}
.hero .hero__content-column{height:100%!important;width:100%!important;position:relative;padding-bottom:0}
.hero .hero__content{position:absolute!important;left:0;right:0;bottom:56px;margin:0 auto!important;
  max-width:1180px;width:auto;padding:0 28px;display:block!important;text-align:left;min-height:0!important}
@media (max-width:600px){ .hero .hero__content{bottom:40px} }

/* ===== Japanese line breaks (hybrid: auto phrase-wrap + manual <br>) =====
   i18n.js inserts <wbr> at JA word boundaries; keep-all stops the browser from
   breaking between every kana/kanji, so JA wraps only at those natural points
   (responsive). overflow-wrap:anywhere is a safety net against overflow. */
html[lang="ja"] [data-i18n]{ word-break: keep-all; overflow-wrap: anywhere; }
