/* Homepage art direction: an icy editorial version of the reference site's image-led layout. */
body.udgi-page {
  --ink: #252c46;
  --muted: #626b83;
  --blue: #546b9e;
  --red: #aa3451;
  --paper: #f8f9fc;
  color: var(--ink);
  background: #f7f8fc;
  background-image: radial-gradient(circle at 78% 5%, #e9eefa 0, transparent 35%), radial-gradient(circle at 2% 45%, #fbeef2 0, transparent 30%);
  font-family: var(--sans);
}
.udgi-page h1,.udgi-page h2,.udgi-page h3,.udgi-page h4 { color: var(--ink); font-family: var(--sans); text-shadow: none; border: 0; padding: 0; }
.udgi-page p { color: var(--muted); }
.udgi-page a { color: var(--blue); }
/* main.css ships a dark-theme `strong { color:#fff }`; the light homepage must override it
   or emphasised text renders white-on-white. Dark blocks below re-assert white explicitly. */
.udgi-page strong { color: var(--ink); }
.udgi-page a:focus-visible,.udgi-page summary:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.udgi-ribbon { background: #9f354f; color: #fff; text-align: center; padding: 7px 12px; font-size: .65rem; font-weight: 800; letter-spacing: .22em; }
.udgi-page header.site-header { position: sticky; top: 0; background: rgba(255,255,255,.94); border-color: #e4e8f0; padding: 12px max(24px,calc((100vw - 1240px)/2)); box-shadow: 0 5px 24px rgba(34,45,75,.05); }
.udgi-page .logo { flex: 0 0 auto; gap: 14px; color: #283251; font-family: 'Cinzel Decorative', Georgia, serif; font-weight: 700; font-size: 1.16rem; letter-spacing: -.035em; line-height: 1.14; text-shadow: none; text-decoration: none; }
.udgi-page .logo::before { content: none; }
.udgi-page .logo-portrait { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; object-position: center 38%; border: 2px solid #e3d8e4; border-radius: 14px; box-shadow: 0 4px 12px rgba(35,46,77,.16); }
.udgi-page .logo-wordmark { display: flex; flex-direction: column; white-space: nowrap; }
.udgi-page .logo-wordmark span:last-child { color: #a63e5a; letter-spacing: .06em; }
.udgi-page .header-nav { gap: clamp(12px,2.2vw,30px); }
.udgi-page .header-nav a { color: #434b62; font-size: .82rem; font-weight: 700; }
.udgi-page .header-nav a:hover { color: var(--red); }
.udgi-page .wrapper { max-width: 1240px; padding: 0 24px 80px; }
.udgi-page .udgi-main { display: block; }
.udgi-page .udgi-hero { position: relative; min-height: 600px; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(30px,5vw,80px); align-items: center; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; padding: clamp(60px,8vw,112px) 0 82px; }
.udgi-page .udgi-hero::before { content: ''; position: absolute; z-index: -1; left: -10vw; right: -10vw; inset-block: 0; background: radial-gradient(circle at 72% 52%, #e2e9f7, transparent 42%), radial-gradient(circle at 25% 15%, #fff, transparent 36%), #f4f6fb; }
.udgi-page .udgi-eyebrow { color: #9d3d5c; font-family: var(--sans); font-size: .7rem; font-weight: 800; letter-spacing: .22em; margin: 0 0 22px; }
.udgi-page .udgi-eyebrow::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: #c85c7c; box-shadow: 0 0 0 5px #f4dfe8; vertical-align: 1px; }
.udgi-page .udgi-hero h1 { color: #28304b; font-size: clamp(3.5rem,5.1vw,5.4rem); line-height: .98; letter-spacing: -.075em; font-weight: 900; margin: 0 0 32px; }
.udgi-page .udgi-hero h1 span { display: block; color: #aa3857; }
.udgi-page .udgi-lead { font-size: clamp(1.3rem,2.2vw,1.75rem); line-height: 1.35; font-weight: 700; color: #303850 !important; margin-bottom: 17px; }
.udgi-page .udgi-hero-copy > p:not(.udgi-eyebrow) { max-width: 46ch; }
.udgi-page .udgi-hero-copy > p:not(.udgi-eyebrow,.udgi-lead) { font-size: .98rem; line-height: 1.75; }
.udgi-page .udgi-actions { margin: 30px 0 16px; }
.udgi-page .udgi-button { background: #a83a59; color: #fff; border: 0; border-radius: 999px; box-shadow: 0 12px 24px rgba(151,49,78,.18); padding: 14px 24px; font-weight: 800; }
.udgi-page .udgi-button:hover { background: #84243e; color: #fff; transform: translateY(-2px); }
.udgi-page .udgi-text-link { color: #344d82; font-weight: 800; }
.udgi-page .udgi-platforms { color: #81899b !important; font-size: .76rem !important; }
.udgi-page .udgi-hero-art { aspect-ratio: 794/496; object-fit: cover; border: 10px solid #fff; border-radius: 12px; transform: rotate(2.2deg); box-shadow: 0 24px 70px rgba(40,53,93,.22); }
.udgi-page .udgi-hero::after { content: '✦'; position: absolute; right: -12px; top: 90px; font-size: 4rem; color: #d5a9bb; opacity: .8; }
.udgi-page .udgi-hero { min-height: 0; padding-block: 70px; }
.udgi-page .udgi-hero h1 { margin-bottom: 0; }
.udgi-gallery { padding: 80px 0 46px; }
.udgi-section-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.65fr); align-items: end; gap: 12px 30px; margin-bottom: 28px; }
.udgi-section-heading .udgi-eyebrow { grid-column: 1 / -1; margin-bottom: 2px; }
.udgi-section-heading h2 { font-size: clamp(2.3rem,4vw,4.4rem); font-weight: 900; letter-spacing: -.065em; line-height: 1.05; margin: 0; max-width: 700px; }
.udgi-section-heading h2 em { color: var(--red); font-style: normal; }
.udgi-section-heading > p:last-child { max-width: 38ch; line-height: 1.7; margin-bottom: 3px; }
.udgi-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.udgi-shot { margin: 0; padding: 8px 8px 0; overflow: hidden; background: #fff; border: 1px solid #e3e6ee; border-radius: 14px; box-shadow: 0 12px 32px rgba(40,52,80,.065); transition: transform .2s ease, box-shadow .2s ease; }
.udgi-shot:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(40,52,80,.13); }
.udgi-shot img { display: block; width: 100%; height: auto; aspect-ratio: 794/496; object-fit: cover; border-radius: 8px; background: #17213a; }
.udgi-shot figcaption { display: flex; flex-direction: column; gap: 4px; padding: 15px 12px 18px; }
.udgi-shot small { color: #a34d67; font-size: .64rem; font-weight: 900; letter-spacing: .17em; }
.udgi-shot strong { color: #29334e; font-size: 1.08rem; line-height: 1.35; }
.udgi-gallery-credit { font-size: .8rem; color: #7c8496 !important; margin-top: 18px; }
.udgi-page .udgi-player { margin: 54px 0 70px; background: #dce4f2; border: 0; border-radius: 18px; box-shadow: none; }
.udgi-page .udgi-player { margin-bottom: 0; }
.udgi-page .udgi-player-top { background: #2d3c61; color: #d9e1f0; border: 0; padding: 13px 20px; }
.udgi-page .udgi-player-body { min-height: 330px; background: radial-gradient(circle at 50% 30%,#eef3fc,#d7e1f1); }
.udgi-page .udgi-player-mark { color: #a43d58; }
.udgi-page .udgi-player h2 { color: #27324e; font-weight: 900; letter-spacing: -.04em; font-size: clamp(1.8rem,3.5vw,3rem); }
.udgi-page .udgi-player p { color: #5d6882; }
.udgi-page .udgi-player a { display: inline-block; border-radius: 999px; padding: 12px 20px; color: #fff; background: #a83a59; }
.udgi-page .udgi-player { overflow: hidden; background: #fff; border: 1px solid #dfe5f0; }
.udgi-page .udgi-player-intro { padding: clamp(24px,4vw,44px) clamp(20px,4vw,44px) 28px; text-align: center; }
.udgi-page .udgi-player-intro .udgi-eyebrow { margin-bottom: 12px; }
.udgi-page .udgi-player-intro h2 { margin: 0 auto 10px; }
.udgi-page .udgi-player-intro p:last-child { margin: 0 auto; }
.udgi-game-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 300px; background: #090d19; overflow: hidden; }
.udgi-game-stage iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #000; }
.udgi-page #game-iframe { opacity: 1; pointer-events: auto; z-index: 0; }
.udgi-game-cover { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; text-align: center; background: #101728; }
.udgi-game-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .8; }
.udgi-game-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(9,14,32,.65),rgba(9,14,32,.18)); pointer-events: none; }
.udgi-game-cover[hidden],.udgi-game-cover-content[hidden],.udgi-game-pending[hidden],.udgi-game-exit[hidden] { display: none; }
.udgi-game-cover-content,.udgi-game-pending { position: relative; z-index: 2; padding: 20px; }
.udgi-game-play { display: inline-flex; align-items: center; gap: 13px; padding: 17px 25px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; background: #a83a59; box-shadow: 0 14px 35px rgba(0,0,0,.35); color: #fff; font: 800 1rem var(--sans); cursor: pointer; transition: transform .2s,background .2s; }
.udgi-game-play:hover { transform: translateY(-3px); background: #862a45; }
.udgi-game-play:focus-visible,.udgi-fullscreen:focus-visible,.udgi-game-exit:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.udgi-game-cover p { color: #edf0fa; margin: 14px 0 0; font-size: .8rem; font-weight: 700; }
.udgi-game-pending { display: grid; justify-items: center; gap: 12px; width: min(340px,85%); color: #fff; text-shadow: 0 2px 8px #000; }
.udgi-game-pending strong { color: #fff; font-size: 1.05rem; }
.udgi-game-pending small { color: #e6eaf5; font-size: .76rem; }
.udgi-loading-track { display: block; width: 100%; height: 8px; overflow: hidden; border: 1px solid #ffffff80; border-radius: 99px; background: #d4d9e260; }
.udgi-loading-track span { display: block; width: 35%; height: 100%; border-radius: 99px; background: #fff; animation: udgi-loading 1.4s ease-in-out infinite alternate; }
@keyframes udgi-loading { from { transform: translateX(0); } to { transform: translateX(185%); } }
.udgi-game-exit { position: absolute; z-index: 5; top: max(14px,env(safe-area-inset-top)); right: max(14px,env(safe-area-inset-right)); width: 42px; height: 42px; border: 1px solid #fff8; border-radius: 50%; color: #fff; background: rgba(12,18,31,.85); font-size: 1.2rem; cursor: pointer; }
.udgi-player-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 17px 20px; }
.udgi-page .udgi-player-actions a { padding: 0; color: #4d5e86; background: none; font: 700 .83rem var(--sans); }
.udgi-fullscreen { border: 1px solid #bdc8dd; border-radius: 999px; padding: 9px 15px; color: #304362; background: #f1f4fa; font: 800 .83rem var(--sans); cursor: pointer; }
.udgi-fullscreen:hover { background: #e4eaf6; }
.udgi-game-stage:fullscreen,.udgi-game-stage.theater-mode { position: fixed; inset: 0; z-index: 2147483647; width: 100vw; height: 100vh; min-height: 0; aspect-ratio: auto; }
@supports(height:100dvh) { .udgi-game-stage:fullscreen,.udgi-game-stage.theater-mode { height: 100dvh; } }
body.udgi-theater-active { overflow: hidden; }
.udgi-page .udgi-story { background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; box-shadow: 0 12px 34px rgba(39,52,84,.05); padding: clamp(28px,5vw,60px); }
.udgi-page .udgi-story h2,.udgi-page .udgi-features h2,.udgi-page .udgi-faq h2 { font-size: clamp(2rem,3.5vw,3.8rem); letter-spacing: -.055em; font-weight: 900; line-height: 1.1; margin: 0 0 28px; }
.udgi-page .udgi-story p { max-width: 75ch; font-size: 1.02rem; line-height: 1.8; }
.udgi-page .udgi-story em { color: #9d3d59; }
.udgi-page .udgi-features { margin: 86px 0; }
.udgi-page .udgi-feature-grid { grid-template-columns: repeat(4,1fr); }
.udgi-page .udgi-feature-grid > div { background: #fff; border-color: #e3e8f0; border-radius: 14px; padding: 27px 22px; box-shadow: 0 10px 28px rgba(39,52,84,.05); }
.udgi-page .udgi-feature-grid span { color: #ad4d68; font-family: var(--sans); font-weight: 900; }
.udgi-page .udgi-feature-grid h3 { color: #29334e; font-size: 1.08rem; font-weight: 800; margin: 15px 0 9px; }
.udgi-page .udgi-feature-grid p { color: #667187; }
.udgi-page .related-section { background: transparent; border: 0; padding: 0; margin: 80px 0; box-shadow: none; }
.udgi-page .related-section { margin: 32px 0 80px; }
.udgi-share { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 0; }
.udgi-share-label { color: #3a4662; font-size: .9rem; font-weight: 800; }
.udgi-share-links { display: grid; grid-template-columns: repeat(5, 44px); gap: 12px; }
.udgi-page .udgi-share-links a { display: grid; place-items: center; width: 44px; height: 44px; color: #405680; background: #fff; border: 1px solid #dce3ef; border-radius: 50%; box-shadow: 0 5px 16px rgba(39,52,84,.06); transition: background .2s, color .2s, transform .2s; }
.udgi-page .udgi-share-links a:hover { color: #fff; background: #a83a59; transform: translateY(-2px); }
.udgi-share-links svg { width: 22px; height: 22px; fill: currentColor; }
.udgi-page .related-header h2 { color: #29334e; font-size: clamp(2rem,3.5vw,3.5rem); font-weight: 900; letter-spacing: -.05em; }
.udgi-page .related-sub { color: #6c768b; }
.udgi-page .related-card { border: 1px solid #e3e7ef; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(39,52,84,.07); }
.udgi-page .related-card .related-caption { background: #fff; color: #29334e; font-weight: 800; }
.udgi-page .udgi-faq { background: #fff; border: 1px solid #e3e8f0; border-radius: 16px; padding: clamp(26px,5vw,58px); margin: 70px 0 20px; }
.udgi-page .udgi-faq details { border-color: #e3e8f0; }
.udgi-page .udgi-faq summary { color: #313d5b; font-weight: 800; }
.udgi-page .udgi-how-to { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.8fr); gap: clamp(25px,4vw,60px); align-items: start; margin: 70px 0; padding: clamp(28px,5vw,60px); background: #eef2f9; border: 1px solid #dfe6f1; border-radius: 16px; }
.udgi-page .udgi-how-to h2 { font-size: clamp(2rem,3.5vw,3.8rem); letter-spacing: -.055em; font-weight: 900; line-height: 1.1; margin: 0 0 24px; }
.udgi-page .udgi-how-to h3 { font-size: 1.2rem; font-weight: 900; margin: 0 0 14px; }
.udgi-page .udgi-how-to p,.udgi-page .udgi-how-to li { color: #4e5a74; line-height: 1.75; }
.udgi-page .udgi-controls { background: #fff; padding: 26px; border-radius: 12px; border: 1px solid #dfe6f1; }
.udgi-page .udgi-controls ul { margin: 0; padding-left: 20px; }
.udgi-page .udgi-controls li + li { margin-top: 12px; }
.udgi-page .udgi-story,.udgi-page .udgi-features,.udgi-page .udgi-how-to,.udgi-page .udgi-faq { scroll-margin-top: 110px; }
.udgi-page .site-footer { background: #26334f; border: 0; }
.udgi-page .footer-section h3 { margin: 0 0 12px; font-family: var(--display); font-size: .95rem; font-weight: 600; letter-spacing: .5px; border: 0; padding: 0; color: #fff; }
.udgi-page .footer-section a:hover { color: #fff; }
.udgi-page .site-footer strong { color: #fff; }
.udgi-page .site-footer p,.udgi-page .site-footer a { color: #c3cddd; }
@media (max-width: 900px) {
  .udgi-page .udgi-how-to { grid-template-columns: 1fr; }
  .udgi-page .udgi-hero { grid-template-columns: 1fr; min-height: 0; padding: 60px 0; gap: 36px; }
  .udgi-page .udgi-hero-art { max-width: 720px; }
  .udgi-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .udgi-page .udgi-feature-grid { grid-template-columns: repeat(2,1fr); }
  .udgi-page .header-nav { gap: 12px; }
}
@media (max-width: 620px) {
  .udgi-page header.site-header { flex-wrap: wrap; }
  .udgi-page .header-nav { width: 100%; justify-content: space-between; gap: 7px; }
  .udgi-page .header-nav a { font-size: .65rem; }
  .udgi-ribbon { font-size: .53rem; }
  .udgi-page header.site-header { padding: 12px 17px; }
  .udgi-page .logo { gap: 9px; font-size: .85rem; letter-spacing: -.04em; }
  .udgi-page .logo-portrait { width: 46px; height: 46px; flex-basis: 46px; border-radius: 10px; }
  .udgi-page .header-nav { gap: 10px; flex-wrap: wrap; justify-content: end; }
  .udgi-page .header-nav a { font-size: .68rem; }
  .udgi-page .wrapper { padding: 0 17px 50px; }
  .udgi-page .udgi-hero h1 { font-size: clamp(3.5rem,15vw,5.3rem); }
  .udgi-page .udgi-hero::after { display: none; }
  .udgi-section-heading { display: block; }
  .udgi-section-heading > p:last-child { margin-top: 15px; }
  .udgi-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .udgi-page .udgi-feature-grid { grid-template-columns: 1fr; }
  .udgi-page .udgi-player { margin: 45px 0; }
  .udgi-page .udgi-player { margin-bottom: 0; }
  .udgi-share { flex-direction: column; align-items: flex-start; gap: 12px; }
  .udgi-share-links { width: 100%; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
  .udgi-page .udgi-share-links a { width: 100%; }
  .udgi-page .udgi-player-body { min-height: 270px; }
  .udgi-game-stage { min-height: 220px; }
  .udgi-page .udgi-player-intro h2 { font-size: 1.8rem; }
}
