.currency-switch { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid rgba(145,165,178,.25); border-radius: 12px; background: rgba(12,23,34,.8); }
.currency-switch a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; color: #aebfc9; text-decoration: none; font: 600 12px/1.2 'Segoe UI',sans-serif; letter-spacing: .04em; border-radius: 8px; }
.currency-switch a[aria-current="page"] { background: #173c42; color: #d4f4ee; }
.currency-switch a:focus-visible { outline: 2px solid #00a3f7; outline-offset: 3px; }
.currency-switch small { font-size: 10px; opacity: .72; }
.header > .header-brand { flex: 0 0 auto; }
.header > .currency-switch { flex-shrink: 0; }
[data-currency="pkoin"] .header-v2-logo-shell--source .header-v2-logo {
    filter: hue-rotate(-65deg) !important;
}
[data-currency="ton"] .header-v2-logo-shell--source .header-v2-logo {
    filter: hue-rotate(95deg) !important;
}
@media (max-width: 1320px) {
    .header { flex-wrap: wrap; }
    .header > .header-utility { margin-left: auto; }
    .header > .currency-switch { order: 3; width: 100%; margin-top: 10px; }
    .header > .currency-switch a { flex: 1; }
}
@media (max-width: 767px) {
    .header > .header-brand { flex: 1 1 0; }
    .header .header-brand-link { flex: 0 0 auto; }
    .header .header-v2-logo-shell.header-v2-logo-shell--source { width: clamp(104px,32vw,140px); max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 900px) {
    .header { column-gap: 8px; }
    .header .header-v2-logo-shell.header-v2-logo-shell--source { width: 124px; }
}
.sport-icon { display: inline-block; flex: none; margin-inline-end: .45em; line-height: 1; }
#tabsRow .tab { white-space: nowrap; }
.coupon-pkoin-claim { display: grid; gap: 10px; margin-top: 16px; }
.coupon-pkoin-claim[hidden] { display: none; }
.coupon-pkoin-claim input { width: 100%; min-width: 0; padding: 12px; background: #07111c; color: #fff; border: 1px solid #364f65; border-radius: 10px; }
.coupon-ton-claim { display: grid; gap: 10px; margin-top: 16px; overflow-wrap: anywhere; }
.coupon-ton-claim input { width: 100%; min-width: 0; padding: 12px; background: var(--pt-surface); color: var(--pt-text); border: 1px solid var(--pt-border-active); border-radius: 10px; }
.coupon-ton-claim details, .coupon-ton-claim label { overflow-wrap: anywhere; }
.coupon-ton-claim img { background: #fff; max-width: 100%; }
.coupon-ton-claim [hidden] { display: none !important; }
.header-rules-link { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 1px solid rgba(145,165,178,.35); border-radius: 999px; background: rgba(12,23,34,.8); color: #eef6f8; font: 700 13px/1.2 'Segoe UI',sans-serif; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.header-rules-link:hover { border-color: rgba(145,165,178,.6); background: rgba(23,60,66,.9); }
.header-rules-link:focus-visible { outline: 2px solid #00a3f7; outline-offset: 3px; }
/* Keep the rules link and currency switch on a second row before desktop controls overflow. */
@media (max-width: 1320px) {
    .header > .currency-switch { width: auto; flex: 1 1 calc(100% - 110px); min-width: 0; }
    .header > .header-rules-link { order: 4; margin-top: 10px; min-height: 48px; }
}
@media (max-width: 767px) { .header > .header-rules-link { padding: 0 12px; font-size: 12px; } }
@media (max-width: 480px) { .header > .currency-switch small { display: none; } }
