/* Header: strip, masthead + mana rain, nav tiles (desktop) · slim bar + menu sheet (phone ≤ 760px). */

.tnt-header { position: relative; z-index: 3; background: var(--tnt-bg-0); }

/* top strip */
.tnt-strip { background: var(--tnt-bg-deep); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.tnt-strip__in { min-height: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; font-family: var(--tnt-font-ui); font-weight: 700; font-size: 12px; color: var(--tnt-muted); text-transform: uppercase; }
.tnt-strip__new { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--tnt-text); }
.tnt-strip__chip { padding: 2px 8px; background: var(--tnt-gold); color: var(--tnt-gold-ink); letter-spacing: 0.08em; text-transform: uppercase; animation: tntGlow 2.8s ease-in-out infinite; }
.tnt-strip__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.tnt-strip__arrow { color: var(--tnt-gold); transition: transform .2s; }
.tnt-strip__new:hover { color: var(--tnt-white); }
.tnt-strip__new:hover .tnt-strip__arrow { transform: translateX(4px); }
.tnt-strip__links a { color: var(--tnt-muted); }
.tnt-strip__links a:hover { color: var(--tnt-white); }
@keyframes tntGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(197, 160, 89, 0); } 50% { box-shadow: 0 0 14px 2px rgba(197, 160, 89, 0.45); } }

/* masthead */
.tnt-mast { position: relative; overflow: hidden; }
.tnt-rain { position: absolute; inset: 0; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 0%, #000 50%, transparent 92%); mask-image: linear-gradient(#000 0%, #000 50%, transparent 92%); }
.tnt-mote { position: absolute; top: -12%; font-family: Mana; line-height: 1; will-change: transform; animation-name: tntMoteFall; animation-timing-function: linear; animation-iteration-count: infinite; }
.tnt-mote--l0 { opacity: .08; filter: blur(1.6px); }
.tnt-mote--l1 { opacity: .12; filter: blur(.6px); }
.tnt-mote--l2 { opacity: .16; }
.tnt-mote--w { color: #fdf6e3; } .tnt-mote--u { color: #3b82f6; } .tnt-mote--b { color: #a8a29e; } .tnt-mote--r { color: #ef4444; } .tnt-mote--g { color: #22c55e; } .tnt-mote--c { color: var(--tnt-gold); }
@keyframes tntMoteFall { 0% { transform: translate3d(0, 0, 0) rotate(var(--r0)); } 100% { transform: translate3d(var(--dx), 340px, 0) rotate(var(--r1)); } }

.tnt-mast__brand { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; max-width: var(--tnt-page); margin: 0 auto; padding: 40px var(--tnt-gutter) 32px; color: var(--tnt-white); }
.tnt-mast__logo { position: relative; display: block; }
.tnt-mast__logo img { width: 132px; height: 132px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6)); }
.tnt-mast__words { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.tnt-mast__words small { font-family: var(--tnt-font-display); font-weight: 400; font-size: 46px; letter-spacing: 0.1em; color: var(--tnt-white); text-transform: uppercase; }
.tnt-mast__words b { margin-top: 0; font-family: var(--tnt-font-display); font-weight: 400; font-size: 128px; line-height: .84; letter-spacing: 0.01em; color: var(--tnt-gold); text-transform: uppercase; text-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); }
.tnt-mast__brand:hover { color: var(--tnt-white); }

/* nav tiles */
.tnt-nav { position: relative; z-index: 2; padding-bottom: 16px; }
.tnt-nav__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px; margin: 0; padding: 4px; list-style: none; background: var(--tnt-bg-deep); border: 1px solid rgba(197, 160, 89, 0.22); border-top: 2px solid var(--tnt-gold); }
.tnt-nav__grid li { position: relative; animation: tntNavIn .5s var(--tnt-ease) both; animation-delay: calc(var(--i) * 70ms); }
.tnt-tile { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; height: 70px; padding: 0 12px; overflow: hidden; background: var(--tnt-bg-2); color: var(--tnt-text); font-family: var(--tnt-font-display); font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(197, 160, 89, 0.3); transition: transform .2s, background-color .2s, box-shadow .2s, color .2s; }
.tnt-tile svg { color: var(--tnt-gold); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), color .2s; }
.tnt-tile::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent); transform: skewX(-20deg); opacity: 0; }
.tnt-tile:hover { transform: translateY(-2px); color: var(--tnt-white); background: #222; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -3px 0 var(--tnt-gold); }
.tnt-tile:hover svg { transform: scale(1.15) rotate(-6deg); }
.tnt-tile:hover::after { opacity: 1; animation: tntGlint .7s ease-out; }
.tnt-tile[aria-current="page"] { background: var(--tnt-gold); color: var(--tnt-gold-ink); box-shadow: none; }
.tnt-tile[aria-current="page"] svg { color: var(--tnt-gold-ink); }
.tnt-nav__grid li:has(> .tnt-tile[aria-current="page"])::after { content: ""; position: absolute; left: 50%; bottom: -9px; z-index: 3; width: 0; height: 0; margin-left: -9px; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 9px solid var(--tnt-gold); pointer-events: none; animation: tntNavPoint 1.6s ease-in-out infinite; }
@keyframes tntNavPoint { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .tnt-nav__grid li::after { animation: none !important; } }
@keyframes tntNavIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tntGlint { from { left: -40%; } to { left: 120%; } }

/* phone bar + menu sheet (hidden on desktop) */
.tnt-mbar, .tnt-msheet { display: none; }

@media (max-width: 760px) {
	:root { --tnt-bar-h: calc(58px + var(--tnt-safe-top)); }
	/* Keep focused controls above the fixed bottom navigation. */
	html { scroll-padding-bottom: calc(var(--tnt-bottom-clearance) + 12px); }
	.tnt-strip, .tnt-mast, .tnt-nav { display: none; }
	.tnt-header::after { display: none; }
	.tnt-mbar { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; gap: 6px; height: var(--tnt-bar-h); padding: var(--tnt-safe-top) 6px 0 12px; background: rgba(9, 9, 9, 0.97); border-bottom: 1px solid rgba(197, 160, 89, 0.45); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
	.tnt-content { padding-top: var(--tnt-bar-h); }
	.tnt-mbar__brand { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: var(--tnt-white); }
	.tnt-mbar__brand img { width: 36px; height: 36px; object-fit: contain; }
	.tnt-mbar__brand span { display: flex; flex-direction: column; line-height: 1; }
	.tnt-mbar__brand small { font-family: var(--tnt-font-ui); font-weight: 700; font-size: var(--tnt-ui-small); letter-spacing: 0.04em; text-transform: uppercase; }
	.tnt-mbar__brand b { margin-top: 2px; font-family: var(--tnt-font-display); font-weight: 400; font-size: 23px; color: var(--tnt-gold); text-transform: uppercase; }
	.tnt-mbar__ic { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--tnt-gold-2); cursor: pointer; }
	.tnt-mbar__close { display: none; }
	.tnt-mbar__menu[aria-expanded="true"] { background: var(--tnt-gold); color: var(--tnt-gold-ink); }
	.tnt-mbar__menu[aria-expanded="true"] .tnt-mbar__open { display: none; }
	.tnt-mbar__menu[aria-expanded="true"] .tnt-mbar__close { display: inline; }

	.tnt-msheet:not([hidden]) { position: fixed; top: var(--tnt-bar-h); left: 0; right: 0; bottom: 0; z-index: 89; display: block; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px calc(28px + var(--tnt-safe-bottom)); background: var(--tnt-bg-deep); animation: tntFade .18s ease-out; }
	html.tnt-locked { overflow: hidden; }
	.tnt-msheet__link { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 4px 10px; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: var(--tnt-white); animation: tntUp .25s ease-out both; animation-delay: calc(var(--i) * 30ms); }
	.tnt-msheet__link .n { grid-row: span 2; font-family: var(--tnt-font-display); font-size: 15px; color: var(--tnt-dim); }
	.tnt-msheet__link .t { font-family: var(--tnt-font-display); font-size: 27px; line-height: 1; text-transform: uppercase; }
	.tnt-msheet__link .d { grid-column: 2; font-size: 12px; color: var(--tnt-muted); }
	.tnt-msheet__link .a { grid-row: 1 / span 2; grid-column: 3; color: var(--tnt-dim); }
	.tnt-msheet__link[aria-current="page"] .t, .tnt-msheet__link[aria-current="page"] .n, .tnt-msheet__link[aria-current="page"] .a { color: var(--tnt-gold); }
	.tnt-msheet__live { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-family: var(--tnt-font-ui); font-weight: 700; font-size: var(--tnt-ui-small); letter-spacing: 0.04em; text-transform: uppercase; color: var(--tnt-muted); }
	.tnt-msheet__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--tnt-accent); box-shadow: 0 0 0 4px rgba(79, 111, 214, 0.25); }
	.tnt-msheet .tnt-btn { width: 100%; }
}

@media (max-width: 1100px) and (min-width: 761px) {
	.tnt-mast__words b { font-size: 84px; }
	.tnt-mast__words small { font-size: 26px; }
	.tnt-tile { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.tnt-rain { display: none; }
}

/* Larger navigation across the shared header, without reducing the masthead. */
.tnt-tile { font-size: 20px; line-height: 1.1; text-align: center; gap: 8px; padding-left: 8px; padding-right: 8px; }
.tnt-tile svg { flex-shrink: 0; }
@media (max-width: 1100px) and (min-width: 761px) { .tnt-tile { font-size: 18px; } }
@media (max-width: 760px) { .tnt-msheet__link .t { font-size: 30px; } .tnt-msheet__link .d { font-size: 13px; } }
