/* Black masthead and outline navigation. */
.site-header {
  --header-fill:#000;
  --header-edge:#68705a;
  --header-ink:#d5d8ca;
  --header-accent:#c7cf9c;
  --header-soft:#aab39b;
  --header-hover:#c7cf9c12;
  position:sticky; top:0; z-index:100; display:block; padding:0;
  background:var(--header-fill); color:var(--header-ink); border:0;
  border-bottom:1px solid var(--header-edge);
  box-shadow:none; backdrop-filter:none; isolation:isolate;
}
html[data-theme=orange] .site-header {
  --header-edge:#80450c; --header-ink:#ff840d; --header-accent:#ff840d;
  --header-soft:#c18a50; --header-hover:#ff840d12;
  background:#000; border-bottom-width:1px; box-shadow:none;
}
.site-header::before,.site-header::after,.header-brand::before,.header-brand::after { display:none; }
.header-inner { width:100%; max-width:1800px; margin:0 auto; padding:12px clamp(18px,4vw,64px); display:grid; grid-template-columns:minmax(210px,1fr) 80px 220px; grid-template-areas:"brand currency account" "nav nav nav"; align-items:center; gap:12px 22px; }
.header-brand { grid-area:brand; min-width:0; display:flex; align-items:center; }
.site-header .brand { display:flex; align-items:center; gap:12px; font-family:var(--display); color:var(--header-ink); }
.header-wordmark { font:500 clamp(22px,2vw,29px)/1.2 var(--display); letter-spacing:-.045em; white-space:nowrap; }
.header-dinosaur-logo { display:block; flex:0 0 40px; width:40px; height:45px; background:currentColor; mask-image:url("../images/antipodea-dinosaur-logo.png"); mask-repeat:no-repeat; mask-size:142% 122%; mask-position:center; }
.site-header #primary-navigation { grid-area:nav; min-width:0; width:100%; padding:0; border:0; }
.site-header .nav-list { list-style:none; display:flex; align-items:center; flex-wrap:wrap; justify-content:flex-start; gap:8px; width:100%; margin:0; padding:0; border:0; background:transparent; }
.site-header .nav-list>li { position:relative; display:flex; align-items:center; min-width:0; border:0; }
.site-header .nav-list>li>a,.site-header .nav-parent-trigger {
  position:relative; display:flex; align-items:center; justify-content:center; gap:7px;
  min-height:34px; padding:7px 13px; border:1px solid var(--header-edge); border-radius:999px;
  background:transparent; color:var(--header-ink); font:700 12px/1.4 var(--display);
  text-transform:uppercase; letter-spacing:.025em; white-space:nowrap; cursor:pointer; text-decoration:none;
}
.site-header .nav-islecom-label { text-transform:none; }
.site-header .nav-list>li>a::before,.site-header .nav-list>li>a::after { display:none; }
.site-header .nav-list>li>a:hover,.site-header .nav-list>li>a:focus-visible,
.site-header .nav-parent-trigger:hover,.site-header .nav-parent-trigger[aria-expanded=true],
.site-header .nav-list>li>a[aria-current=page],.site-header .nav-list>li.current-menu-item>a {
  background:var(--header-hover); border-color:var(--header-accent); color:var(--header-accent);
}
.site-header .header-icon { width:14px; height:14px; flex:0 0 14px; }
.site-header .nav-parent-trigger>.header-icon:last-child { width:9px; height:9px; flex-basis:9px; }
.site-header :is(a,button,summary):focus-visible { outline:2px solid var(--header-accent); outline-offset:4px; }
.site-header .sub-menu { display:none; position:absolute; top:calc(100% + 8px); left:0; z-index:10; width:270px; margin:0; padding:7px; list-style:none; background:#000; color:var(--header-ink); border:1px solid var(--header-edge); border-radius:8px; box-shadow:0 12px 24px #0008; }
.site-header .sub-menu::before { content:""; position:absolute; top:-10px; left:0; right:0; height:10px; }
.site-header .submenu-open>.sub-menu { display:block; }
.site-header .header-community .sub-menu { left:auto; right:0; }
.site-header .sub-menu li { position:relative; border:0; }
.site-header .sub-menu a,.site-header .header-menu-pending { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 12px; font:500 12px/1.5 var(--display); color:var(--header-ink); border-radius:4px; }
.site-header .sub-menu a:hover { background:var(--header-hover); color:var(--header-accent); }
.header-menu-pending small { display:block; font:10px/1.5 var(--mono); margin-top:4px; color:var(--header-soft); }
.site-header .header-menu-pending { color:var(--header-soft); }
.site-header .sub-menu .sub-menu { position:static; width:auto; margin:5px; box-shadow:none; }
.site-header .submenu-toggle { min-width:28px; min-height:32px; margin-left:3px; border:1px solid var(--header-edge); border-radius:50%; background:#000; color:var(--header-accent); cursor:pointer; }
.header-currency { grid-area:currency; display:flex; align-items:center; justify-content:center; gap:8px; color:var(--header-accent); }
.site-header .header-currency>.header-icon { width:22px; height:22px; flex-basis:22px; }
.header-currency strong { display:block; font:500 14px/1.2 var(--display); color:var(--header-ink); }
.header-currency small { display:block; margin-top:4px; font:7px/1.3 var(--mono); letter-spacing:.04em; color:var(--header-soft); }
.site-header .account { grid-area:account; min-width:0; margin:0; }
.site-header .account details { position:relative; width:100%; }
.site-header .account summary { display:flex; align-items:center; gap:10px; padding:5px 10px 5px 5px; min-height:44px; border:1px solid var(--header-edge); border-radius:999px; background:transparent; color:var(--header-ink); }
.site-header .account summary:hover,.site-header .account details[open]>summary { border-color:var(--header-accent); background:var(--header-hover); }
.site-header .account summary img { width:32px; height:32px; flex:0 0 32px; border-radius:50%; border:1px solid var(--header-edge); padding:0; }
.site-header .account summary>.account-identity { display:block; min-width:0; flex:1; max-width:none; overflow:hidden; }
.account-identity small { display:block; font:7px/1.3 var(--mono); letter-spacing:.08em; color:var(--header-soft); margin-bottom:3px; }
.site-header .account-identity strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:600 12px/1.3 var(--sans); color:var(--header-ink); }
.account-chevron { display:flex; margin-left:auto; color:var(--header-accent); }
.site-header .account-chevron .header-icon { width:11px; height:11px; flex-basis:11px; }
.site-header .account details[open] .account-chevron { transform:rotate(180deg); }
.site-header .account .button { width:100%; min-height:40px; border:1px solid var(--header-edge); border-radius:999px; background:transparent; color:var(--header-ink); padding:8px 12px; font:500 11px/1.5 var(--display); }
.site-header .account-dropdown { position:absolute; top:calc(100% + 10px); right:0; width:250px; max-width:calc(100vw - 30px); padding:7px; background:#000; border:1px solid var(--header-edge); border-radius:8px; box-shadow:0 12px 24px #0008; z-index:11; }
.site-header .account-dropdown a { display:flex; align-items:center; gap:12px; min-height:42px; padding:10px; font:500 12px/1.5 var(--display); color:var(--header-ink); border-radius:4px; }
.site-header .account-dropdown a:hover { color:var(--header-accent); background:var(--header-hover); }
.header-channel { font-size:11px; color:var(--header-soft); }
.site-header .menu-toggle { display:none; }
/* The new flat masthead owns its space; no stepped overlap is needed. */
.site-header + #main > .hero:first-child { margin-top:0; padding-top:0; }
@media(min-width:1401px) {
  .header-inner { grid-template-columns:220px minmax(0,1fr) 76px 200px; grid-template-areas:"brand nav currency account"; gap:18px; min-height:74px; }
  .site-header .nav-list { flex-wrap:nowrap; justify-content:flex-end; gap:6px; }
  .site-header .nav-list>li>a,.site-header .nav-parent-trigger { padding-inline:10px; }
}
@media(max-width:1200px) {
  .header-inner { grid-template-columns:minmax(160px,1fr) auto 80px minmax(170px,240px); grid-template-areas:"brand menu currency account" "nav nav nav nav"; gap:0 14px; }
  .site-header .menu-toggle { grid-area:menu; display:block; min-height:44px; padding:7px 12px; border:1px solid var(--header-edge); border-radius:999px; background:#000; color:var(--header-ink); font:11px/1.5 var(--display); }
  .header-nav-ready .site-header #primary-navigation:not(.is-open) { display:none; }
  .site-header .account { width:min(100%,300px); justify-self:end; }
  .site-header #primary-navigation { max-height:55dvh; overflow:auto; padding:5px; margin-top:10px; }
  .site-header .nav-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .site-header .nav-list>li>a,.site-header .nav-parent-trigger { flex:1; min-height:42px; justify-content:flex-start; padding-inline:14px; }
  .site-header .header-community { grid-column:1/-1; }
  .site-header .nav-list>li { flex-wrap:wrap; }
  .site-header .sub-menu { position:static; width:100%; flex-basis:100%; margin-top:8px; box-shadow:none; }
  .site-header .sub-menu::before { display:none; }
}
@media(max-width:600px) {
  .header-inner { position:relative; padding:10px 16px; grid-template-columns:auto 65px minmax(0,1fr); grid-template-areas:"brand brand brand" "menu currency account" "nav nav nav"; gap:8px; }
  .header-wordmark { font-size:20px; }
  .header-dinosaur-logo { width:30px; height:35px; flex-basis:30px; }
  .site-header .brand { gap:7px; }
  .site-header .menu-toggle { padding-inline:9px; font-size:10px; }
  .header-currency { gap:5px; }
  .header-currency strong { font-size:12px; }
  .header-currency small { font-size:6px; }
  .site-header .header-currency>.header-icon { width:18px; height:18px; flex-basis:18px; }
  .site-header .account { width:100%; }
  .site-header .account summary { gap:6px; padding-right:8px; }
  .site-header .account summary img { width:28px; height:28px; flex-basis:28px; }
  .site-header .account-identity strong { font-size:11px; }
  .site-header .account .button { padding-inline:8px; font-size:10px; white-space:normal; }
  .site-header .header-currency { position:static; }
  .header-currency .currency-popover { right:16px; top:calc(100% + 8px); }
  .header-currency .currency-popover::after { display:none; }
  .site-header .currency-balance-trigger { min-height:44px; }
}
html:not(.header-nav-ready) .site-header .header-community:hover>.sub-menu,
html:not(.header-nav-ready) .site-header .header-community:focus-within>.sub-menu { display:block; }

/* Keep the masthead genuinely black in both visitor palettes. */
html[data-theme] header.site-header { --header-fill:#000; }
html[data-theme] .site-header .nav-list { background:transparent; }
html[data-theme] .site-header .account-dropdown { background:#000; }
@media(min-width:1201px) and (max-width:1400px) {
  .header-inner { grid-template-columns:185px minmax(0,1fr) 65px 170px; grid-template-areas:"brand nav currency account"; gap:10px; min-height:74px; }
  .header-wordmark { font-size:24px; }
  .site-header .nav-list { flex-wrap:nowrap; justify-content:flex-end; gap:5px; }
  .site-header .nav-list>li>a,.site-header .nav-parent-trigger { padding-inline:7px; font-size:11.5px; gap:5px; }
  .site-header .nav-list>li>a>.header-icon,.site-header .nav-parent-trigger>.header-icon:first-child { width:12px; height:12px; flex-basis:12px; }
  .site-header .account summary { padding-right:8px; gap:7px; }
  .site-header .account-identity strong { font-size:11px; }
}

@media(max-width:380px) { .header-wordmark { font-size:17px; } .header-dinosaur-logo { width:26px; height:30px; flex-basis:26px; } .site-header .brand { gap:6px; } }

html[data-theme] .site-header .brand { color:var(--header-ink); }

/* Dropdown destinations and pending items share one left-aligned icon/text grid. */
.site-header .sub-menu a,.site-header .header-menu-pending {
  display:grid; grid-template-columns:18px minmax(0,1fr); align-items:center;
  justify-content:start; text-align:left; gap:12px; width:100%; min-height:52px; padding:12px;
}
.site-header .sub-menu .header-icon { width:16px; height:16px; justify-self:center; }
.site-header .header-menu-pending>span { min-width:0; }
.site-header .header-menu-pending small { margin-top:5px; }
.site-header .sub-menu li+li { border-top:1px solid color-mix(in srgb,var(--header-edge) 35%,transparent); }

/* A fractional soft edge blends the curved outlines without changing pill geometry. */
.site-header .nav-list>li>a,.site-header .nav-parent-trigger,
.site-header .account summary,.site-header .account .button,.site-header .menu-toggle {
  background-clip:padding-box;
  box-shadow:0 0 .75px .15px color-mix(in srgb,var(--header-edge) 55%,transparent);
}
.site-header .nav-list>li>a:hover,.site-header .nav-parent-trigger:hover,
.site-header .nav-parent-trigger[aria-expanded=true],.site-header .nav-list>li>a[aria-current=page] {
  box-shadow:0 0 .75px .15px color-mix(in srgb,var(--header-accent) 55%,transparent);
}
.site-header .currency-balance-trigger>.header-currency-coin { width:26px; height:26px; flex:0 0 26px; object-fit:contain; display:block; }
@media(max-width:1400px) { .site-header .currency-balance-trigger>.header-currency-coin { width:22px; height:22px; flex-basis:22px; } }

/* Balance detail: anchored to the coin/amount, usable with hover, focus or tap. */
.header-currency { position:relative; }
.site-header .currency-balance-trigger { display:flex; align-items:center; justify-content:center; gap:8px; padding:4px 0; margin:0; border:0; border-radius:4px; background:transparent; box-shadow:none; color:var(--header-accent); font:inherit; text-align:left; cursor:pointer; }
.site-header .currency-balance-trigger:hover { color:var(--header-accent); background:transparent; }
.site-header .currency-balance-trigger[aria-expanded=true] .header-currency-coin { filter:drop-shadow(0 0 3px #d3833638); }
.currency-popover { display:none; position:absolute; top:calc(100% + 10px); right:0; z-index:15; width:300px; max-width:calc(100vw - 32px); padding:16px 18px; border:1px solid var(--header-edge); border-radius:6px; background:var(--header-fill); color:var(--header-ink); box-shadow:0 10px 24px #0009; text-align:left; }
.currency-popover:not([hidden]),html:not(.currency-tooltip-ready) .header-currency:hover .currency-popover,html:not(.currency-tooltip-ready) .header-currency:focus-within .currency-popover { display:block; }
.currency-popover::before { content:""; position:absolute; left:0; right:0; top:-12px; height:12px; }
.currency-popover::after { content:""; position:absolute; top:-5px; right:25px; width:8px; height:8px; transform:rotate(45deg); background:var(--header-fill); border-top:1px solid var(--header-edge); border-left:1px solid var(--header-edge); }
.site-header .currency-popover p { margin:0; font:11px/1.7 var(--mono); color:var(--header-soft); }
.site-header .currency-popover p+p { margin-top:8px; padding-top:8px; border-top:1px solid color-mix(in srgb,var(--header-edge) 45%,transparent); }
.site-header .currency-popover strong { display:inline; font:500 13px/1.7 var(--display); color:var(--header-accent); white-space:nowrap; }
@media(max-width:600px) { .site-header .currency-balance-trigger { gap:5px; } }
/* Steam-linked player controls: shortcuts remain outside the collapsed menu. */
.header-player-shortcuts { display:none; }
@media (min-width:601px) and (max-width:1200px) {
  .steam-linked .header-currency { margin-left:10px; }
}
@media (min-width:1201px) {
  .steam-unlinked .header-inner { grid-template-columns:185px minmax(0,1fr) 200px; grid-template-areas:"brand nav account"; }
}
@media (max-width:1200px) {
  .steam-linked .header-inner { grid-template-columns:minmax(125px,1fr) auto auto 65px minmax(130px,200px); grid-template-areas:"brand shortcuts menu currency account" "nav nav nav nav nav"; column-gap:10px; }
  .steam-unlinked .header-inner { grid-template-columns:minmax(0,1fr) auto minmax(130px,220px); grid-template-areas:"brand menu account" "nav nav nav"; }
  .site-header .header-player-shortcuts { grid-area:shortcuts; display:flex; gap:5px; width:auto; padding:0; border:0; }
  .header-player-shortcuts a { display:flex; align-items:center; justify-content:center; gap:6px; min-width:36px; min-height:44px; padding:7px 10px; border:1px solid var(--header-edge); border-radius:999px; color:var(--header-ink); font:11px/1.5 var(--display); white-space:nowrap; }
  .header-player-shortcuts a:hover { border-color:var(--header-accent); background:var(--header-hover); }
}
@media (max-width:950px) {
  .header-player-shortcuts a { padding:7px; }
  .header-player-shortcuts a span { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
}
@media (max-width:600px) {
  .steam-linked .header-inner { grid-template-columns:auto auto 55px minmax(0,1fr); grid-template-areas:"brand brand brand brand" "shortcuts menu currency account" "nav nav nav nav"; gap:8px 6px; padding-inline:12px; }
  .steam-unlinked .header-inner { grid-template-columns:auto minmax(0,1fr); grid-template-areas:"brand brand" "menu account" "nav nav"; }
  .header-player-shortcuts { gap:4px; }
  .site-header .currency-balance-trigger { gap:4px; }
  .site-header .currency-balance-trigger>.header-currency-coin { width:20px; height:20px; flex-basis:20px; }
  .site-header .header-currency strong { font-size:11px; }
  .site-header .header-currency small { font-size:5px; }
  .site-header .account-identity small { white-space:nowrap; }
}
@media (max-width:360px) {
  .steam-linked .account-identity { display:none !important; }
  .steam-linked .account summary { justify-content:space-between; }
}
