:root{--bg-page: #F8FAFC;--bg-surface: #FFFFFF;--bg-subtle: #F1F5F9;--border-light: #E2E8F0;--border-focus: #94A3B8;--text-main: #0F172A;--text-secondary: #475569;--text-muted: #64748B;--lingo-green: #16A34A;--lingo-green-dark: #15803D;--lingo-green-soft: #DCFCE7;--lingo-amber: #F59E0B;--lingo-amber-dark: #D97706;--lingo-amber-soft: #FEF3C7;--lingo-absent: #94A3B8;--lingo-hint-bg: #F0FDF4;--lingo-hint-border: #86EFAC;--primary-blue: #2563EB;--primary-blue-hover: #1D4ED8;--shadow-sm: 0 1px 3px rgba(15, 23, 42, .05);--shadow-md: 0 8px 24px rgba(15, 23, 42, .06);--radius-md: 12px;--radius-lg: 18px}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html{background-color:var(--bg-page);width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{width:100%;height:100%;position:fixed;inset:0;overflow:hidden;overscroll-behavior:none;background-color:var(--bg-page);color:var(--text-main);font-family:Plus Jakarta Sans,-apple-system,BlinkMacSystemFont,sans-serif;-webkit-font-smoothing:antialiased;touch-action:manipulation;user-select:none;-webkit-user-select:none}.hidden{display:none!important}#app-shell{max-width:640px;width:100%;height:100%;margin:0 auto;display:flex;flex-direction:column;box-sizing:border-box;padding-top:calc(env(safe-area-inset-top,20px) + 14px);padding-bottom:calc(env(safe-area-inset-bottom,0px) + 10px);padding-left:calc(env(safe-area-inset-left,0px) + 14px);padding-right:calc(env(safe-area-inset-right,0px) + 14px);overflow:hidden}.top-bar{display:flex;align-items:center;justify-content:space-between;padding:6px 2px 12px;border-bottom:1px solid var(--border-light);margin-bottom:12px}.brand-logo{display:flex;align-items:center;gap:4px;cursor:pointer;-webkit-user-select:none;user-select:none}.logo-tile{width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:.92rem;color:#fff}.logo-tile.green{background:var(--lingo-green)}.logo-tile.amber{background:var(--lingo-amber)}.logo-tile.neutral{background:#64748b}.brand-sub{margin-left:6px;font-size:.78rem;font-weight:800;letter-spacing:.08em;color:var(--text-secondary)}.top-actions{display:flex;align-items:center;gap:8px}.pro-pill{background:#fef3c7;color:#b45309;border:1px solid #FDE68A;padding:6px 11px;border-radius:999px;font-size:.76rem;font-weight:700;cursor:pointer;transition:transform .15s ease}.pro-pill.pro-unlocked{background:var(--lingo-green-soft);color:var(--lingo-green-dark);border-color:#86efac}.pro-pill:hover{transform:translateY(-1px)}.icon-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--border-light);background:var(--bg-surface);color:var(--text-main);font-size:.95rem;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.screen-container{flex:1;display:flex;align-items:center;justify-content:center;padding:4px 0;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;max-height:100%}.setup-card{width:100%;background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:24px 20px;box-shadow:var(--shadow-md)}.logo-hero{text-align:center;margin-bottom:20px}.logo-hero h1{font-size:1.45rem;font-weight:800;color:var(--text-main);margin-bottom:6px}.logo-hero p{font-size:.88rem;color:var(--text-secondary);line-height:1.45}.field-group{margin-bottom:16px}.field-label{display:block;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary);margin-bottom:6px}.segmented-control{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:var(--bg-subtle);padding:4px;border-radius:var(--radius-md)}.segmented-control.three-cols{grid-template-columns:1fr 1fr 1fr}.seg-btn{border:none;background:transparent;padding:10px 12px;border-radius:9px;font-family:inherit;font-size:.88rem;font-weight:700;color:var(--text-secondary);cursor:pointer;transition:all .15s ease}.seg-btn.active{background:var(--bg-surface);color:var(--text-main);box-shadow:var(--shadow-sm)}.text-input{width:100%;padding:11px 14px;border:1.5px solid var(--border-light);border-radius:var(--radius-md);font-family:inherit;font-size:.95rem;font-weight:600;color:var(--text-main);background:var(--bg-surface);outline:none}.text-input:focus{border-color:var(--primary-blue)}.action-stack{display:flex;flex-direction:column;gap:12px;margin-top:8px}.primary-btn{width:100%;padding:13px 18px;border:none;border-radius:var(--radius-md);background:var(--lingo-green);color:#fff;font-family:inherit;font-size:.98rem;font-weight:800;cursor:pointer;transition:background .15s ease,transform .1s ease}.primary-btn:hover:not(:disabled){background:var(--lingo-green-dark)}.primary-btn:disabled{opacity:.55;cursor:not-allowed}.secondary-btn{width:100%;padding:11px 16px;border:1.5px solid var(--border-light);border-radius:var(--radius-md);background:var(--bg-surface);color:var(--text-main);font-family:inherit;font-size:.9rem;font-weight:700;cursor:pointer;transition:border-color .15s ease,background .15s ease}.secondary-btn:hover{border-color:var(--border-focus);background:var(--bg-subtle)}.ghost-btn{width:100%;padding:10px;border:none;background:transparent;color:var(--text-secondary);font-family:inherit;font-size:.86rem;font-weight:700;cursor:pointer}.divider-row{text-align:center;font-size:.78rem;font-weight:600;color:var(--text-muted);margin:2px 0}.multiplayer-grid{display:flex;flex-direction:column;gap:10px}.join-box{display:flex;gap:8px}.code-input{flex:1;padding:11px 14px;border:1.5px solid var(--border-light);border-radius:var(--radius-md);font-family:inherit;font-size:.95rem;font-weight:800;text-transform:uppercase;letter-spacing:.12em;text-align:center;color:var(--text-main);background:var(--bg-subtle)}.join-btn{padding:0 20px;border:none;border-radius:var(--radius-md);background:var(--primary-blue);color:#fff;font-family:inherit;font-size:.9rem;font-weight:700;cursor:pointer}.legal-footer-links{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:6px;font-size:.76rem;font-weight:600;color:var(--text-muted)}.legal-footer-links a{color:var(--text-secondary);text-decoration:none}.legal-footer-links a:hover{text-decoration:underline}.card-title{font-size:1.25rem;font-weight:800;text-align:center;margin-bottom:4px}.card-subtitle{font-size:.85rem;color:var(--text-secondary);text-align:center;margin-bottom:16px}.game-id-banner{display:flex;align-items:center;justify-content:space-between;background:var(--bg-subtle);border:1.5px dashed var(--border-focus);border-radius:var(--radius-md);padding:12px 16px;margin-bottom:16px}.game-id-code{font-size:1.5rem;font-weight:800;letter-spacing:.18em;color:var(--primary-blue)}.copy-pill{background:var(--bg-surface);border:1px solid var(--border-light);padding:7px 14px;border-radius:8px;font-family:inherit;font-size:.8rem;font-weight:700;cursor:pointer}.lobby-slots{display:flex;flex-direction:column;gap:8px;margin-bottom:18px}.lobby-slot-item{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-radius:10px;border:1px solid var(--border-light);background:var(--bg-surface);font-size:.9rem;font-weight:700}.lobby-slot-item.empty{color:var(--text-muted);background:var(--bg-subtle);font-weight:600}.lobby-actions{display:flex;flex-direction:column;gap:8px}.game-layout{flex:1;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;height:100%;gap:4px}.stage-bar{display:flex;align-items:center;justify-content:space-between}.stage-info{display:flex;align-items:center;gap:6px}.stage-pill{background:var(--bg-surface);border:1px solid var(--border-light);padding:4px 10px;border-radius:999px;font-size:.74rem;font-weight:800;color:var(--text-secondary);letter-spacing:.04em}.room-pill{background:#eff6ff;border:1px solid #BFDBFE;color:var(--primary-blue);padding:4px 10px;border-radius:999px;font-size:.74rem;font-weight:800}.timer-pill{background:var(--bg-surface);border:1.5px solid var(--border-light);padding:4px 12px;border-radius:999px;font-size:.82rem;font-weight:800;color:var(--text-main)}.timer-pill.urgent{border-color:#ef4444;color:#dc2626;background:#fef2f2}.podium-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px}.podium-card{background:var(--bg-surface);border:1.5px solid var(--border-light);border-radius:12px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;transition:all .2s ease}.podium-card.active-turn{border-color:var(--lingo-green);background:#f0fdf4;box-shadow:0 2px 10px #16a34a1f}.podium-card.steal-turn{border-color:var(--lingo-amber);background:#fffbeb;box-shadow:0 2px 10px #f59e0b29}.podium-name-wrap{display:flex;flex-direction:column;overflow:hidden}.podium-name{font-size:.82rem;font-weight:800;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.podium-role{font-size:.66rem;font-weight:700;color:var(--text-muted)}.podium-score{font-size:1rem;font-weight:800;color:var(--lingo-green-dark)}.clue-card{background:#fffbeb;border:1.5px solid #FDE68A;border-radius:12px;padding:10px 14px;text-align:center}.clue-badge{font-size:.7rem;font-weight:800;color:#b45309;letter-spacing:.05em;margin-bottom:3px}.clue-text{font-size:.88rem;font-weight:700;color:var(--text-main);line-height:1.35}.status-banner{background:var(--bg-surface);border:1px solid var(--border-light);border-radius:10px;padding:7px 12px;text-align:center;font-size:.84rem;font-weight:700;color:var(--text-secondary);transition:all .2s ease}.status-banner.banner-reveal{background:#eff6ff;border:1.5px solid #60A5FA;color:#1e40af;font-size:.92rem;font-weight:800}.board-wrapper{flex:1;display:flex;align-items:center;justify-content:center;padding:2px 0}.lingo-grid{display:flex;flex-direction:column;gap:6px;width:100%;max-width:390px}.lingo-row{display:grid;gap:6px;width:100%}.lingo-tile{aspect-ratio:1 / 1;max-height:54px;width:100%;border-radius:10px;border:2px solid var(--border-light);background:var(--bg-surface);display:flex;align-items:center;justify-content:center;font-size:1.32rem;font-weight:800;color:var(--text-main);-webkit-user-select:none;user-select:none;transition:transform .14s ease,background-color .2s ease,border-color .2s ease}.lingo-tile.active-cursor{border-color:var(--primary-blue);box-shadow:0 0 0 2px #2563eb1f}.lingo-tile.tile-correct{background:var(--lingo-green);border-color:var(--lingo-green-dark);color:#fff}.lingo-tile.tile-present{background:var(--lingo-amber);border-color:var(--lingo-amber-dark);color:#fff;border-radius:50%}.lingo-tile.tile-absent{background:var(--bg-subtle);border-color:#cbd5e1;color:var(--text-secondary)}.lingo-tile.tile-hint{background:var(--lingo-hint-bg);border-color:var(--lingo-hint-border);color:var(--lingo-green-dark)}.lingo-tile.tile-solution{background:#2563eb;border-color:#1d4ed8;color:#fff;box-shadow:0 2px 8px #2563eb40}.lingo-row.steal-row .lingo-tile:not(.tile-correct):not(.tile-present):not(.tile-absent):not(.tile-solution):not(.tile-hint){border-color:#fcd34d;background:#fffbeb}.grid-section-badge{font-size:.72rem;font-weight:800;letter-spacing:.04em;text-align:center;padding:4px 10px;border-radius:8px;margin-top:2px}.grid-section-badge.steal-badge{background:#fffbeb;color:#b45309;border:1px solid #FDE68A}.grid-section-badge.solution-badge{background:#eff6ff;color:#1d4ed8;border:1px solid #93C5FD}.controls-bar{display:flex;gap:6px}.tool-btn{flex:1;padding:9px 10px;border-radius:10px;border:1.5px solid var(--border-light);background:var(--bg-surface);color:var(--text-main);font-family:inherit;font-size:.78rem;font-weight:700;cursor:pointer;white-space:nowrap}.tool-btn.freeze-btn{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.submit-word-btn{flex:1.25;padding:9px 12px;border-radius:10px;border:none;background:var(--lingo-green);color:#fff;font-family:inherit;font-size:.84rem;font-weight:800;cursor:pointer;white-space:nowrap}.submit-word-btn:disabled,.tool-btn:disabled{opacity:.45;cursor:not-allowed}.keyboard-section{display:flex;flex-direction:column;gap:5px;padding-top:2px}.kb-row{display:flex;justify-content:center;gap:4px}.kb-key{flex:1;min-width:24px;height:42px;border-radius:8px;border:1px solid var(--border-light);background:var(--bg-surface);color:var(--text-main);font-family:inherit;font-size:.84rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;-webkit-user-select:none;user-select:none;box-shadow:0 1px 1px #0f172a0a}.kb-key.kb-wide{flex:1.5;font-size:.78rem}.kb-key.key-correct{background:var(--lingo-green);border-color:var(--lingo-green-dark);color:#fff}.kb-key.key-present{background:var(--lingo-amber);border-color:var(--lingo-amber-dark);color:#fff}.modal-backdrop{position:fixed;inset:0;background:#0f172a59;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:16px;z-index:100}.modal-card{width:100%;max-width:400px;background:var(--bg-surface);border:1px solid var(--border-light);border-radius:var(--radius-lg);padding:22px 20px;box-shadow:0 20px 40px #0f172a1f;text-align:center}.modal-tag{display:inline-block;background:var(--bg-subtle);color:var(--text-secondary);font-size:.7rem;font-weight:800;padding:4px 10px;border-radius:999px;letter-spacing:.06em;margin-bottom:8px}.modal-tag.pro-tag{background:#fef3c7;color:#b45309}.modal-title{font-size:1.25rem;font-weight:800;color:var(--text-main);margin-bottom:6px}.modal-desc{font-size:.86rem;color:var(--text-secondary);line-height:1.45;margin-bottom:16px}.ad-visual-box{background:var(--bg-subtle);border:1px solid var(--border-light);border-radius:12px;padding:16px;margin-bottom:16px}.ad-timer-circle{width:48px;height:48px;margin:0 auto 10px;border-radius:50%;background:var(--bg-surface);border:2px solid var(--lingo-amber);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--lingo-amber-dark)}.ad-progress-track{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}.ad-progress-fill{height:100%;width:0%;background:var(--lingo-green);transition:width .08s linear}.pro-feature-list{list-style:none;text-align:left;background:var(--bg-subtle);border-radius:12px;padding:12px 14px;margin-bottom:16px;display:flex;flex-direction:column;gap:6px;font-size:.84rem;font-weight:700;color:var(--text-main)}.modal-actions{display:flex;flex-direction:column;gap:8px}.standings-list{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.standing-item{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-radius:10px;background:var(--bg-subtle);font-weight:700}.standing-item.first-place{background:#dcfce7;border:1px solid #86EFAC;color:var(--lingo-green-dark)}
