@import url("/css/header-theme-tokens.css?v=20261030-theme1");
/* Shared masthead contract for home, racing and both poker tables.
 * Retain each game's controls/brand content while enforcing identical geometry. */
.site-header.unified-site-header {
  position:sticky;
  inset-block-start:0;
  z-index:1200;
  box-sizing:border-box;
  width:100%;
  height:calc(84px + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) max(24px,calc((100vw - 1160px)/2)) 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,max-content) minmax(0,1fr);
  gap:16px;
  align-items:center;
  background:var(--header-bg);
  color:var(--header-text);
  border:0;
  border-bottom:1px solid var(--header-line);
  box-shadow:var(--header-shadow);
  font-family:system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;
}
body.game-portal main {padding-top:0;}
.site-header.unified-site-header .header-back {
  grid-column:1;
  display:inline-flex;
  justify-self:start;
  align-items:center;
  width:max-content;
  max-width:100%;
  min-width:44px;
  min-height:44px;
  padding:0;
  margin:0;
  gap:9px;
  white-space:nowrap;
  color:var(--header-text);
  text-decoration:none;
  font-size:12px;
  font-weight:750;
  letter-spacing:-.02em;
}
.site-header.unified-site-header .header-back>span:first-child {
  display:grid;
  place-items:center;
  flex:0 0 34px;
  width:34px;
  height:34px;
  color:var(--header-accent);
  background:var(--header-control);
  border:1px solid var(--header-line);
  border-radius:11px;
  font:700 19px/1 system-ui,sans-serif;
}
.site-header.unified-site-header .header-back:hover {color:var(--header-accent);}
.site-header.unified-site-header .header-back:hover>span:first-child {background:var(--header-control-hover);border-color:var(--header-accent);}
.site-header.unified-site-header :is(.logo,.brand.header-game-title) {
  grid-column:2;
  grid-row:1;
  justify-self:center;
  min-width:160px;
  width:max-content;
  max-width:100%;
  margin:0;
  padding:0;
  flex:none;
}
.site-header.unified-site-header .logo {
  display:flex;
  align-items:center;
  justify-content:center;
}
.site-header.unified-site-header .logo .home-brand {
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  text-decoration:none;
  min-width:0;
}
.site-header.unified-site-header .logo .neon-text,
.site-header.unified-site-header .header-game-title .brand-mark {
  display:grid;
  place-items:center;
  flex:0 0 40px;
  width:40px;
  height:44px;
  border:1px solid var(--header-mark-line);
  border-radius:12px;
  background:var(--header-mark);
  box-shadow:none;
  text-shadow:none;
  color:var(--header-accent);
  font:700 23px/1 Georgia,serif;
  transition:none;
}
.site-header.unified-site-header .logo .neon-text-alt,
.site-header.unified-site-header .header-brand-name {
  display:block;
  max-width:210px;
  font:800 16px/1.24 system-ui,"Apple SD Gothic Neo",sans-serif;
  letter-spacing:-.03em;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
  color:var(--header-text);
  text-shadow:none;
}
.site-header.unified-site-header .unified-header-subtitle {
  display:block;
  margin:3px 0 0;
  color:var(--header-muted);
  font:700 10px/1.25 system-ui,"Apple SD Gothic Neo",sans-serif;
}
.site-header.unified-site-header .brand.header-game-title {display:flex;align-items:center;gap:10px;}
.site-header.unified-site-header .header-brand-copy {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-width:0;line-height:1.1;}
/* Keep the poker table's original English lockup in the document while the
 * masthead uses the same two visible text rows as the home and race pages. */
.site-header.unified-site-header .header-brand-copy .brand-sub {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.site-header.unified-site-header .header-title-ko {display:block;margin:3px 0 0;color:var(--header-muted);font:700 10px/1.25 system-ui,"Apple SD Gothic Neo",sans-serif;letter-spacing:0;}
.site-header.unified-site-header >nav {
  grid-column:3;
  grid-row:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  justify-self:stretch;
  flex-wrap:nowrap;
  gap:8px;
  min-width:0;
  margin:0;
  padding:0;
  color:var(--header-text);
}
.site-header.unified-site-header >nav>a:first-child {display:none;}
.site-header.unified-site-header .home-audio,
.site-header.unified-site-header .audio-settings,
.site-header.unified-site-header .standalone-hub-rail {flex:0 0 auto;min-width:0;margin:0;}
.site-header.unified-site-header :is(.home-audio-trigger,.home-share-button,.ug-share-poker,.audio-settings>summary,#hamburgerBtn.hamburger-menu,.standalone-hub-button) {
  box-sizing:border-box;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  min-height:44px;
  height:44px;
  min-width:44px;
  margin:0;
  padding:0 13px;
  border:1px solid var(--header-line);
  border-radius:11px;
  background:var(--header-control);
  color:var(--header-text);
  box-shadow:none;
  font:750 12px/1.2 system-ui,"Apple SD Gothic Neo",sans-serif;
  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;
}
.site-header.unified-site-header :is(.home-audio-trigger,.audio-settings>summary) {
  width:44px;
  padding:0;
  border-radius:11px;
}
.site-header.unified-site-header .home-audio-trigger>span {display:none;}
.site-header.unified-site-header #hamburgerBtn.hamburger-menu,
.site-header.unified-site-header .standalone-hub-button {min-width:112px;}
.site-header.unified-site-header .home-audio-trigger svg {width:19px;height:19px;flex:0 0 19px;}
.site-header.unified-site-header :is(.home-audio-trigger,.home-share-button,.ug-share-poker,.audio-settings>summary,#hamburgerBtn.hamburger-menu,.standalone-hub-button):hover,
.site-header.unified-site-header :is(.home-audio-trigger,#hamburgerBtn.hamburger-menu,.standalone-hub-button)[aria-expanded=true],
.site-header.unified-site-header .audio-settings[open]>summary {
  background:var(--header-control-hover);
  color:var(--header-accent);
  border-color:var(--header-accent);
}
.site-header.unified-site-header #hamburgerBtn .hamburger-line,
.site-header.unified-site-header .standalone-hub-bars i {background:var(--header-accent);box-shadow:none;}
.site-header.unified-site-header #hamburgerBtn .menu-trigger-label {color:inherit;}
.site-header.unified-site-header .ug-share-live:not(:empty) {
  position:absolute;
  top:100%;right:18px;
  padding:5px 9px;
  border-radius:6px;
  background:var(--header-control);
  color:var(--header-text);
  font-size:11px;
}
.site-header.unified-site-header :is(a,button,summary):focus-visible {outline:3px solid var(--header-focus);outline-offset:3px;}
.site-header.unified-site-header .home-audio-panel {z-index:1201;}
.site-header.unified-site-header .audio-panel {z-index:1201;}
@media(max-width:900px){
  .site-header.unified-site-header {padding-left:max(17px,env(safe-area-inset-left,0px));padding-right:max(17px,env(safe-area-inset-right,0px));gap:9px;}
  .site-header.unified-site-header .header-back>span:last-child {display:none;}
  .site-header.unified-site-header .home-share-label,
  .site-header.unified-site-header .ug-share-poker .ug-share-text {display:none;}
  .site-header.unified-site-header :is(.home-share-button,.ug-share-poker) {width:44px;padding:0;}
  .site-header.unified-site-header .standalone-hub-rail {padding:0;}
}
@media(max-width:650px){
  .site-header.unified-site-header {height:calc(72px + env(safe-area-inset-top,0px));gap:7px;padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px));grid-template-columns:44px minmax(0,1fr) auto;}
  .site-header.unified-site-header :is(.logo,.brand.header-game-title) {justify-self:center;max-width:100%;min-width:119px;}
  .site-header.unified-site-header .logo .home-brand {gap:6px;}
  .site-header.unified-site-header .logo .neon-text,
  .site-header.unified-site-header .header-game-title .brand-mark {width:30px;height:34px;flex-basis:30px;border-radius:9px;font-size:19px;}
  .site-header.unified-site-header .logo .neon-text-alt,
  .site-header.unified-site-header .header-brand-name {font-size:12px;max-width:135px;}
  .site-header.unified-site-header .unified-header-subtitle {font-size:9px;}
  .site-header.unified-site-header .header-title-ko {font-size:9px;}
  
  .site-header.unified-site-header .brand.header-game-title {gap:6px;}
  .site-header.unified-site-header >nav {gap:5px;}
  .site-header.unified-site-header :is(.home-audio-trigger,.home-share-button,.ug-share-poker,.audio-settings>summary,#hamburgerBtn.hamburger-menu,.standalone-hub-button) {width:40px;min-width:40px;min-height:40px;height:40px;padding:0;border-radius:10px;}
  .site-header.unified-site-header :is(#hamburgerBtn .menu-trigger-label,.standalone-hub-button-label) {display:none;}
  .site-header.unified-site-header #hamburgerBtn.hamburger-menu {min-width:40px;}
  .site-header.unified-site-header .standalone-hub-button {min-width:40px;}
  .site-header.unified-site-header .standalone-hub-bars {width:17px;flex-basis:17px;}
  .site-header.unified-site-header .audio-settings>summary {width:40px;height:40px;}
}
@media(max-width:375px){
  .site-header.unified-site-header {padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px));grid-template-columns:34px minmax(0,1fr) auto;gap:4px;}
  .site-header.unified-site-header .header-back {min-width:34px;}
  .site-header.unified-site-header :is(.logo,.brand.header-game-title) {min-width:76px;}
  .site-header.unified-site-header .header-back>span:first-child {flex-basis:30px;width:30px;height:30px;}
  .site-header.unified-site-header .logo .neon-text-alt {max-width:92px;font-size:11px;}
  .site-header.unified-site-header .header-brand-name {max-width:92px;font-size:11px;}
  .site-header.unified-site-header .logo .neon-text,
  .site-header.unified-site-header .header-game-title .brand-mark {display:none;}
  
  
  .site-header.unified-site-header >nav {gap:4px;}
  .site-header.unified-site-header :is(.home-audio-trigger,.home-share-button,.ug-share-poker,.audio-settings>summary,#hamburgerBtn.hamburger-menu,.standalone-hub-button) {width:36px;min-width:36px;height:40px;min-height:40px;}
  .site-header.unified-site-header #hamburgerBtn.hamburger-menu {min-width:36px;}
  .site-header.unified-site-header .standalone-hub-button {min-width:36px;}
}
@media(prefers-reduced-motion:reduce){
  .site-header.unified-site-header :is(.header-back,.home-audio-trigger,.home-share-button,.ug-share-poker,.audio-settings>summary,#hamburgerBtn.hamburger-menu,.standalone-hub-button) {transition:none;}
}
/* The two poker pages used an extra 6px utility-rail offset and a smaller
 * content-dependent button; remove these legacy differences. */
body.standalone-hub-page-holdem .site-header.unified-site-header nav>.standalone-hub-rail,
body.standalone-hub-page-seven-poker .site-header.unified-site-header nav>.standalone-hub-rail,
body.standalone-hub-page-omaha .site-header.unified-site-header nav>.standalone-hub-rail,
body.standalone-hub-page-draw-poker .site-header.unified-site-header nav>.standalone-hub-rail {
  margin-left:0;
}
.site-header.unified-site-header :is(#hamburgerBtn.hamburger-menu,.standalone-hub-button) {
  width:112px;
  flex:0 0 112px;
}
.site-header.unified-site-header :is(.home-share-button,.ug-share-poker) {
  width:96px;
  flex:0 0 96px;
}
@media(max-width:900px){
  .site-header.unified-site-header :is(.home-share-button,.ug-share-poker) {
    width:44px;flex:0 0 44px;
  }
}
@media(max-width:650px){
  .site-header.unified-site-header :is(#hamburgerBtn.hamburger-menu,.standalone-hub-button,.home-share-button,.ug-share-poker) {
    width:40px;flex:0 0 40px;
  }
}
@media(max-width:375px){
  .site-header.unified-site-header :is(#hamburgerBtn.hamburger-menu,.standalone-hub-button,.home-share-button,.ug-share-poker) {
    width:36px;flex:0 0 36px;
  }
}

/* A poker game title becomes an accessible link in the common game hub. */
.site-header.unified-site-header .brand.header-game-title {cursor:pointer;color:inherit;text-decoration:none;}
.site-header.unified-site-header .brand.header-game-title:hover .header-brand-name {color:var(--header-accent);}
.site-header.unified-site-header .brand.header-game-title:focus-visible {outline:3px solid var(--header-focus);outline-offset:3px;border-radius:8px;}

/* Poker appends an empty live-region span after the last navigation button;
 * as a flex item it otherwise creates a phantom trailing gap. */
.site-header.unified-site-header >nav>.ug-share-live:empty {display:none;}

/* Keep the live-region completely out of navigation flex layout. */
.site-header.unified-site-header >nav>.ug-share-live {position:absolute;right:max(12px,calc((100vw - 1160px)/2));top:100%;pointer-events:none;}

/* Scrollbar allocation differs between the four pages; keep masthead viewport-wide. */
.site-header.unified-site-header {width:100%;max-width:100%;}
/* In the compact three-action layout, center the title on the viewport itself,
 * not within the asymmetrical space between the home arrow and action rail. */
@media(max-width:650px){
  .site-header.unified-site-header :is(.logo,.brand.header-game-title) {
    position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
    grid-column:auto;grid-row:auto;min-width:0;width:max-content;
    max-width:calc(100vw - 296px);
    pointer-events:none;
  }
  .site-header.unified-site-header .logo .home-brand,
  .site-header.unified-site-header .header-brand-copy {max-width:100%;min-width:0}
  .site-header.unified-site-header .logo .neon-text-alt,
  .site-header.unified-site-header .header-brand-name {max-width:100%}
}
@media(max-width:500px){
  .site-header.unified-site-header .logo .neon-text,
  .site-header.unified-site-header .header-game-title .brand-mark {display:none}
}
@media(max-width:375px){
  .site-header.unified-site-header :is(.logo,.brand.header-game-title) {max-width:calc(100vw - 248px)}
}

/* Compact masthead: single-row flow layout on mobile, never wrapping to 2 rows or overlaying controls. */
@media (max-width:820px) {
  .site-header.unified-site-header {
    height:calc(72px + env(safe-area-inset-top,0px));
    min-height:calc(72px + env(safe-area-inset-top,0px));
    padding-top:env(safe-area-inset-top,0px);
    padding-bottom:0;
    grid-template-columns:auto minmax(0,1fr) auto;
    grid-template-rows:1fr;
    column-gap:8px;
    row-gap:0;
  }
  .site-header.unified-site-header .header-back {
    grid-column:1;grid-row:1;
    justify-self:start;min-width:36px;
  }
  .site-header.unified-site-header :is(.logo,.brand.header-game-title) {
    position:static;
    transform:none;
    left:auto;top:auto;
    grid-column:2;grid-row:1;
    justify-self:start;
    width:auto;min-width:0;
    max-width:100%;
    pointer-events:auto;
  }
  .site-header.unified-site-header .logo {justify-content:flex-start;}
  .site-header.unified-site-header .logo .home-brand,
  .site-header.unified-site-header .brand.header-game-title {max-width:100%;min-width:0;gap:6px;}
  .site-header.unified-site-header .header-brand-copy {max-width:100%;min-width:0;overflow:hidden;}
  .site-header.unified-site-header .logo .neon-text-alt,
  .site-header.unified-site-header .header-brand-name {max-width:100%;font-size:13px;}
  .site-header.unified-site-header >nav {
    grid-column:3;grid-row:1;
    justify-self:end;
    justify-content:flex-end;
    gap:5px;
    width:auto;
  }
  .site-header.unified-site-header :is(
    .home-audio-trigger,.home-share-button,.ug-share-poker,
    .audio-settings>summary,#hamburgerBtn.hamburger-menu,
    .standalone-hub-button,.site-theme-toggle
  ) {width:38px;min-width:38px;height:38px;min-height:38px;flex:0 0 38px;padding:0;border-radius:10px;}
  .site-header.unified-site-header :is(#hamburgerBtn .menu-trigger-label,.standalone-hub-button-label) {display:none;}
  .site-header.unified-site-header .header-back>span:first-child {width:34px;height:34px;flex-basis:34px;}
}
@media (max-width:480px) {
  .site-header.unified-site-header {
    height:calc(60px + env(safe-area-inset-top,0px));
    min-height:calc(60px + env(safe-area-inset-top,0px));
    padding-left:max(10px,env(safe-area-inset-left,0px));
    padding-right:max(10px,env(safe-area-inset-right,0px));
    column-gap:6px;
  }
  .site-header.unified-site-header .header-back {min-width:32px;}
  .site-header.unified-site-header .header-back>span:first-child {width:32px;height:32px;flex-basis:32px;font-size:16px;border-radius:9px;}
  .site-header.unified-site-header .logo .neon-text,
  .site-header.unified-site-header .header-game-title .brand-mark {display:grid;width:26px;height:30px;flex-basis:26px;font-size:16px;border-radius:8px;}
  .site-header.unified-site-header .logo .neon-text-alt,
  .site-header.unified-site-header .header-brand-name {font-size:12px;}
  .site-header.unified-site-header :is(.unified-header-subtitle,.header-title-ko) {display:block;font-size:9px;margin-top:1px;}
  .site-header.unified-site-header >nav {gap:4px;}
  .site-header.unified-site-header :is(
    .home-audio-trigger,.home-share-button,.ug-share-poker,
    .audio-settings>summary,#hamburgerBtn.hamburger-menu,
    .standalone-hub-button,.site-theme-toggle
  ) {width:34px;min-width:34px;height:34px;min-height:34px;flex:0 0 34px;border-radius:9px;}
  .site-header.unified-site-header .site-theme-toggle {font-size:19px;}
}
@media (max-width:360px) {
  .site-header.unified-site-header {padding-left:max(8px,env(safe-area-inset-left,0px));padding-right:max(8px,env(safe-area-inset-right,0px));column-gap:4px;}
  .site-header.unified-site-header .logo .neon-text,
  .site-header.unified-site-header .header-game-title .brand-mark {display:none;}
  .site-header.unified-site-header >nav {gap:3px;}
  .site-header.unified-site-header :is(
    .home-audio-trigger,.home-share-button,.ug-share-poker,
    .audio-settings>summary,#hamburgerBtn.hamburger-menu,
    .standalone-hub-button,.site-theme-toggle
  ) {width:32px;min-width:32px;height:32px;min-height:32px;flex:0 0 32px;}
}
