/* TerritóriumX House Party 4.8 — egységes felület (a korábbi CSS után töltődik be) */
:root { --tx48-bg:#08141b;--tx48-surface:#111f2b;--tx48-line:rgba(125,199,231,.28);--tx48-accent:#25d4ec;--tx48-text:#f3f9fc;--tx48-muted:#adc2cf;--tx48-warm:#ffc568 }
html {color-scheme:dark}
body {font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.preset-card:focus-visible{outline:3px solid #ffd56b!important;outline-offset:3px!important}
button:disabled{cursor:not-allowed;opacity:.56;box-shadow:none!important}
/* Kezdőlap: egyértelmű kontraszt, vizuális tagolás, kevesebb zaj */
body.tx48-home{background:linear-gradient(125deg,#06121b,#112637 60%,#10202b)!important;min-height:100dvh}
body.tx48-home .container {border:1px solid var(--tx48-line)!important;background:linear-gradient(145deg,#0a1722fa,#0a1721f5)!important;box-shadow:0 22px 90px #0009!important;max-width:1120px!important}
body.tx48-home .header-version{color:#accbd7!important;letter-spacing:.16em}
body.tx48-home .tabs{gap:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
body.tx48-home .tab{background:#142531;border:1px solid #2e4858;border-radius:14px;min-width:0;justify-content:center;min-height:64px;color:#d5e5f0}
body.tx48-home .tab.active{background:#113748;box-shadow:0 0 0 1px #25d4ec4a,0 8px 20px #0005}
body.tx48-home .info-box,body.tx48-home .rules-box,body.tx48-home .config-box{background:#11222dcf!important;border:1px solid var(--tx48-line)!important;border-radius:18px!important}
body.tx48-home .preset-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
body.tx48-home .preset-card{border:1px solid #355467;background:linear-gradient(160deg,#162d3d,#0e1e2a);border-radius:16px;min-height:152px;padding:19px}
body.tx48-home .preset-card.selected{border:2px solid var(--tx48-warm);box-shadow:0 0 0 3px #ffc5681b}
body.tx48-home .p-stat{color:#c5d6df}
body.tx48-home .p-title{font-weight:850;letter-spacing:.025em}
body.tx48-home .form-group input,body.tx48-home #player-container input{background:#091923;border:1px solid #34566a;border-radius:10px;color:#fff}
body.tx48-home .config-box h3{color:#f4f9ff!important}
body.tx48-home .btn-toplist{border-radius:12px}
body.tx48-home .tx-movement-switch{background:#102f3c}
body.tx48-home .tx48-party-intro{background:linear-gradient(125deg,#12384b,#153041);border:1px solid #357c97;border-radius:17px;padding:18px 22px;margin:20px 0 26px}
body.tx48-home .tx48-party-intro strong{font-size:19px;color:#e9fbff;display:block;margin-bottom:5px}
body.tx48-home .tx48-party-intro p{margin:0;color:#c0d9e6;font-size:14px;line-height:1.65}
/* Közös, átlátható játéksávok */
body.tx48-game{background:var(--tx48-bg)!important}
body.tx48-game #overlay,body.tx48-game #hud-top{background:linear-gradient(180deg,#06131ded,#071d28cb 74%,#071d2800)!important;border:0!important;box-shadow:none!important;padding:16px 18px 34px!important;gap:12px;align-items:flex-start!important;z-index:101!important}
body.tx48-game .player-info{background:#0c2232e8!important;border:1px solid #4c849b80!important;border-radius:16px!important;backdrop-filter:blur(14px);padding:9px 12px!important;gap:10px!important;max-width:min(100%,700px)}
body.tx48-game .p-name{color:#5deaff!important;font-size:clamp(17px,2.1vw,24px)!important;font-weight:850;overflow-wrap:anywhere}
body.tx48-game .info-box{border:1px solid #426071!important;background:#142f40ed!important;color:#e8f4f9!important;border-radius:9px!important;font-size:12px!important;padding:7px 10px!important;min-height:30px}
body.tx48-game .game-status{background:#0c2232e8!important;border:1px solid #4c849b80!important;border-radius:16px!important;backdrop-filter:blur(14px);padding:9px 12px!important;gap:12px!important}
body.tx48-game #countdown{font-variant-numeric:tabular-nums;font-size:clamp(24px,3vw,34px)!important;text-shadow:none!important;color:#74f7ca!important;min-width:60px!important;text-align:center!important}
body.tx48-game .score-val{font-variant-numeric:tabular-nums}
body.tx48-game #tx-submit{background:#10c5db!important;color:#06212b!important;border-radius:10px!important;font-size:14px!important;letter-spacing:0!important;box-shadow:0 3px 12px #00c7dd33!important;min-height:45px;padding:10px 16px!important}
body.tx48-game #tx-submit:hover{transform:none!important;background:#6de8f3!important}
body.tx48-game .tx-report-btn{top:auto!important;bottom:18px!important;left:18px!important;background:#132634ed!important;color:#ffc999!important;border:1px solid #9d8055!important;max-width:180px;z-index:112}
body.tx48-game .tx-report-note{top:auto!important;bottom:74px!important;left:18px!important}
body.tx48-game #pano{height:100dvh!important;width:100vw!important}
/* A tippelős térképen minden eszközön azonos kezelősáv */
#tx-map-backdrop{position:fixed;inset:0;background:#030e16c7;backdrop-filter:blur(4px);z-index:129}
#tx-map-backdrop[hidden]{display:none}
#tx-map-launch{position:fixed;right:18px;bottom:18px;z-index:120;background:#13cadb;color:#08232e;border:1px solid #93f8ff;border-radius:13px;font:850 14px system-ui;padding:13px 19px;box-shadow:0 5px 25px #0008;cursor:pointer;min-height:48px;display:none}
body.tx48-game #map-container{overflow:hidden!important;border:2px solid #46d6e9!important;background:#071923!important;border-radius:18px!important;box-shadow:0 14px 44px #000b!important;transition:width .23s ease,height .23s ease,bottom .23s ease,transform .23s ease;z-index:120!important}
body.tx48-game #map-container:hover{transform:none!important}
body.tx48-game #map-container.large-map{z-index:130!important;border-color:#8af2ff!important;width:min(900px,calc(100vw - 48px))!important;height:min(700px,calc(100dvh - 48px))!important;max-width:none!important;max-height:none!important;right:50%!important;bottom:50%!important;transform:translate(50%,50%)!important}
.tx-map-toolbar{position:absolute;top:0;left:0;right:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:linear-gradient(#081c29f5,#081c29e5);color:#f1faff;pointer-events:auto}
.tx-map-title{font-size:15px;font-weight:850;letter-spacing:.02em}
.tx-map-tools{display:flex;gap:6px}
body.tx48-game .tx-map-mini-btn{background:#244457!important;color:#e7faff!important;border:1px solid #52788b!important;border-radius:9px!important;width:36px;height:36px;padding:0!important;min-height:36px;min-width:36px;font:800 19px system-ui;box-shadow:none!important;transform:none!important}
.tx-map-close{font-size:19px!important}
.tx-map-actions{position:absolute;left:0;right:0;bottom:0;z-index:5;display:flex;align-items:center;gap:7px;padding:9px 12px;background:#071c29ed;min-height:60px;color:#dbfaff}
#tx-map-status{margin-right:auto;font:750 12px system-ui}
body.tx48-game .tx-map-clear,body.tx48-game .tx-map-confirm{padding:9px 12px!important;min-height:40px!important;font:750 12px system-ui!important;text-transform:none!important;letter-spacing:0!important;border-radius:10px!important;box-shadow:none!important;transform:none!important;white-space:nowrap}
body.tx48-game .tx-map-clear{background:#243949!important;color:#e5f5fc!important;border:1px solid #4f6b7b!important}
body.tx48-game .tx-map-confirm{background:#1acbdc!important;color:#07232d!important;border:1px solid #8af5ff!important}
body.tx48-game #map-container:not(.large-map) .tx-map-toolbar{padding:7px 8px}
body.tx48-game #map-container:not(.large-map) .tx-map-title{font-size:12px}
body.tx48-game #map-container:not(.large-map) .tx-map-mini-btn{width:28px;min-width:28px;height:28px;min-height:28px;font-size:15px}
body.tx48-game #map-container:not(.large-map) .tx-map-actions{display:none}
body.tx48-game #map-container:not(.large-map) .tx-map-close{font-size:16px}
body.tx48-game .tx-map-hint{bottom:0!important;padding:8px!important;background:#0c2634ed!important;color:#dcf7ff!important}
body.tx48-game #map-container.large-map .tx-map-hint{bottom:60px!important}
body.tx48-game #map-container.large-map .tx-map-tools .tx-map-close{display:block!important}
body.tx48-game #map-container:not(.large-map) .tx-map-tools .tx-map-close{display:none!important}
/* A külön válaszpanellel dolgozó játékmódok kisebb HUD-t és több Street View-teret kapnak */
body.tx48-game #controls,body.tx48-game #quiz-panel{background:#092131f2!important;border:1px solid #448b9f!important;box-shadow:0 15px 60px #000b!important;backdrop-filter:blur(12px);border-radius:17px!important}
body.tx48-game .d-btn{background:#173347;border-color:#436072;color:#e9f3f8}
body.tx48-game .d-btn.active{background:#0d4b64}
body.tx48-game .q-btn{background:linear-gradient(110deg,#172944,#241b48);border-color:#514879}
body.tx48-game #hud-bottom{z-index:102!important}
/* A főképernyőn a több sorba törő HUD ne takarja el a teljes panorámát. */
@media(max-width:750px){
 body.tx48-home .container{max-width:100%!important;border:0!important;border-radius:0!important;margin:0!important;padding:16px!important}
 body.tx48-home .tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.tx48-home .tab{min-height:54px;padding:10px 8px;font-size:14px}
 body.tx48-home .preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 body.tx48-home .preset-card{padding:14px 10px;min-height:135px}
 body.tx48-home .p-title{font-size:14px}
 body.tx48-home .config-box{padding:14px!important}
 body.tx48-home .form-row{flex-direction:column;align-items:stretch;gap:12px}
 body.tx48-home .info-grid{grid-template-columns:1fr}
 body.tx48-home .districts-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:8px;gap:7px}
 body.tx48-game #overlay,body.tx48-game #hud-top{padding:8px 8px 18px!important;flex-direction:row!important;justify-content:space-between!important;gap:7px!important;align-items:flex-start!important;flex-wrap:nowrap!important}
 body.tx48-game .player-info{display:flex!important;gap:4px!important;flex-direction:column!important;align-items:flex-start!important;padding:7px!important;min-width:0;max-width:50%;overflow:hidden}
 body.tx48-game .p-name{font-size:clamp(14px,3.8vw,18px)!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}
 body.tx48-game .info-box{font-size:10px!important;padding:4px 6px!important;min-height:0;max-width:100%}
 body.tx48-game .game-status{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;padding:6px!important;gap:5px!important;max-width:50%}
 body.tx48-game #countdown{font-size:24px!important;min-width:45px!important}
 body.tx48-game .score-box{display:none!important}
 body.tx48-game #sound-toggle{width:35px;height:35px;padding:6px!important;min-height:35px}
 body.tx48-game #tx-submit{display:none!important} /* Mobilon a térképen van a beküldő gomb. */
 body.tx48-game #tx-map-launch{display:block;left:auto;right:10px;bottom:max(10px,env(safe-area-inset-bottom));font-size:14px}
 body.tx48-game #map-container:not(.large-map){visibility:hidden;pointer-events:none;opacity:0;transform:translateY(110%);width:175px!important;height:140px!important;right:8px!important;bottom:8px!important}
 body.tx48-game #map-container.large-map{visibility:visible;opacity:1;pointer-events:auto;border:0!important;border-radius:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;inset:0!important;transform:none!important;z-index:140!important}
 body.tx48-game #map-container .tx-map-toolbar{padding:calc(10px + env(safe-area-inset-top)) 12px 12px}
 body.tx48-game #map-container .tx-map-actions{padding:12px 12px max(12px,env(safe-area-inset-bottom));min-height:74px}
 body.tx48-game #map-container.large-map .tx-map-hint{bottom:74px!important}
 body.tx48-game .tx-map-title{font-size:15px}
 body.tx48-game .tx-map-mini-btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
 body.tx48-game #tx-map-launch{z-index:145}
 body.tx48-game.tx-map-open #tx-map-launch{display:none}
 body.tx48-game .tx-report-btn{bottom:max(70px,calc(65px + env(safe-area-inset-bottom)))!important;top:auto!important;left:10px!important;right:auto!important;padding:9px 11px!important;font-size:12px!important;min-height:42px}
 body.tx48-game .tx-report-note{bottom:125px!important}
 body.tx48-game #controls{bottom:max(70px,calc(65px + env(safe-area-inset-bottom)))!important;max-height:50dvh!important}
 body.tx48-game #quiz-panel{bottom:max(70px,calc(65px + env(safe-area-inset-bottom)))!important;max-height:56dvh!important}
 body.tx48-game #hud-bottom{bottom:max(12px,env(safe-area-inset-bottom))!important;padding:8px!important}
}
@media(max-width:390px){body.tx48-game .tx-map-actions{gap:4px!important;padding-left:7px!important;padding-right:7px!important}body.tx48-game .tx-map-clear,body.tx48-game .tx-map-confirm{font-size:11px!important;padding:8px!important}body.tx48-game #controls{max-height:45dvh!important}body.tx48-home .preset-grid{grid-template-columns:1fr 1fr!important}}
@media(prefers-reduced-motion:reduce){body.tx48-game *,body.tx48-home *{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Mobilos, megnyitható válaszpanel — csak kerület/kvíz módban */
.tx48-panel-toggle{display:none}
@media(max-width:750px){
 body.tx48-game:not(.tx48-distance) .tx-report-btn{top:clamp(130px,23vh,185px)!important;bottom:auto!important;left:10px!important}
 body.tx48-game:not(.tx48-distance) .tx-report-note{bottom:auto!important;top:clamp(180px,30vh,240px)!important}
 body.tx48-game.tx48-district .tx48-panel-toggle,body.tx48-game.tx48-quiz .tx48-panel-toggle{display:block;position:fixed;z-index:125;left:10px;bottom:max(10px,env(safe-area-inset-bottom));min-height:48px;border:1px solid #74dcf0;border-radius:13px;background:#0e394b;color:#f0fdff;font:850 14px system-ui;padding:12px 17px;box-shadow:0 7px 21px #0009}
 body.tx48-game.tx48-answers-hidden #controls,body.tx48-game.tx48-answers-hidden #quiz-panel{transform:translate(-50%,140%)!important;opacity:0!important;pointer-events:none!important;transition:transform .2s ease,opacity .2s ease!important}
 body.tx48-game #controls,body.tx48-game #quiz-panel{transition:transform .2s ease,opacity .2s ease!important}
}
/* Játékossorrend: telefonon fel/le gombok, asztalon továbbra is drag */
.tx48-order-actions{margin-left:auto;display:flex;gap:7px;flex-shrink:0}
body.tx48-home .tx48-order-btn{background:#20465a!important;border:1px solid #50869d!important;color:#e9fbff!important;box-shadow:none!important;border-radius:9px!important;padding:6px 13px!important;min-height:43px;font:800 20px system-ui!important;cursor:pointer}
body.tx48-home #sortable li{background:#173040;border:1px solid #395f73;border-left:4px solid #00c8ff;border-radius:11px;min-width:0}
body.tx48-home #sortable li span{min-width:0;overflow-wrap:anywhere}

body.tx48-game #map-container.large-map .tx-map-expand{display:none!important}
