.language-picker{position:relative;flex:none;z-index:90;font-size:12px;color:var(--ink,#f2f3f5)}
.language-picker summary{display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;list-style:none;min-height:38px;padding:6px 10px;border:1px solid var(--line,#292d34);border-radius:6px;white-space:nowrap}
.language-picker summary::-webkit-details-marker{display:none}.language-picker summary>span:first-child{font-size:21px;line-height:1}
.language-picker summary:focus-visible,.language-options button:focus-visible{outline:2px solid var(--gold,#efcfa5);outline-offset:2px}
.language-options{position:absolute;top:calc(100% + 8px);right:0;width:172px;padding:6px;background:var(--panel,#111316);border:1px solid var(--line,#292d34);border-radius:8px;box-shadow:0 10px 24px #0003}
.language-options button{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:4px;min-height:40px;padding:10px 12px;font-family:inherit;font-size:12px;font-weight:500;line-height:1.4;text-align:left;background:none;color:inherit;cursor:pointer}
.language-options button:hover{background:var(--field,#1c1f24)}.language-options button[aria-pressed=true]:after{content:'';width:6px;height:6px;border-radius:50%;background:var(--green,#328862)}
.home-header .language-picker{color:var(--ink);margin-left:0}.home-header .language-options{background:var(--paper)}.home-header .language-options button:hover{background:var(--field,#e7ddc7)}.home-header .language-picker summary{border-color:var(--line)}
html:not([lang=en]) .hero h1{font-size:clamp(45px,5.5vw,85px);line-height:1.15;letter-spacing:-.025em}
html[lang=ja] body,html[lang=ko] body{word-break:normal;overflow-wrap:anywhere}
html:not([lang=en]) header nav{gap:12px}html:not([lang=en]) .hero-facts{line-height:1.7}
@media(max-width:1100px){header:not(.home-header){gap:12px;padding-inline:16px}header:not(.home-header) nav{gap:6px}.language-picker summary{padding-inline:8px}.home-header .language-picker{margin-left:0}.home-header{gap:18px}}
@media(max-width:700px){header:not(.home-header) .language-picker{margin-left:0}header:not(.home-header) .wallet{margin-left:auto}.language-code{display:none}.language-picker summary{border:0;padding:4px;min-width:32px}.language-options{position:fixed;right:12px;top:66px}.home-header{gap:10px}.home-header .language-picker{margin-left:0}.home-header .language-options{top:96px}html:not([lang=en]) .hero h1{font-size:clamp(40px,11vw,62px)}.home-header .header-trade{font-size:11px;gap:8px;padding:10px}.home-header .home-brand{font-size:21px}}
@media(max-width:700px){html[lang=ja] .hero h1{font-size:clamp(28px,8.5vw,36px);line-height:1.3;overflow-wrap:normal;word-break:normal}}

/* Keep account actions together, with language selection at the far right. */
header:not(.home-header) .language-picker{margin-left:-16px}
.wallet #header-deposit{background:#30271e;border-color:var(--gold);color:var(--gold);white-space:nowrap}
.wallet #header-deposit:hover{background:#443522}
@media(max-width:1400px){header:not(.home-header){height:auto;min-height:64px;flex-wrap:wrap;gap:12px;padding:12px 16px 0}header:not(.home-header) nav{order:3;width:100%;min-height:42px;overflow-x:auto;flex-shrink:0}header:not(.home-header) nav>*{flex-shrink:0;white-space:nowrap}header:not(.home-header) .language-picker{margin-left:0}}
@media(max-width:520px){header:not(.home-header) .brand{font-size:17px}header:not(.home-header){gap:8px}header:not(.home-header) .wallet{gap:6px}header:not(.home-header) .wallet>button{padding-inline:10px}header:not(.home-header) .language-picker summary{min-width:28px}}
@media(max-width:400px){header:not(.home-header) .brand{width:100%}header:not(.home-header) .wallet{margin-left:0;flex:1}header:not(.home-header) .wallet #connect{margin-left:auto}}

.language-picker summary{width:38px;height:38px;padding:8px;border-radius:50%}.language-globe{display:block;flex:none}

/* A compact black-and-champagne account toolbar. */
header:not(.home-header) .wallet{gap:10px}
.wallet #header-deposit{height:38px;min-height:38px;padding:0 20px;background:var(--gold);border-color:var(--gold);color:#211a12;font-size:12px;font-weight:650;border-radius:20px}
.wallet #header-deposit:hover{background:#f8dfbe;border-color:#f8dfbe}
.wallet #connect{display:flex;align-items:center;justify-content:center;gap:12px;height:38px;min-height:38px;padding:0 16px;border:1px solid #333230;border-radius:20px;background:#191a1c;color:#eeece8;font-size:12px;font-weight:550;white-space:nowrap}
.wallet #connect:hover{background:#242424;border-color:#6c5d49}
.wallet #connect[data-connected=true]::after{content:'';width:6px;height:6px;border-right:1.5px solid #bcb3a7;border-bottom:1.5px solid #bcb3a7;transform:rotate(45deg) translateY(-2px);margin:0 2px 0 4px}
.wallet #connect[aria-expanded=true]{border-color:var(--gold);background:#24211d}
.wallet #connect:disabled{color:#858b94;border-color:var(--line);background:#151619}
.wallet #network{border:0;background:none;padding:0 4px;font-size:10px;letter-spacing:.015em;color:#aaa7a2;white-space:nowrap}
header:not(.home-header) .language-picker summary{width:38px;height:38px;min-width:38px;min-height:38px;padding:9px;border:1px solid #333230;background:#111214;color:#d4d0ca;transition:background .16s,border-color .16s,color .16s}
header:not(.home-header) .language-picker summary:hover,header:not(.home-header) .language-picker[open] summary{background:#24211d;border-color:#6c5d49;color:var(--gold)}
header:not(.home-header) .language-globe{width:18px;height:18px}
header:not(.home-header) .language-options{border-color:#38332c;background:#141516;padding:6px;border-radius:12px;box-shadow:0 12px 32px #0006}
header:not(.home-header) .language-options button{border-radius:7px;min-height:42px}
header:not(.home-header) .language-options button[aria-pressed=true]{color:var(--gold);background:#25211b}
header:not(.home-header) .language-options button[aria-pressed=true]:after{background:var(--gold)}
@media(max-width:520px){header:not(.home-header) .wallet{gap:8px}.wallet #header-deposit{padding-inline:16px}.wallet #connect{padding-inline:12px}}

/* Home navigation uses the same compact action rhythm as the hero. */
header.home-header{gap:12px}
html header.home-header nav{align-items:center;gap:24px;margin-right:20px}
.home-header nav a{display:inline-flex;align-items:center;min-height:44px;color:#b9b5ae;font-size:12px;white-space:nowrap}
.home-header nav a:hover{color:var(--gold)}
.home-header .header-trade{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 20px;gap:16px;font-size:12px;font-weight:600;line-height:1;border-radius:24px;background:var(--gold);border-color:var(--gold);color:#211a12}
.home-header .header-trade:hover{background:#f8dfbe;border-color:#f8dfbe;color:#211a12}
.home-header .header-trade svg{flex:none}
.home-header .language-picker summary{width:38px;height:38px;border:1px solid #333230;background:#111214;color:#d4d0ca}
.home-header .language-picker summary:hover{background:#24211d;color:var(--gold);border-color:#6c5d49}
@media(max-width:600px){.home-header .header-trade{margin-left:auto;height:40px;padding-inline:14px;gap:10px}header.home-header{justify-content:flex-start;gap:10px}}
@media(max-width:360px){.home-header .header-trade{padding-inline:11px;font-size:11px;gap:8px}header.home-header{gap:8px}.home-header .language-picker summary{width:34px;height:34px;min-width:34px;padding:7px}}
