:root{--theme-bg-1: #1a1a2e;--theme-bg-2: #16213e;--theme-bg-3: #0f3460;--theme-card-bg: rgba(255, 255, 255, .06);--theme-card-border: rgba(255, 255, 255, .1);--theme-text: #e8e8e8;--theme-text-muted: #a0aec0;--theme-accent: #e94560;--theme-accent-from: #e94560;--theme-accent-to: #c73e54;--theme-accent-shadow: rgba(233, 69, 96, .4);--theme-link: #63b3ed;--motion-long: 3s;--motion-med: .65s;--motion-fast: .22s;--turn-glow-rgb: 99, 179, 237}body.theme-green{--theme-bg-1: #0f1f14;--theme-bg-2: #1a3324;--theme-bg-3: #0d2818;--theme-accent: #22c55e;--theme-accent-from: #22c55e;--theme-accent-to: #16a34a;--theme-accent-shadow: rgba(34, 197, 94, .45);--theme-link: #4ade80}body.theme-purple{--theme-bg-1: #1a1625;--theme-bg-2: #2d2640;--theme-bg-3: #1e1a2e;--theme-accent: #a78bfa;--theme-accent-from: #a78bfa;--theme-accent-to: #8b5cf6;--theme-accent-shadow: rgba(167, 139, 250, .4);--theme-link: #c4b5fd}body.theme-warm{--theme-bg-1: #2c1810;--theme-bg-2: #3d2318;--theme-bg-3: #4a2c1a;--theme-accent: #f59e0b;--theme-accent-from: #f59e0b;--theme-accent-to: #d97706;--theme-accent-shadow: rgba(245, 158, 11, .4);--theme-link: #fbbf24}*,*:before,*:after{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:linear-gradient(160deg,var(--theme-bg-1) 0%,var(--theme-bg-2) 50%,var(--theme-bg-3) 100%);min-height:100vh;color:var(--theme-text);font-size:15px;transition:background .35s ease,color .25s ease}.connection-indicator{position:fixed;top:calc(1rem + 3px + max(var(--tg-content-safe-area-inset-top, 0px),env(safe-area-inset-top,0px)));right:10px;z-index:350;display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#0a0e18c7;border:1px solid rgba(255,255,255,.12);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);font-size:12px;line-height:1;color:#d1d5db}.connection-indicator__dot{width:8px;height:8px;border-radius:50%;display:inline-block}.connection-indicator--good .connection-indicator__dot{background:#22c55e;box-shadow:0 0 10px #22c55ecc}.connection-indicator--bad .connection-indicator__dot{background:#ef4444;box-shadow:0 0 10px #ef4444cc}body:has(.game-page) .connection-indicator{top:calc(1rem + 3px + max(var(--tg-content-safe-area-inset-top, 0px),env(safe-area-inset-top,0px)) + var(--tg-game-page-extra-top, 0px))}#app{width:100%;max-width:520px;margin:0 auto;padding:calc(1rem + max(var(--tg-content-safe-area-inset-top, 0px),env(safe-area-inset-top,0px))) 1rem 1.5rem;display:flex;flex-direction:column;align-items:center}h1{font-size:1.6rem;margin:0 0 1rem;text-align:center}.page-title{font-size:1.5rem;font-weight:700;margin:0 0 .35rem;text-align:center;letter-spacing:.02em}.page-subtitle{text-align:center;color:var(--theme-text-muted);font-size:.95rem;margin:0 0 1rem}.tg-auth-line{text-align:center;font-size:.85rem;color:var(--theme-link);margin:0 0 1.25rem}@media (min-width: 540px){body{font-size:17px}h1{font-size:1.8rem}}.page{width:100%;max-width:100%;animation:fade var(--motion-med) ease}@keyframes fade{0%{opacity:0}to{opacity:1}}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.35rem;margin-top:.75rem;font-size:.9rem;color:#b8b8b8}.form-group label:first-of-type{margin-top:0}.form-group input:not([type=checkbox]){width:100%;padding:.6rem .75rem;font-size:1rem;border:1px solid #2d3748;border-radius:8px;background:#ffffff0f;color:#e8e8e8}.form-group select{width:100%;padding:.55rem .65rem;font-size:.95rem;border:1px solid #2d3748;border-radius:8px;background:#1e293b;color:#e8e8e8;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;cursor:pointer}.form-group select option{background:#1e293b;color:#e8e8e8}.form-group input::placeholder{color:#718096}.form-group input[type=range]{width:100%;max-width:100%;padding:0;height:2.25rem;background:transparent;border:none;border-radius:0;accent-color:var(--theme-accent);cursor:pointer}.admin-check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.45rem .85rem;margin-top:.35rem}.admin-check-item{display:flex;align-items:center;gap:.35rem;font-size:.92rem;color:#d6deed;line-height:1.2;margin:0}.form-group .admin-check-item{display:flex;margin:0;font-size:.92rem;color:#d6deed}.admin-check-inline{margin-top:.8rem}.form-group .admin-check-item input[type=checkbox]{width:16px;height:16px;margin:0;padding:0;flex:0 0 auto;accent-color:#22c55e}.btn{display:inline-block;padding:.6rem 1.1rem;font-size:.95rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:transform var(--motion-fast),box-shadow var(--motion-fast)}.btn:active{transform:scale(.98)}.btn-primary{background:linear-gradient(135deg,var(--theme-accent-from) 0%,var(--theme-accent-to) 100%);color:#fff;width:100%;margin-top:.5rem}.btn-primary:hover{box-shadow:0 4px 14px var(--theme-accent-shadow)}.btn-secondary{background:#ffffff1a;color:var(--theme-text);border:1px solid #2d3748}.btn-secondary:hover{background:#ffffff26}.btn-linkish{padding:0;border:none;background:transparent;color:#e8e8e8;font-size:.95rem;font-weight:600;cursor:pointer}.btn-linkish:hover{color:var(--theme-link)}.create-panel-head{position:relative;text-align:center;margin:0 0 .85rem;min-height:2.25rem;display:flex;align-items:center;justify-content:center}.create-panel-head .create-panel-back{position:absolute;left:0;top:50%;transform:translateY(-50%);z-index:1}.create-panel-head .create-panel-title{margin:0;width:100%;text-align:center;padding:0 4.5rem;box-sizing:border-box}.btn-sm{padding:.35rem .6rem;font-size:.8rem}.card{width:100%;max-width:520px;margin-left:auto;margin-right:auto;background:var(--theme-card-bg);border:1px solid var(--theme-card-border);border-radius:16px;padding:1.15rem 1.1rem 1.25rem;margin-bottom:1rem;box-shadow:0 4px 24px #0003,0 0 0 1px #ffffff08;transition:transform var(--motion-med) ease,box-shadow var(--motion-med) ease,border-color var(--motion-med) ease,background var(--motion-med) ease}.account-card{position:relative}.account-online{position:absolute;top:1rem;right:1.1rem;font-size:.9rem;font-weight:600;color:var(--theme-text-muted);min-width:1.5em;text-align:right}.account-top-row{display:flex;align-items:center;gap:.75rem;margin-bottom:.65rem}.account-top-row--solo{justify-content:flex-end;margin-bottom:.5rem}.account-name-block{flex:1;min-width:0}.account-theme-wrap{display:flex;align-items:center;gap:.35rem;flex-shrink:0}.account-theme-label{font-size:.7rem;font-weight:500;color:var(--theme-text-muted);margin:0;white-space:nowrap}.account-theme-custom{position:relative}.account-theme-trigger{display:inline-flex;align-items:center;gap:.2rem;font-size:.72rem;padding:.2rem .4rem;background:#1e293bd9;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:var(--theme-text);cursor:pointer;min-width:0;max-width:5.5rem}.account-theme-trigger:hover{border-color:#ffffff59}.account-theme-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-theme-arrow{font-size:.6rem;opacity:.8}.account-theme-dropdown{position:absolute;top:100%;right:0;margin:.2rem 0 0;padding:.25rem 0;list-style:none;background:#1e293b;border:1px solid rgba(255,255,255,.2);border-radius:8px;box-shadow:0 4px 12px #0006;min-width:6rem;z-index:100;display:none}.account-theme-dropdown--open{display:block}.account-theme-option{padding:.35rem .6rem;font-size:.8rem;color:#e8e8e8;cursor:pointer;white-space:nowrap}.account-theme-option:hover{background:#ffffff1a}.card h2{font-size:1.1rem;margin:0 0 .75rem}.card-collapsible{padding-top:.8rem}.card-collapsible>summary{cursor:pointer;list-style:none;font-size:1.08rem;font-weight:700;outline:none}.card-collapsible>summary::-webkit-details-marker{display:none}.card-collapsible>summary:after{content:"▾";float:right;color:var(--theme-text-muted);transition:transform .18s ease}.card-collapsible[open]>summary:after{transform:rotate(180deg)}.card-hint{font-size:.85rem;color:var(--theme-text-muted);margin:0 0 .5rem}.short-code-row{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.short-code{font-size:1.75rem;font-weight:700;letter-spacing:.2em;color:var(--theme-text);min-width:5ch}.btn-block{width:100%;display:block;text-align:center;margin-top:.5rem}.form-block{margin-top:1rem}.form-block-label{font-size:.85rem;color:var(--theme-text-muted);margin-bottom:.35rem}.pack-list{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;max-height:180px;overflow-y:auto;padding-right:.25rem}.pack-search{width:100%;margin-bottom:.4rem;padding:.45rem .6rem;font-size:.85rem;border-radius:8px;border:1px solid #2d3748;background:#00000040;color:#e8e8e8}.pack-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.25rem .4rem;border-radius:6px;border:none;background:transparent;color:inherit;cursor:pointer;text-align:left}.pack-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}.pack-row input[type=checkbox]{flex-shrink:0;margin:0;align-self:center}.pack-row-selected{background:#63b3ed33;border:1px solid rgba(99,179,237,.6)}.edit-pack-list{display:flex;flex-direction:column;gap:.5rem;max-height:220px;overflow-y:auto;padding-right:.25rem;margin-bottom:.75rem}.edit-pack-card{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.5rem .75rem;border-radius:8px;border:1px solid rgba(255,255,255,.1);background:#0003;cursor:pointer;transition:background .15s,border-color .15s}.edit-pack-card:hover{background:#0000004d;border-color:#ffffff26}.edit-pack-card-selected{background:#63b3ed26;border-color:#63b3ed80}.edit-pack-card-selected:hover{background:#63b3ed33}.edit-pack-card-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.edit-pack-title{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.edit-pack-id{font-size:.75rem;color:#a0aec0}.edit-pack-delete{flex-shrink:0}.edit-pack-empty{font-size:.85rem;color:#a0aec0;padding:.5rem 0;margin:0}.edit-questions-block{max-height:200px;overflow-y:auto;border:1px solid #2d3748;border-radius:8px;padding:.5rem .75rem;font-size:.85rem;background:#00000026}.edit-question-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.06)}.edit-question-row:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.edit-question-content{flex:1;min-width:0}.edit-question-options{font-size:.8rem;color:#a0aec0;margin-top:.2rem}.edit-questions-empty,.edit-questions-error{font-size:.85rem;margin:0;padding:.25rem 0}.edit-questions-empty{color:#a0aec0}.edit-questions-error{color:#f56565}.card:hover{transform:translateY(-2px);box-shadow:0 8px 32px #0000004d,0 0 0 1px #ffffff0f;border-color:#ffffff1f}.players-list{list-style:none;padding:0;margin:0}.players-list li{padding:.5rem 0;border-bottom:1px solid rgba(255,255,255,.06);display:flex;justify-content:space-between;align-items:center}.players-list-stats{transition:opacity var(--motion-med) ease,transform var(--motion-med) ease}.players-list-stats-anim{opacity:.75;transform:translateY(-1px)}.players-list li:last-child{border-bottom:none}.rating-list{margin:0 -.25rem}.rating-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.5rem;padding:.6rem .25rem!important;min-height:2.75rem}.rating-player{display:flex;align-items:center;gap:.5rem;min-width:0;flex:1}.rating-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.2);flex-shrink:0}.rating-name-wrap{min-width:0;display:flex;align-items:baseline;gap:.25rem;flex-wrap:wrap}.rating-rank{font-size:.85rem;color:var(--theme-text-muted);flex-shrink:0}.rating-name{font-size:.95rem;word-break:break-word;line-height:1.3}.rating-stats{display:flex;flex-direction:column;align-items:flex-end;gap:.2rem;flex-shrink:0}.rating-pts{font-size:.9rem;font-weight:600;color:var(--theme-text)}.rating-wl{font-size:.8rem;color:var(--theme-text-muted)}.btn-profile-tap{min-height:2.25rem;padding:.4rem .65rem;font-size:.85rem;margin-top:.25rem}.page-history{position:relative;width:100%}.history-page-actions{margin-top:1.25rem;width:100%;padding-bottom:max(.35rem,env(safe-area-inset-bottom,0px))}.modal.modal-history-detail{z-index:280;background:#000000b8;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);padding:max(.65rem,env(safe-area-inset-top,0px)) .85rem max(.65rem,env(safe-area-inset-bottom,0px));align-items:stretch;justify-content:center}.modal-history-detail .modal-history-detail-content{max-width:100%;width:100%;max-height:min(calc(100dvh - 1.25rem),calc(100vh - 1.25rem));display:flex;flex-direction:column;padding:0;overflow:hidden}.modal-history-detail-heading{flex-shrink:0;margin:0;padding:.95rem 1.1rem .65rem;font-size:1.12rem;text-align:center;border-bottom:1px solid rgba(255,255,255,.1)}.modal-history-detail-body{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.85rem 1.1rem 1rem;margin:0;-webkit-overflow-scrolling:touch}.modal-history-detail-footer{flex-shrink:0;padding:.65rem 1.1rem .85rem;border-top:1px solid rgba(255,255,255,.1);padding-bottom:max(.75rem,env(safe-area-inset-bottom,0px))}.history-list{display:flex;flex-direction:column;gap:.5rem}.history-game-btn{text-align:left;padding:.65rem .75rem;min-height:2.75rem;display:flex;flex-direction:column;align-items:stretch;gap:.2rem}.history-game-num{font-weight:600;font-size:.9rem}.history-game-meta{font-size:.85rem;color:var(--theme-text-muted);word-break:break-word}.history-detail{margin-top:.25rem}.history-detail-list{margin-top:.5rem}.history-detail-row{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;padding:.5rem 0!important}.history-detail-name{flex:1;min-width:0;word-break:break-word}.history-detail-pts{font-size:.9rem;color:var(--theme-text-muted)}.history-detail-row .btn-profile-tap{margin-top:0}@media (max-width: 380px){.rating-avatar{width:32px;height:32px}.rating-name{font-size:.9rem}.rating-stats{font-size:.85rem}.btn-profile-tap{min-height:2.5rem;padding:.5rem .75rem}}.copy-row{display:flex;gap:.5rem;align-items:center;margin-bottom:1rem}.copy-row input{flex:1;padding:.5rem .75rem;font-size:.85rem;border:1px solid #2d3748;border-radius:6px;background:#0003;color:#e8e8e8}.error-msg{background:#e9456033;border:1px solid rgba(233,69,96,.4);color:#feb2b2;padding:.75rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.ui-state{margin:0;color:var(--theme-text-muted);font-size:.92rem}.ui-state-error{color:#fca5a5}.link-back{display:inline-block;margin-bottom:1rem;color:#a0aec0;text-decoration:none;font-size:.9rem}.link-back:hover{color:#e8e8e8}.card-map{overflow:visible}.card-map .players-in-card-title{font-size:1rem;font-weight:600;margin:1rem 0 .5rem;color:var(--theme-text, #e2e8f0)}.card-map .players-list{margin-bottom:0}.hex-map.island-map{display:block;width:100%;max-width:480px;margin:0 auto;border-radius:16px;overflow:visible;box-shadow:0 8px 32px #00000059,inset 0 1px #ffffff0d}.hex-map.island-map.map-water-wave .island-svg{animation:waterWaveTint var(--motion-long) ease-in-out}@keyframes waterWaveTint{0%{filter:none}35%{filter:saturate(1.15) brightness(1.06)}70%{filter:saturate(1.08) brightness(1.03)}to{filter:none}}.card-map.turn-change-pulse{animation:turnChangePulse var(--motion-long) ease-in-out}@keyframes turnChangePulse{0%{box-shadow:0 8px 32px #00000059,inset 0 1px #ffffff0d;transform:translateY(0)}25%{box-shadow:0 10px 38px #0000006b,inset 0 0 0 1px rgba(var(--turn-glow-rgb),.28),inset 0 0 32px rgba(var(--turn-glow-rgb),.22);transform:translateY(-1px)}55%{box-shadow:0 10px 40px #00000070,inset 0 0 0 1px rgba(var(--turn-glow-rgb),.34),inset 0 0 40px rgba(var(--turn-glow-rgb),.28);transform:translateY(-2px)}to{box-shadow:0 8px 32px #00000059,inset 0 1px #ffffff0d;transform:translateY(0)}}.island-svg{display:block;width:100%;height:auto;pointer-events:none}.island-svg .hex-cell{pointer-events:auto;transition:opacity var(--motion-med) ease}@media (hover: hover) and (pointer: fine){.island-svg .hex-cell[data-capturable="1"]:hover polygon{filter:brightness(1.08)}}@keyframes capturablePulseHex{0%,to{stroke:#22c55e;stroke-width:2.25px;stroke-opacity:1}50%{stroke:#86efac;stroke-width:5px;stroke-opacity:1}}.game-turn-active .island-svg .hex-cell[data-capturable="1"]:not(.hex-cell-captured) polygon{animation:capturablePulseHex 1.1s ease-in-out infinite;vector-effect:non-scaling-stroke}@keyframes duelPulseHex{0%,to{stroke:#f87171;stroke-width:2.25px;stroke-opacity:1}50%{stroke:#fecaca;stroke-width:5px;stroke-opacity:1}}.island-svg .hex-cell[data-duel="1"] polygon{animation:duelPulseHex 1.4s ease-in-out infinite;vector-effect:non-scaling-stroke}.players-list .player-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px;vertical-align:middle}@keyframes turnPulse{0%,to{box-shadow:0 10px 36px #00000057,inset 0 0 0 1px #22c55e47,inset 0 0 22px #22c55e24;transform:translateY(0)}50%{box-shadow:0 10px 36px #00000057,inset 0 0 0 1px #22c55e61,inset 0 0 30px #22c55e38;transform:translateY(-1px)}}.turn-indicator{position:relative;padding:.85rem 1rem;border-radius:10px;background:#48bb7826;border:1px solid rgba(72,187,120,.6);animation:turnPulse 1.6s ease-out infinite}.game-turn-active .card{border-color:#22c55e59;box-shadow:0 8px 30px #00000047,inset 0 0 0 1px #22c55e38,inset 0 0 18px #22c55e1f}.game-turn-active .card-map{box-shadow:0 10px 36px #00000057,inset 0 0 0 1px #22c55e52,inset 0 0 26px #22c55e2e}.game-turn-active .btn-primary{background:linear-gradient(135deg,#22c55e,#16a34a)}.game-turn-active .btn-primary:hover{box-shadow:0 4px 14px #22c55e73}.game-page{position:relative;--bottom-status-offset: 0px;padding-top:var(--tg-game-page-extra-top, 0px)}.modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.game-page .modal-question,.game-page .modal-duel{position:absolute;top:var(--tg-game-page-extra-top, 0px);left:0;right:0;bottom:0;background:#000000a6;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);border-radius:12px;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--motion-med) ease,transform var(--motion-med) ease;transform:translateY(6px)}.game-page .modal-question.modal-open,.game-page .modal-duel.modal-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}.modal-turn-result{position:absolute;top:var(--tg-game-page-extra-top, 0px);left:0;right:0;bottom:0;background:transparent;display:flex;align-items:center;justify-content:center;z-index:50;padding:1rem;pointer-events:none}.modal-turn-result .modal-content{pointer-events:auto}.modal-turn-result.modal-open{animation:none}.modal-turn-result.modal-open .modal-content{animation:modalPop var(--motion-med) ease-out}.modal-turn-result-content{text-align:center}.turn-result-avatar-wrap{width:80px;height:80px;margin:0 auto 1rem;border-radius:50%;overflow:hidden;border:3px solid rgba(255,255,255,.25);box-shadow:0 0 24px #22c55e59,0 4px 12px #0006;background:#ffffff14}.turn-result-avatar-wrap .capture-event-avatar{width:100%;height:100%;object-fit:cover;display:block}.turn-result-capture-title,.turn-result-coup-title{font-size:1.1rem;margin:0 0 .5rem;color:var(--theme-text)}.turn-result-coup-title{margin-top:1rem}.turn-result-coup-block:first-child .turn-result-coup-title{margin-top:0}.modal-turn-result .btn-primary{min-width:140px;margin-top:.5rem}.game-chat{margin-top:1rem}.game-chat-panel{display:flex;flex-direction:column;max-height:260px;padding:.5rem;border-radius:12px;background:#141923f5;border:1px solid rgba(255,255,255,.12);box-shadow:0 4px 20px #0006}.game-chat-messages{flex:1;min-height:80px;max-height:140px;overflow-y:auto;padding:.4rem 0;font-size:.85rem;line-height:1.4}.game-chat-msg{margin-bottom:.35rem;word-break:break-word}.game-chat-msg-name{color:var(--theme-accent);font-weight:600}.game-chat-msg-text{color:var(--theme-text)}.game-chat-form{display:flex;gap:.5rem;margin-top:.4rem;padding-top:.4rem;border-top:1px solid rgba(255,255,255,.08)}.game-chat-input{flex:1;padding:.4rem .6rem;font-size:.9rem;border-radius:8px;border:1px solid rgba(255,255,255,.15);background:#00000040;color:var(--theme-text)}.game-chat-input::placeholder{color:var(--theme-text-muted)}.game-chat-send{padding:.4rem .8rem;font-size:.85rem}.modal-content{background:linear-gradient(180deg,#1e2433,#161b26);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:1.25rem 1.15rem 1.35rem;max-width:360px;width:100%;box-shadow:0 24px 48px #00000080}@keyframes modalPop{0%{transform:scale(.85) translateY(10px);opacity:0}60%{transform:scale(1.02) translateY(0);opacity:1}to{transform:scale(1) translateY(0);opacity:1}}.modal.modal-open .modal-content{animation:modalPop var(--motion-med) ease-out}.modal-content h3{margin:0 0 1rem;font-size:1.1rem}.modal-capture-event-content{text-align:center}.capture-event-avatar-wrap{width:80px;height:80px;margin:0 auto 1rem;border-radius:50%;overflow:hidden;border:3px solid rgba(255,255,255,.25);box-shadow:0 0 24px #22c55e59,0 4px 12px #0006;background:#ffffff14}.capture-event-avatar{width:100%;height:100%;object-fit:cover;display:block}.capture-event-title{font-size:1.25rem;font-weight:700;margin:0;color:var(--theme-text);letter-spacing:.02em}.capture-event-text{font-size:.95rem;line-height:1.55;color:var(--theme-text-muted)}.modal-capture-event .btn-primary{min-width:140px}#question-media{border-radius:10px;overflow:hidden;margin-bottom:.65rem}.question-media-image{width:100%;max-height:280px;object-fit:contain;background:#00000059;border-radius:10px;border:1px solid rgba(255,255,255,.12);display:block}.question-media-audio{width:100%;border-radius:8px;min-height:48px}.question-media-image.loading{min-height:120px;background:#00000059 url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><circle cx="12" cy="12" r="10" opacity="0.3"/><path d="M12 2a10 10 0 0 1 10 10"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="1s" repeatCount="indefinite"/></path></svg>') center center no-repeat}#question-options{display:flex;flex-direction:column;flex-wrap:wrap;gap:.45rem;margin-bottom:.85rem}#question-options:has(.option-img-btn){flex-direction:row}#question-options .option-img-btn{cursor:pointer;transition:border-color .15s}#question-options .option-img-btn:hover{border-color:#63b3ed!important}#question-options .option-btn{width:100%;text-align:left}.option-disabled{opacity:.6;cursor:default!important;pointer-events:none}.toast{position:fixed;bottom:calc(1.5rem + var(--bottom-status-offset));left:50%;transform:translate(-50%) translateY(8px);padding:.75rem 1.25rem;border-radius:8px;font-weight:600;z-index:200;max-width:90%;text-align:center;box-shadow:0 4px 12px #0000004d;opacity:1;transition:opacity var(--motion-med) ease,transform var(--motion-med) ease}.bottom-status{position:fixed;left:50%;bottom:1.1rem;transform:translate(-50%);z-index:190;width:min(520px,92%);background:#0a0e18db;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:.55rem .75rem;box-shadow:0 10px 26px #00000073;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.bottom-status-line{font-weight:650;line-height:1.25;text-align:center}.bottom-status-turn{color:#e2e8f0}.bottom-status-info{margin-top:.25rem;color:#fbd38d;font-weight:700}.toast.toast-hide{opacity:0;transform:translate(-50%) translateY(18px)}.toast-success{background:#38a169;color:#fff}.toast-error{background:#e53e3e;color:#fff}.toast-info{background:#3182ce;color:#fff}.dice-hint{color:#a0aec0;font-size:.9rem;margin-bottom:1rem}.dice-value{width:64px;height:64px;margin:0 auto 1rem;background:#fff;color:#1a1a2e;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;box-shadow:inset 0 0 0 2px #2d3748}#dice-roll{width:100%}.hex-map-wrapper{display:flex;justify-content:center;margin:0 auto}.capture-announcement{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#000000bf,#00000073);pointer-events:none}.capture-announcement-inner{text-align:center;display:flex;flex-direction:column;align-items:center;gap:.25rem}.capture-announcement-icon{width:72px;height:72px;margin-bottom:.35rem;border-radius:50%;overflow:hidden;border:2px solid rgba(255,255,255,.75);box-shadow:0 0 18px #63b3eda6}.capture-announcement-avatar{width:100%;height:100%;object-fit:cover;display:block}.capture-announcement-player{font-size:1.8rem;font-weight:800;letter-spacing:.03em;color:#fff;text-shadow:0 0 12px rgba(99,179,237,.8),0 0 40px rgba(99,179,237,.4),0 2px 4px rgba(0,0,0,.6)}.capture-announcement-action{font-size:1rem;font-weight:500;color:#a0aec0;text-transform:uppercase;letter-spacing:.15em;margin:.1rem 0}.capture-announcement-tile{font-size:2.2rem;font-weight:900;letter-spacing:.04em;background:linear-gradient(135deg,#fbd38d,#f6ad55 40%,#ed8936);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}@keyframes captureAnnounceIn{0%{opacity:0;transform:scale(.5);filter:blur(12px)}50%{opacity:1;transform:scale(1.08);filter:blur(0px)}to{opacity:1;transform:scale(1);filter:blur(0px)}}@keyframes captureAnnounceOut{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(1.15);filter:blur(6px)}}@keyframes captureGlow{0%,to{text-shadow:0 0 12px rgba(99,179,237,.8),0 0 40px rgba(99,179,237,.4),0 2px 4px rgba(0,0,0,.6)}50%{text-shadow:0 0 24px rgba(99,179,237,1),0 0 60px rgba(99,179,237,.7),0 2px 4px rgba(0,0,0,.6)}}@keyframes captureIconBounce{0%{transform:scale(0) rotate(-20deg)}50%{transform:scale(1.3) rotate(5deg)}75%{transform:scale(.9) rotate(-2deg)}to{transform:scale(1) rotate(0)}}@keyframes captureSlideUp{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}.capture-announcement-enter{animation:captureAnnounceIn .5s cubic-bezier(.34,1.56,.64,1) forwards}.capture-announcement-enter .capture-announcement-icon{animation:captureIconBounce .6s .1s cubic-bezier(.34,1.56,.64,1) both}.capture-announcement-enter .capture-announcement-player{animation:captureSlideUp .4s .15s ease-out both,captureGlow 1.5s .4s ease-in-out infinite}.capture-announcement-enter .capture-announcement-action{animation:captureSlideUp .4s .25s ease-out both}.capture-announcement-enter .capture-announcement-tile{animation:captureSlideUp .4s .35s ease-out both}.capture-announcement-exit{animation:captureAnnounceOut .4s ease-in forwards}.coup-announcement{position:fixed;top:0;right:0;bottom:0;left:0;z-index:150;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#000c,#00000080);pointer-events:none}.coup-announcement-inner{text-align:center;padding:1.5rem 2rem}.coup-announcement-text{font-size:1.4rem;font-weight:700;color:#fbd38d;text-shadow:0 0 20px rgba(251,211,141,.5),0 2px 8px rgba(0,0,0,.6);margin:0;letter-spacing:.02em}.coup-announcement-enter{animation:coupAnnounceIn .5s cubic-bezier(.34,1.56,.64,1) forwards}.coup-announcement-enter .coup-announcement-text{animation:coupTextPop .6s .15s ease-out both}.coup-announcement-exit{animation:coupAnnounceOut .4s ease-in forwards}@keyframes coupAnnounceIn{0%{opacity:0}to{opacity:1}}@keyframes coupTextPop{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes coupAnnounceOut{0%{opacity:1}to{opacity:0}}.question-context-header{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:.75rem;flex-wrap:wrap}.question-context-header--duel .question-context-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid #4a5568}.question-context-duel-side{display:flex;flex-direction:column;align-items:center;gap:.35rem}.question-context-player-name{font-size:.85rem;font-weight:600;color:#e2e8f0;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center}.question-context-vs{font-weight:700;color:#e2e8f0}.question-context-header--attack{gap:.5rem .75rem}.question-context-header--attack .question-context-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #4a5568}.question-context-attacker-name{font-weight:600;color:#e2e8f0;font-size:.95rem}.question-context-tile-icon{display:inline-flex;color:#f6ad55}.question-context-tile-icon svg{display:block}.question-context-tile-name{font-weight:700;color:#fbd38d;font-size:.95rem}@media (hover: hover){.island-svg .hex-cell[data-capturable="1"]:hover polygon{filter:brightness(1.25) drop-shadow(0 0 6px rgba(99,179,237,.6));transition:filter .2s ease}}.island-svg .hex-cell polygon{transition:fill var(--motion-long) ease,stroke var(--motion-long) ease,filter var(--motion-med) ease}@keyframes turnSlideIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.page-enter .turn-indicator{animation:turnPulse 1.6s ease-out infinite,turnSlideIn .35s ease-out}@keyframes cardSlideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.page-enter .card{animation:cardSlideUp .3s ease-out both}.page-enter .card:nth-child(2){animation-delay:.06s}.page-enter .card:nth-child(3){animation-delay:.12s}.page-enter .card:nth-child(4){animation-delay:.18s}@keyframes mapFadeScale{0%{opacity:0;transform:scale(.92)}to{opacity:1;transform:scale(1)}}.page-enter .hex-map.island-map{animation:mapFadeScale .4s ease-out}@keyframes hexCaptureNew{0%{transform:scale(.7);filter:brightness(2) drop-shadow(0 0 12px rgba(72,187,120,.9))}40%{transform:scale(1.12);filter:brightness(1.3) drop-shadow(0 0 8px rgba(72,187,120,.5))}to{transform:scale(1);filter:none}}@keyframes hexCaptureFill{0%{fill:var(--capture-from, #4a5568)}to{fill:var(--capture-to, #68d391)}}.island-svg .hex-cell.hex-cell-captured polygon{animation:hexCaptureFill 3s ease-in-out forwards,hexCaptureNew .5s cubic-bezier(.34,1.56,.64,1);transform-origin:center}@keyframes toastSlide{0%{opacity:0;transform:translate(-50%) translateY(24px) scale(.9)}to{opacity:1;transform:translate(-50%) translateY(0) scale(1)}}.toast.toast-success,.toast.toast-error,.toast.toast-info{animation:toastSlide var(--motion-med) cubic-bezier(.34,1.56,.64,1)}@media (prefers-reduced-motion: reduce){:root{--motion-long: .01ms;--motion-med: .01ms;--motion-fast: .01ms}*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}@keyframes modalBgFade{0%{background:#0000}to{background:#000000b3}}.modal.modal-open{animation:modalBgFade .25s ease-out}.card-victory{text-align:center}.card-victory .victory-solo{font-size:1.15rem;font-weight:600;margin:.5rem 0 .75rem;color:#68d391}.card-victory #to-lobby{margin-top:1rem}.card-game-over{text-align:center}.card-game-over h2{margin-bottom:1.25rem}.podium{display:flex;align-items:flex-end;justify-content:center;gap:.5rem;margin-bottom:1.5rem;min-height:140px}.podium-item{display:flex;flex-direction:column;align-items:center;flex:0 1 100px}.podium-place-1{order:2}.podium-place-2{order:1}.podium-place-3{order:3}.podium-avatar{width:56px;height:56px;border-radius:50%;object-fit:cover;border:3px solid #4a5568;margin-bottom:.35rem}.podium-place-1 .podium-avatar{width:72px;height:72px;border-color:#eab308}.podium-place-2 .podium-avatar{border-color:#94a3b8}.podium-place-3 .podium-avatar{border-color:#b45309}.podium-medal{font-size:1.5rem;line-height:1;margin-bottom:.25rem}.podium-name{font-weight:600;color:#e2e8f0;font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.podium-points{font-size:.85rem;color:#94a3b8}.podium-place-1 .podium-name{font-size:1.05rem;color:#fbd38d}.card-game-over #to-lobby{margin-top:.5rem}.gen-pack-card{position:relative;overflow:hidden}.gen-pack-card--loading{box-shadow:0 0 0 2px color-mix(in srgb,var(--theme-accent) 55%,transparent),0 12px 40px var(--theme-accent-shadow)}.gen-generate-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;display:none;align-items:center;justify-content:center;padding:1.25rem;background:#0a0c18b8;backdrop-filter:blur(10px) saturate(1.2);-webkit-backdrop-filter:blur(10px) saturate(1.2);animation:genOverlayIn .35s ease-out}.gen-generate-overlay__panel{text-align:center;max-width:22rem;padding:1.5rem 1.35rem;border-radius:16px;background:linear-gradient(145deg,color-mix(in srgb,var(--theme-card-bg) 92%,var(--theme-accent) 8%),color-mix(in srgb,var(--theme-bg-2) 85%,transparent));border:1px solid color-mix(in srgb,var(--theme-accent) 35%,var(--theme-card-border));box-shadow:0 4px 24px #00000059,0 0 48px color-mix(in srgb,var(--theme-accent) 18%,transparent)}.gen-generate-overlay__title{margin:.85rem 0 .35rem;font-size:1.1rem;font-weight:700;letter-spacing:.02em;background:linear-gradient(90deg,var(--theme-text),var(--theme-accent));-webkit-background-clip:text;background-clip:text;color:transparent}.gen-generate-overlay__sub{margin:0;font-size:.88rem;line-height:1.45;color:var(--theme-text-muted)}.gen-generate-spinner{width:52px;height:52px;margin:0 auto;border-radius:50%;border:3px solid color-mix(in srgb,var(--theme-text-muted) 35%,transparent);border-top-color:var(--theme-accent);border-right-color:color-mix(in srgb,var(--theme-accent) 50%,transparent);animation:genSpin .85s linear infinite;box-shadow:0 0 20px var(--theme-accent-shadow)}.gen-status-line{min-height:1.25rem;font-size:.92rem;color:color-mix(in srgb,var(--theme-text) 88%,var(--theme-accent))}@keyframes genSpin{to{transform:rotate(360deg)}}@keyframes genOverlayIn{0%{opacity:0}to{opacity:1}}
