.hp-field{position:absolute;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}:root{--bg-darkest: #060a12;--bg-dark: #081420;--bg-panel: #0c1a28;--bg-card: #101e30;--accent-primary: #00aad4;--accent-hover: #00d4aa;--accent-muted: #0a7a8f;--accent-glow: rgba(0, 170, 212, .4);--accent-subtle: rgba(0, 170, 212, .15);--text-primary: #e8f0f8;--text-secondary: #a0b0c0;--text-muted: #607080;--text-bright: #f8fafc;--player-blue: #3b82f6;--player-red: #dc2626;--gold-accent: #e8b832;--border-color: rgba(0, 170, 212, .15);--border-subtle: rgba(100, 120, 140, .2);--shadow-heavy: 0 8px 32px rgba(0, 0, 0, .6);--shadow-medium: 0 4px 20px rgba(0, 0, 0, .4);--glow-teal: 0 0 20px rgba(0, 170, 212, .3);--glow-teal-strong: 0 0 30px rgba(0, 170, 212, .5);--input-bg: rgba(0, 10, 20, .6);--btn-primary-bg: linear-gradient(135deg, #00a0c4 0%, #0080a0 100%);--btn-primary-hover: linear-gradient(135deg, #00b0d4 0%, #0090b0 100%);--btn-primary-shadow: 0 4px 15px rgba(0, 170, 212, .3);--btn-primary-shadow-hover: 0 6px 25px rgba(0, 170, 212, .5);--primary-color: #00aad4;--primary-hover: #00d4aa}*{box-sizing:border-box}button,input,select,textarea{font-family:inherit}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:0;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAYCAYAAACbU/80AAAIT0lEQVR4nB1W16KEKhIkgwiSUQyTszP3Ye/+/7dtn31yHAXpruqqQlgNDTd1Q9o01MxLFXtCNq20dpm34V/ZugNbww139oNdd+A2bGxVd+X6k3L+i5zcmTY3PpSDNENVbXiLZCvuuioWdZDTcEX98MEhjWzqL2ytd9bnxLw64V43hHX5KqOfyg4XMZgXr/VEtY90thE5lfBkZ9r0W7qy4z5tsusS7+0kTRqpzrvq5QNpO8ohJpSHnZVSaSffaC4XZeWFaPUUvb3hUqEoO7PqPyiZWQ0avjcckQo1qtBV3PRMo3myqcxIpy+K+kHWtGMjvyqmA+/ChFO609Q/ebEzzvJHa1ioE0/u1UdlH5kdkkj+qPp4Q0Vc1BCOfPGwp3uKoCdh3QEFN/GcV5X1gbR+QjTYHXX2jGt6iDE21KemqrziqnfV/EeVPMo6fOBgD6ld4/BUGAPw5KPI4idGsYliz3A9CJurUvBxnSrphoOM/sPK8EVNbvgi/0MHcSdjdxPerwDLgkd4l2pb2NLtKKWnWn2Uf22G9rKlnFi0X1btR0RxJqPZeB12eP+tHBxGqYWGcObFbywMDTjzJoN5q8UV5sKozJBU0A/Zi5usfmRj95VaVgbf49Xe+GS+OPoHwoOZieuvqOQX6+wiNWBeuiupemWLO7E8XGDhkSnVkJcfOeVZrCWL6J8kppdoEg7afdSQnyqVBxqGK1vLRpPbhbZf2eszm4ajdPlKl/rGPq3CyZlZd/3rOqIuNtH5t8j6TCb/k6G+SNGZxfjgLa6yyTtz6ohr/0LO/8tTqmLuR7HYM3H5wVReiM4wGenFhvijOdzgekFL+UInGjPdg1V5I9qtZNA7nyoU6O7UmSPP/YaQ705sjl8eoLXRPmRIBYVSlIknVfRRntOFD/nE+3DlXZxxVU/U+UZh9GjUO/K6kiAOdPYRmXTBY/7gWhua3Al15Qf3mS86qxjvckoFr+ZI0vDmMdxZMC8YQ5W5kTcVu6Po3B3PdZKu23g/3EQTd6b6mcUQyRwz0vAs9hufVUJ6OMklA+PDUU4uIWUW4t0qS1/pFDJMwYnP6SbG7sFt/nKdfmKOF+DVirM6cAcaEboTwrac5Ox/3OTMvIRW5oVpdRdVnmgsF1S7nev6oDVfSAoLXyTc+yLC8CZR3XiIFYf4IJN6qCQ2WDMRoxY81USWWEmVR1rdRzrg1xCeEn6DUL1Z6d8cIEI4KCCW/sJMRzGFhpONePU7wPCSq1ipqUdW3CbWnOUiHjS6J3dpxFClOtRddnFDSW345A8q9l859rt07kQ7v6hxSDApP+67XVTg0xh2XIBPo4URNg+aoFN8SSA8cSNK/2SnYb7jl9Sw4Vlf+Do0ZEHRQErl4F5y6Kq0gGlSV2b7nfZmlypcZdN36ALIePpCV04q6S8BPqC+VhLtpoKaldcPBZ0k1n+x0ZkkmIK+35F0cUE2H4FQK08RtLxbsc8NBWC09TcKB2CjyKraCXXuLIP4ER8+KMsbby7LNsCG4BEtfNRcFwKwKePvYnE31aCLKqxidjtMxUy7MgpjExm6Aw7+yJzeEB/rgVR/BeGZWHPtj5l8DFcWQLFy+LAOKl+HN23DlQR7Vs4mPnZP1PqjHM2HB/mhTY6kizvrxIKjO6mpVOnNTurw4sGMAnwAW32majiw6G7QrTuubuMTFM+SbdLkNy/lQ526cN0lMIpR1e4pdT1J4ABq+Ynm4b8U2I+bzLJzR/CJDXA9KBOKyrVSBd5X4lcmPeMu3ZEzGVXZRLVXZOrCZ9/IZGGv/iGrWkWML5bzHf2xE5h6Fa1WNviHBHwp6DjY866GMvEgJiDNi2Z7hQVX5sNF9nDY5p/UiPn/JjPbM/flLWv/JqaM6iI/uBNHqnWUSd7lCGKuwJyCuAjbFTYkECN5Eg34h1eZRSuJ6PLjc3ehuVywlyNX5ia0G0XzB6Lr+8+k+BI/rJYmSv+EZzvWQyXZbyjkDRs1qlaPOKk7zwBFszdh9SzhfxHKzly5y6CvUPnOs3+wEldi0xPxUG48D1/emxtp4g0z+xWjfjCTdrmUmypyV9BcbuVNTGljrsI74a/1kRVVgM0rncoGhpOx8g/i6shbOokV5DrDfmt60AECydztJPmJjfUB2N94MSDV/Q1h5wqZ4hGqOoM/gx/kH1elAiQPWfIZOQeu1n9kq4W1cEXVHGmQJ1y7D53DD6rcaReuyvoXmyAFdcOPOA2QlQr+cMC5vnktK67hp7I5Su+hwP5EvfmD74akShNZ3ch0mIHJD1rUiwIFwfUjLvosNGBm4oesOqMFFq7gD4MqeI4bN39pyX1QMBc6u3/oGAuexEZy2sioIvImick9RIlZLUDOyUD71cKAXLj14CcDmJEtG7Ohsl6sbFIzmMdFzj0IUdeQE2ee9YhaaiL+wVSf0OIEI/ThOkc2u7dM5aOchvgWHiiKD+vNRUCEgQz541XdyAoeUnQD3FcwsAqaMdJkzjT4hYLNI2RcJc296NAn3kyjVlZi7AtO+yA+/jiwmNdcmYENcjhQcDk5yQmi2U05daYlnKCtKx8hiHTpyLze2KjupLiF+v4CCeqBK1Q++hEbcwPZPxAwMOb7E7FmgkACocJBW8HHZR5OtMQb6fuNzTqDbs84uYVs9sXd8JeMN9EPM4+ucgPWamE0dX/AWjfZx5V6DevhkFpeaYVg4obtby86uAtkh8aKOfPqzsj3TXoNfhAuSKZUpDMNF9NIBI8f4wEb/8AQPumYdmLkBzLcGfLABNieKODNE0CUBBDNH4kDSfbdW8SQmPMNEtQKhLyjBFPjhjN0BuKXBf8HRfRuA9JXGMGjDOaIix3/B+ELzK2isnmsAAAAAElFTkSuQmCC);background-size:256px 192px;background-repeat:repeat;image-rendering:pixelated;image-rendering:-moz-crisp-edges;image-rendering:crisp-edges}body{margin:0;font-family:Georgia,Palatino Linotype,Book Antiqua,Palatino,serif;background:radial-gradient(ellipse at center,#050a12,#07101d);background-attachment:fixed;color:var(--text-primary);line-height:1.4;min-height:100vh;padding-bottom:40px}button:focus{outline:none}button:focus-visible{outline:2px solid var(--accent-primary);outline-offset:2px;box-shadow:0 0 15px var(--accent-glow)}.app{min-height:100vh;padding:1rem}.app:has(.game-layout.with-sidebar){overflow:hidden;height:100vh}.header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem;padding-bottom:1rem;border-bottom:1px solid rgba(0,170,212,.2);background:linear-gradient(180deg,#0d1a2a,#081420);margin:-1rem -1rem 1.5rem;padding:1rem;box-shadow:inset 0 1px #3098b8,0 3px #000;position:relative;z-index:150}.header h1{margin:0;font-size:1.5rem;background:linear-gradient(90deg,#00aad4,#00d4aa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 0 30px rgba(0,170,212,.5);filter:drop-shadow(0 0 20px rgba(0,170,212,.3))}.header h1.site-title-link{cursor:pointer;-webkit-user-select:none;user-select:none}.header h1.site-title-link:hover{filter:drop-shadow(0 0 25px rgba(0,170,212,.5)) brightness(1.15)}.user-info{display:flex;align-items:center;gap:1rem}.username{font-weight:700;color:var(--accent-primary)}.elo{color:var(--text-secondary)}.currency{display:flex;gap:.5rem;padding:.25rem .5rem;background:linear-gradient(180deg,#0d1a2a,#081420);border:2px solid #1a4a6a;border-radius:6px;font-size:.9rem;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000}.currency .gold{color:#fbbf24}.currency .crystals{color:#a78bfa}.logout-btn{padding:.5rem 1rem;background:#081a18cc;font-size:.9rem;border:1px solid rgba(0,170,212,.3);border-radius:6px;color:var(--text-primary);cursor:pointer;transition:all .2s}.logout-btn:hover{background:#00aad426;border-color:#00aad466}@media (max-width: 600px){.header{flex-direction:column;align-items:stretch;gap:.5rem}.header h1{font-size:1.2rem;text-align:center}.user-info{flex-wrap:wrap;justify-content:center;gap:.5rem;font-size:.85rem}.logout-btn{width:100%;text-align:center;padding:.4rem;font-size:.8rem}}.game-layout{display:grid;grid-template-columns:260px 1fr 320px;gap:1.5rem;align-items:start}@media (max-width: 1200px){.game-layout{grid-template-columns:240px 1fr}.rules-explainer{grid-column:1 / -1;max-height:300px}}@media (max-width: 800px){.game-layout{grid-template-columns:1fr}.rules-sidebar{order:2}}.rules-sidebar{position:sticky;top:12px;background:linear-gradient(180deg,#0d1a2a,#081420);border:3px solid #1a4a6a;border-radius:6px;padding:14px;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000;font-size:12px}.sidebar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(0,170,212,.15)}.sidebar-header h3{margin:0;font-size:14px;font-weight:700;color:var(--accent-primary)}.sidebar-actions{display:flex;gap:6px}.help-btn,.tooltip-toggle{width:26px;height:26px;border-radius:6px;border:1px solid rgba(0,170,212,.2);background:#00141e99;color:var(--text-secondary);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;padding:0}.help-btn:hover,.tooltip-toggle:hover{background:#00aad426;color:var(--text-bright);border-color:#00aad466}.tooltip-toggle.active{background:#00aad433;border-color:var(--accent-primary);color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow)}.mobile-only{display:none}.desktop-only{display:flex}@media (max-width: 800px){.mobile-only{display:flex}.desktop-only{display:none}}.rules-sidebar>h3{margin:0 0 12px;font-size:14px;font-weight:700;color:var(--accent-primary);border-bottom:1px solid rgba(0,170,212,.15);padding-bottom:8px}.rule-group{margin:12px 0}.rule-group-title{font-weight:700;color:var(--accent-primary);margin-bottom:8px;font-size:11px;text-transform:uppercase;letter-spacing:.5px}.rules-sidebar label{display:flex;align-items:center;gap:8px;margin:5px 0;cursor:pointer;color:var(--text-primary)}.rules-sidebar label:hover{color:var(--text-bright)}.rules-sidebar input[type=checkbox]{accent-color:var(--accent-primary)}.rule-row{display:flex;align-items:center;gap:10px;margin:8px 0;flex-wrap:wrap}.rule-row label{display:flex;flex-direction:column;gap:4px;font-size:11px;color:#94a3b8}.rule-label{font-size:11px;color:#94a3b8}.rules-sidebar select,.rules-sidebar input[type=number]{background:#000a1499;color:var(--text-primary);border:1px solid rgba(0,170,212,.2);border-radius:6px;padding:4px 8px;font-size:12px;min-width:80px;transition:all .2s}.rules-sidebar select:focus,.rules-sidebar input[type=number]:focus{border-color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow);outline:none}.rules-sidebar select:disabled{opacity:.5;cursor:not-allowed}.difficulty-select{width:100%;padding:8px 12px;font-size:13px;font-weight:600;background:linear-gradient(135deg,#00806a,#006a58);border:1px solid var(--accent-primary);border-radius:8px;color:var(--text-bright);cursor:pointer;transition:all .2s;box-shadow:0 2px 10px #00aad433}.difficulty-select:hover{background:linear-gradient(135deg,#00a088,#008070);border-color:var(--accent-hover);box-shadow:0 4px 15px #00aad44d}.difficulty-select:focus{outline:none;box-shadow:0 0 0 2px var(--accent-glow)}.rule-warning{background:#eab30826;border:1px solid #ca8a04;border-radius:8px;padding:8px 10px;margin-bottom:12px;font-size:11px;color:#fbbf24;line-height:1.4}.rules-sidebar label.disabled,.rules-sidebar .disabled{opacity:.4;cursor:not-allowed}.rules-sidebar label.disabled:hover{color:#e5e7eb}.rule-with-sub{display:flex;align-items:center;gap:4px;margin:5px 0}.rule-with-sub>label:first-child{min-width:70px;margin:0}.rule-sub{font-size:11px;color:var(--text-secondary);padding-left:8px;border-left:2px solid rgba(0,170,212,.2);margin:0!important}.rule-sub:not(.disabled):hover{color:var(--text-bright);border-left-color:var(--accent-primary)}.rule-sub-section{margin-left:12px;padding-left:10px;border-left:2px solid rgba(0,170,212,.2);margin-top:6px;margin-bottom:6px}.rule-sub-section.disabled{border-left-color:#00aad40d}.rule-hint{font-size:10px;color:#64748b;font-style:italic}.rule-hint-inline{font-size:10px;color:#64748b;margin-left:auto;font-weight:400}.tooltip-wrapper{display:contents}.tooltip{position:fixed;z-index:1000;background:linear-gradient(180deg,#0d1a2a,#081420);border:3px solid #1a4a6a;border-radius:6px;padding:10px 12px;width:280px;max-width:calc(100vw - 16px);box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000;transform:translateY(-50%);pointer-events:none}.tooltip-right{animation:tooltipFadeInRight .15s ease-out}@keyframes tooltipFadeInRight{0%{opacity:0;transform:translateY(-50%) translate(-8px)}to{opacity:1;transform:translateY(-50%) translate(0)}}.tooltip-left{animation:tooltipFadeInLeft .15s ease-out}@keyframes tooltipFadeInLeft{0%{opacity:0;transform:translateY(-50%) translate(8px)}to{opacity:1;transform:translateY(-50%) translate(0)}}.tooltip-top-center{transform:translate(-50%);animation:tooltipFadeInTop .15s ease-out}@keyframes tooltipFadeInTop{0%{opacity:0;transform:translate(-50%) translateY(-8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.tooltip-title{font-weight:700;font-size:13px;color:#f8fafc;margin-bottom:6px}.tooltip-desc{font-size:12px;color:#94a3b8;line-height:1.5}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000acc;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;animation:modalFadeIn .2s ease-out}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.rules-help-modal{background:linear-gradient(135deg,#0d151ffa,#080c14fc);border:1px solid rgba(0,170,212,.2);border-radius:12px;max-width:500px;width:100%;max-height:80vh;display:flex;flex-direction:column;animation:modalSlideIn .2s ease-out;box-shadow:0 25px 80px #000c,0 0 40px #00aad41a}@keyframes modalSlideIn{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid rgba(0,170,212,.15)}.modal-header h2{margin:0;font-size:18px;color:var(--accent-primary)}.modal-close{width:32px;height:32px;border-radius:6px;border:1px solid rgba(0,170,212,.2);background:#00141e99;color:var(--text-secondary);font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;line-height:1;transition:all .2s}.modal-close:hover{background:#00aad426;color:var(--text-bright);border-color:var(--accent-primary)}.modal-content{flex:1;overflow-y:auto;padding:16px 20px}.help-section{margin-bottom:20px}.help-section:last-child{margin-bottom:0}.help-section h3{font-size:12px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;padding-bottom:6px;border-bottom:1px solid #1f2937}.help-rule{margin-bottom:12px;padding-left:10px;border-left:2px solid rgba(0,170,212,.3)}.help-rule:last-child{margin-bottom:0}.help-rule-name{font-weight:600;font-size:13px;color:var(--accent-primary);margin-bottom:4px}.help-rule-desc{font-size:12px;color:var(--text-secondary);line-height:1.5}.how-to-play-fab{position:fixed;bottom:20px;right:20px;width:44px;height:44px;border-radius:50%;border:2px solid rgba(0,170,212,.5);background:linear-gradient(135deg,#0d1520,#1a2332);color:var(--accent-primary);font-size:22px;font-weight:700;cursor:pointer;z-index:1500;display:flex;align-items:center;justify-content:center;transition:all .2s ease;box-shadow:0 2px 10px #0006,0 0 15px #00aad426;line-height:1;padding:0}.how-to-play-fab:hover{border-color:var(--accent-primary);transform:scale(1.1);box-shadow:0 4px 20px #00000080,0 0 25px #00aad44d}.how-to-play-modal{background:linear-gradient(135deg,#0d1520,#1a2332);border:1px solid rgba(0,170,212,.2);border-radius:12px;width:90%;max-width:560px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #0009,0 0 60px #00aad41a;animation:modalSlideIn .2s ease-out}.htp-section{margin-bottom:18px}.htp-section:last-child{margin-bottom:0}.htp-section h3{font-size:12px;font-weight:700;color:var(--accent-primary);text-transform:uppercase;letter-spacing:.5px;margin:0 0 10px;padding-bottom:6px;border-bottom:1px solid #1f2937}.htp-list{list-style:none;padding:0;margin:0}.htp-list li{position:relative;padding-left:16px;margin-bottom:8px;font-size:13px;color:var(--text-secondary);line-height:1.5}.htp-list li:last-child{margin-bottom:0}.htp-list li:before{content:"▸";position:absolute;left:0;color:#00aad480;font-size:11px}@media (max-width: 600px){.how-to-play-fab{width:38px;height:38px;font-size:18px;bottom:14px;right:14px}.how-to-play-modal{width:95%}}.apply-btn{margin-top:14px;width:100%;padding:10px;border:1px solid rgba(0,170,212,.3);background:linear-gradient(135deg,#00a0c4,#0080a0);color:var(--text-bright);border-radius:8px;cursor:pointer;font-weight:700;font-size:13px;transition:all .2s;box-shadow:0 4px 15px #00aad44d,inset 0 1px #ffffff1a;text-shadow:0 1px 2px rgba(0,0,0,.3)}.apply-btn:hover{background:linear-gradient(135deg,#00b0d4,#0090b0);border-color:var(--accent-hover);box-shadow:0 6px 25px #00aad480,inset 0 1px #fff3}.apply-btn:disabled{opacity:.5;cursor:not-allowed}.game-main{display:flex;flex-direction:column;align-items:center}.status-bar{background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;padding:10px 16px;margin-bottom:16px;font-size:14px;color:var(--text-primary);text-align:center;min-width:300px;box-shadow:0 4px 15px #0000004d}.score-display{display:flex;align-items:center;gap:16px;margin-bottom:16px;font-size:18px;font-weight:700}.score-display span{padding:8px 16px;border-radius:8px;background:#0d151fe6;border:1px solid rgba(100,120,140,.2);transition:all .3s}.score-display span.active{background:#00aad426;border-color:var(--accent-primary);color:var(--text-bright);box-shadow:0 0 15px var(--accent-glow)}.score-display .vs{background:transparent;border:none;padding:0;color:var(--text-muted);font-size:14px}.game-header-row{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1rem;flex-wrap:wrap;min-height:44px}.game-header-row .status-bar{margin-bottom:0;min-width:0;flex:1;padding:8px 12px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-header-row .score-display{margin-bottom:0;font-size:16px;gap:10px}.game-header-row .score-display span{padding:6px 12px}.tott-header-row-1,.tott-header-row-2{justify-content:center;gap:16px}.tott-score-display{display:flex;align-items:center;gap:12px;font-size:14px}.tott-score-display .vs{color:var(--text-muted);font-weight:600}.tott-team{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 16px;border-radius:8px;background:#0d151fe6;min-width:220px}.tott-team.team-blue{border:1px solid rgba(59,130,246,.4)}.tott-team.team-red{border:1px solid rgba(239,68,68,.4)}.tott-team .team-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:1px}.tott-team.team-blue .team-label{color:#60a5fa}.tott-team.team-red .team-label{color:#f87171}.tott-team .team-players{display:flex;gap:8px;white-space:nowrap}.tott-team .team-score{font-size:16px;font-weight:700;color:var(--text-bright)}.tott-player{font-size:12px;color:var(--text-secondary);padding:2px 6px;border-radius:4px;white-space:nowrap;transition:all .3s}.tott-player.active{background:#00aad433;color:var(--accent-primary);font-weight:600;box-shadow:0 0 8px var(--accent-glow)}.tott-side{display:flex;flex-direction:column;gap:20px;align-items:center}.tott-player-slot{display:flex;flex-direction:row;align-items:center;gap:8px;position:relative}.tott-player-slot.is-turn{animation:turnGlow 1.5s ease-in-out infinite}@keyframes turnGlow{0%,to{filter:drop-shadow(0 0 4px rgba(34,197,94,.4))}50%{filter:drop-shadow(0 0 12px rgba(34,197,94,.8))}}.turn-indicator-badge{position:absolute;top:-20px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:10px;font-weight:700;padding:3px 10px;border-radius:12px;white-space:nowrap;animation:badgePulse 1s ease-in-out infinite;z-index:10;box-shadow:0 2px 8px #22c55e66}@keyframes badgePulse{0%,to{transform:translate(-50%) scale(1)}50%{transform:translate(-50%) scale(1.05)}}.game-avatar .turn-indicator-badge{position:absolute;top:-5px;left:50%;transform:translate(-50%);background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;font-size:9px;font-weight:700;padding:2px 8px;border-radius:10px;white-space:nowrap;animation:badgePulse 1s ease-in-out infinite;z-index:10;box-shadow:0 2px 8px #22c55e66}.tott-side-left .tott-player-slot{flex-direction:row}.tott-side-right .tott-player-slot{flex-direction:row-reverse}.tott-side .game-avatar{display:flex;flex-direction:column;align-items:center;gap:4px}.tott-side .game-avatar .avatar-indicator{font-size:10px;max-width:60px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tott-cards{display:flex;flex-direction:column;gap:6px;align-items:center}.tott-cards .mp-hand-card{width:70px;height:88px}.tott-cards .ott-discard-btn{padding:.2rem .5rem;font-size:.65rem;width:60px}.mp-hand-card.face-down.team-blue{border:2px solid #3b82f6}.mp-hand-card.face-down.team-blue .card-back{background:linear-gradient(135deg,#1e40af,#1d4ed8)}.mp-hand-card.face-down.team-red{border:2px solid #ef4444}.mp-hand-card.face-down.team-red .card-back{background:linear-gradient(135deg,#991b1b,#b91c1c)}.tott-ai-layout .game-main{margin-right:300px}.tott-ai-layout.sidebar-collapsed .game-main{margin-right:36px}.tott-ai-layout .game-play-area{display:flex;align-items:flex-start;justify-content:center;gap:1rem}.tott-ai-layout .tott-side{min-width:100px;flex-shrink:0}.tott-ai-layout .game-avatar{width:80px;min-width:80px}.tott-ai-layout .board-container.mp-board-container{flex-shrink:0}.tott-ai-layout .mp-board.ott-board{width:auto;min-width:auto}@media (max-width: 1100px){.tott-ai-layout .mp-board.ott-board{width:auto;min-width:auto}.tott-ai-layout .tott-cards .mp-hand-card{width:60px;height:75px}}@media (max-width: 900px){.tott-ai-layout .game-main{margin-left:36px;margin-right:36px}.tott-ai-layout .game-play-area,.mp-game-layout .game-play-area:has(.tott-side){flex-wrap:wrap;gap:.5rem}.tott-side{flex-direction:row;min-width:auto;gap:1rem}.tott-player-slot{flex-direction:column!important}.tott-cards{flex-direction:row;flex-wrap:wrap;justify-content:center}.tott-cards .ott-discard-btn{order:1}.tott-side .tott-player-slot+.tott-player-slot{border-left:1px solid rgba(255,255,255,.12);padding-left:1rem}.game-play-area:has(.tott-side) .board-container.mp-board-container{width:100%}.game-play-area:has(.tott-side) .mp-board.ott-board{width:100%;min-width:0;max-width:calc(100vw - 40px);aspect-ratio:5 / 7;padding:8px}.game-play-area:has(.tott-side) .mp-board.ott-board .mp-cell{width:100%;height:100%}}.game-type-indicator{background:#6366f133;border:1px solid rgba(99,102,241,.4);color:#a5b4fc;padding:4px 10px;border-radius:4px;font-size:12px;font-weight:600;letter-spacing:.5px}.game-play-area{display:flex;align-items:flex-start;justify-content:center;gap:.75rem}.game-avatar{display:flex;flex-direction:column;align-items:center;gap:.5rem;padding-top:20px;width:80px;min-width:80px;flex-shrink:0;position:relative}.game-avatar .player-avatar{width:72px;height:96px}.game-avatar .avatar-indicator{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);padding:2px 8px;border-radius:4px;background:#0f1923cc;border:1px solid rgba(100,120,140,.2);transition:all .3s}.game-avatar .avatar-indicator.active{color:var(--accent-primary);border-color:var(--accent-primary);background:#00aad41a;box-shadow:0 0 10px var(--accent-glow)}.game-avatar.current-turn{animation:turnPulse 1.5s ease-in-out infinite}.game-avatar.current-turn:before{content:"⏳";position:absolute;top:-8px;right:-8px;font-size:16px;z-index:10}@keyframes turnPulse{0%,to{opacity:1}50%{opacity:.7}}.ai-avatar{width:72px;height:96px;display:flex;align-items:center;justify-content:center;font-size:48px;background:linear-gradient(135deg,#1e283ce6,#141e2de6);border-radius:8px;border:2px solid rgba(100,120,140,.3)}.ai-avatar.enemy{background:linear-gradient(135deg,#3c1e1ee6,#2d1414e6);border-color:#ef44444d}@media (max-width: 900px){.game-avatar{display:none}}.hand-column{display:flex;flex-direction:column;align-items:center;width:70px;min-width:70px;flex-shrink:0}.hand-column h4{font-size:11px;color:#94a3b8;margin:0 0 8px;text-transform:uppercase;letter-spacing:.5px}.hand-vertical{display:flex;flex-direction:column;gap:6px}.hand-vertical.ai{opacity:.8}.cardTT.compact{width:60px}.cardTT.compact .num{font-size:10px;width:16px;height:16px}.cardTT.compact .card-element{font-size:10px;padding:1px 2px;bottom:2px;right:2px}.board-container{position:relative}.game-result-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000ad9;display:flex;align-items:center;justify-content:center;border-radius:6px;z-index:10;animation:fadeIn .3s ease-out;border:3px solid #1a4a6a;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.result-content{text-align:center;padding:1rem}.result-text{font-size:1.5rem;font-weight:700;margin:0 0 .75rem;color:#f8fafc}.result-score{font-size:1rem;margin:0 0 .75rem;color:#94a3b8}.game-result-overlay .ai-trade-phase{margin-bottom:.75rem}.game-result-overlay .ai-trade-phase h4{font-size:.9rem;margin:0 0 .5rem;color:#94a3b8}.game-result-overlay .lottery-rolling{font-size:2rem;margin:0;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.game-result-overlay .lottery-card-won .cardTT{width:70px;margin:0 auto}.game-result-overlay .lottery-card-name{font-size:.8rem;color:#22c55e;margin:.5rem 0 0}.game-result-overlay .lottery-gold-won{font-size:1.5rem;color:#fbbf24;margin:0}.game-result-overlay .loss-gold{font-size:1.5rem;color:#ef4444;margin:0}.game-result-overlay .loss-note{font-size:.8rem;color:#94a3b8;margin:.25rem 0 0}.game-result-buttons{display:flex;gap:.5rem;justify-content:center;margin-top:.75rem}.game-result-buttons button{padding:8px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid rgba(0,170,212,.3);background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;box-shadow:0 4px 15px #00aad44d;transition:all .2s}.game-result-buttons button:hover{background:linear-gradient(135deg,#00b0d4,#0090b0);box-shadow:0 6px 20px #00aad466}.game-result-buttons button.secondary{background:#141e28cc;border:1px solid rgba(100,120,140,.3);box-shadow:none}.game-result-buttons button.secondary:hover{background:#00aad426;border-color:#00aad466}.in-game-rules-panel{background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;margin-bottom:16px;width:100%;max-width:400px;overflow:hidden;transition:all .2s ease}.in-game-rules-panel.minimized{max-width:180px}.in-game-rules-panel-toggle{width:100%;display:flex;align-items:center;gap:8px;padding:10px 14px;background:transparent;border:none;color:#e2e8f0;font-size:13px;font-weight:600;cursor:pointer;text-align:left;transition:background .15s ease}.in-game-rules-panel-toggle:hover{background:#ffffff0d}.in-game-rules-panel .toggle-icon{font-size:10px;color:#64748b;transition:transform .2s ease}.in-game-rules-panel .toggle-label{flex:1}.in-game-rules-panel .rules-count{font-size:11px;color:#64748b;font-weight:400}.in-game-rules-panel-content{padding:0 14px 12px;display:flex;flex-direction:column;gap:6px;animation:panelSlideDown .15s ease-out}@keyframes panelSlideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.in-game-rules-panel .rule-item{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#00aad41a;border-radius:6px;border-left:3px solid var(--accent-primary)}.in-game-rules-panel .rule-name{font-size:12px;font-weight:600;color:var(--accent-primary);min-width:70px}.in-game-rules-panel .rule-desc{font-size:11px;color:var(--text-secondary)}.in-game-rules-panel .no-special-rules{font-size:12px;color:#64748b;font-style:italic;margin:0;padding:4px 0}.board{display:grid;grid-template-columns:repeat(3,85px);grid-template-rows:repeat(3,119px);gap:8px;margin-bottom:0;background:radial-gradient(circle at center,rgba(0,170,212,.05) 0%,transparent 70%),linear-gradient(135deg,#0a1520,#060a10);padding:12px;border-radius:16px;box-shadow:inset 0 0 60px #00000080,0 0 40px #00aad41a}.cell{background:#00141e99;border:1px solid rgba(0,170,212,.15);border-radius:12px;display:grid;place-items:center;position:relative;cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s;box-shadow:inset 0 0 20px #0006}.cell:hover:not(.occupied){border-color:#00aad466;background:#00aad41a;box-shadow:inset 0 0 20px #0006,0 0 15px #00aad433}.cell.occupied{cursor:default}.cell.flipped{animation:flipPulse .6s ease-out}.cell.last-placed{box-shadow:0 0 0 3px #00aad480}@keyframes flipPulse{0%{transform:scale(1);box-shadow:0 0 #fbbf24}50%{transform:scale(1.05);box-shadow:0 0 20px 8px #fbbf2499}to{transform:scale(1);box-shadow:0 0 0 0 transparent}}.rule-popup{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) scale(0);padding:6px 12px;border-radius:8px;font-size:11px;font-weight:700;color:#fff;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap;z-index:100;pointer-events:none;background:#6366f1;box-shadow:0 4px 20px #00000080,0 0 15px #0000004d;text-shadow:0 1px 2px rgba(0,0,0,.5);animation:rulePopupAnim 1.2s ease-out forwards}@keyframes rulePopupAnim{0%{transform:translate(-50%,-50%) scale(0);opacity:0}15%{transform:translate(-50%,-50%) scale(1.3);opacity:1}25%{transform:translate(-50%,-50%) scale(1)}70%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-50%,-80%) scale(.8);opacity:0}}.rule-popup[style*=CAPTURE]{font-size:10px;padding:4px 8px}.cell .rule-popup:nth-child(2),.mp-cell .rule-popup:nth-child(2){transform-origin:center top}.cell .rule-popup:nth-child(3),.mp-cell .rule-popup:nth-child(3){transform-origin:center bottom}.mp-cell:has(.rule-popup),.cell:has(.rule-popup){z-index:10}.tile-badge{position:absolute;top:4px;left:4px;font-size:9px;padding:2px 6px;background:#ffffffe6;color:#1e293b;border-radius:4px;pointer-events:none;font-weight:600;text-transform:uppercase;z-index:5}.cardTT{width:80px;aspect-ratio:5 / 7;border-radius:10px;border:2px solid rgba(100,120,140,.3);background:linear-gradient(135deg,#1e2837e6,#0f141ef2);position:relative;display:grid;place-items:center;font-weight:700;transition:all .2s;overflow:hidden;box-shadow:0 4px 20px #00000080,inset 0 1px #ffffff0d}.card-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}.card-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:7px;pointer-events:none;z-index:1}.cardTT.you{border-color:#3b82f680;background:linear-gradient(135deg,#1e3a8a,#1e40af);box-shadow:0 0 20px #3b82f64d,inset 0 0 15px #3b82f61a}.cardTT.you .card-frame{box-shadow:inset 0 0 0 2px #3b82f666}.cardTT.ai{border-color:#dc262680;background:linear-gradient(135deg,#7f1d1d,#991b1b);box-shadow:0 0 20px #dc26264d,inset 0 0 15px #dc26261a}.cardTT.ai .card-frame{box-shadow:inset 0 0 0 2px #dc262666}.cardTT.gold{border-color:#d4af37;box-shadow:0 0 8px #ffd70080,inset 0 0 0 1px #ffd7004d}.cardTT.gold .card-art{filter:sepia(15%) saturate(130%) brightness(105%)}.cardTT.gold .card-frame{box-shadow:inset 0 0 0 2px #ffd70066,inset 0 0 15px #ffd70026}.cardTT.gold.you{border-color:#d4af37;box-shadow:0 0 8px #ffd70080,0 0 0 2px #3b82f6,inset 0 0 0 1px #3b82f64d}.cardTT.gold.ai{border-color:#d4af37;box-shadow:0 0 8px #ffd70080,0 0 0 2px #dc2626,inset 0 0 0 1px #dc26264d}.cardTT.selectable{cursor:pointer;animation:selectablePulse .6s ease-in-out}@keyframes selectablePulse{0%{box-shadow:0 0 #00aad499,0 0 10px #00aad466;transform:scale(1)}50%{box-shadow:0 0 0 8px #00aad44d,0 0 25px #00aad4b3;transform:scale(1.03)}to{box-shadow:0 0 #00aad400,0 0 8px #00aad44d;transform:scale(1)}}.cardTT.selectable:hover{transform:translateY(-4px) scale(1.05);box-shadow:0 8px 25px #00aad499;animation:none}.cardTT.selected{outline:3px solid var(--accent-primary);outline-offset:2px;transform:translateY(-4px);animation:none;box-shadow:0 0 20px var(--accent-glow)}.num{position:absolute;font-size:14px;font-weight:700;background:#000000b3;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;line-height:1;color:#f8fafc;z-index:2;text-shadow:0 1px 2px rgba(0,0,0,.8)}.num.top{top:4px;left:50%;transform:translate(-50%)}.num.right{right:4px;top:50%;transform:translateY(-50%)}.num.bottom{bottom:4px;left:50%;transform:translate(-50%)}.num.left{left:4px;top:50%;transform:translateY(-50%)}.card-element{position:absolute;bottom:3px;right:3px;font-size:12px;line-height:1;padding:2px;border-radius:4px;cursor:help;background:#000000b3;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5));z-index:2}.card-element-inactive{opacity:.4;filter:grayscale(1)}.hands-container{display:flex;gap:40px;margin-top:10px}.hand-section h3{margin:0 0 10px;font-size:13px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}.hand{display:flex;gap:10px;flex-wrap:wrap}.hand .cardTT{width:80px}.hand .cardTT .num{font-size:12px;width:20px;height:20px}.hand.ai .cardTT{opacity:.7}.rules-explainer{background:linear-gradient(180deg,#0d1a2a,#081420);border:3px solid #1a4a6a;border-radius:6px;padding:14px;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000;max-height:calc(100vh - 120px);overflow:hidden;display:flex;flex-direction:column;transition:all .2s ease}.rules-explainer.minimized{max-height:none;padding:10px}.explainer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid rgba(0,170,212,.15);gap:10px}.rules-explainer.minimized .explainer-header{margin-bottom:0;padding-bottom:0;border-bottom:none}.explainer-toggle-btn{background:#00141e99;border:1px solid rgba(0,170,212,.2);color:var(--text-secondary);width:24px;height:24px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:10px;transition:all .15s ease;flex-shrink:0}.explainer-toggle-btn:hover{background:#00aad426;color:var(--text-bright);border-color:#00aad466}.explainer-title{font-weight:700;font-size:14px;color:var(--accent-primary);flex:1}.explainer-minimized-count{font-size:11px;color:#64748b;text-align:center;margin-top:8px}.btn-small{font-size:11px;padding:4px 10px;border-radius:6px;color:#e5e7eb;background:#111827;border:1px solid #374151;cursor:pointer}.btn-small:hover{background:#1f2937}.explainer-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px;padding-right:4px}.explainer-empty{color:var(--text-muted);font-size:13px;padding:12px;border:1px dashed rgba(0,170,212,.2);border-radius:8px;background:#00141e66;text-align:center}.explainer-entry{border:1px solid rgba(0,170,212,.1);border-radius:8px;padding:10px;background:#00141e66}.entry-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.entry-badges{display:flex;gap:4px;flex-wrap:wrap}.rule-badge{font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;color:#fff;text-transform:uppercase}.entry-time{font-size:11px;color:#64748b}.entry-details{font-size:12px;color:#94a3b8}.entry-details strong{color:#e5e7eb}.entry-no-rule{font-size:11px;color:#64748b;font-style:italic;margin-top:4px}.entry-header{cursor:pointer;-webkit-user-select:none;user-select:none}.entry-expand{font-size:12px;color:var(--accent-primary);margin-right:8px;transition:color .15s;min-width:12px}.explainer-entry:hover .entry-expand{color:var(--text-secondary)}.explainer-entry.expanded{border-color:var(--accent-primary);background:#00aad40d}.entry-expanded{margin-top:12px;padding-top:12px;border-top:1px solid #1f2937}.flipped-at{color:#f59e0b;font-weight:600}.side-details{margin-top:10px}.side-details-title{font-size:11px;font-weight:600;color:#94a3b8;margin-bottom:6px;text-transform:uppercase;letter-spacing:.5px}.side-row{display:flex;align-items:center;gap:8px;font-size:11px;padding:4px 8px;border-radius:4px;margin-bottom:3px;background:#111827}.side-row.capture{background:#dc262626;border-left:2px solid #dc2626}.side-row.blocked{background:#64748b1a}.side-row.empty,.side-row.wall{opacity:.6}.side-dir{font-weight:600;color:var(--accent-primary);min-width:55px}.side-vals{color:#cbd5e1;flex:1}.side-vals strong{color:#f8fafc}.side-empty{color:#64748b;font-style:italic}.side-math{font-size:10px;color:#64748b}.side-outcome{font-size:10px;font-weight:600;text-transform:uppercase}.outcome-capture{color:#ef4444}.outcome-blocked{color:#64748b}.outcome-equal{color:#f59e0b}.outcome-friendly{color:#22c55e}.outcome-wall,.outcome-empty{color:#475569}.rule-details{margin-top:8px}.rule-detail-row{display:flex;align-items:center;gap:8px;font-size:11px;padding:6px 8px;background:#111827;border-radius:4px;margin-bottom:4px}.rule-badge-sm{font-size:9px;font-weight:700;padding:2px 6px;border-radius:999px;color:#fff;text-transform:uppercase;white-space:nowrap}.rule-explain{color:#94a3b8}.rule-explain strong{color:#f8fafc}.pair-info{color:var(--accent-primary)}.app:has(.mode-selector-wrapper){padding:0}.app:has(.mode-selector-wrapper) .header{padding:1rem;margin:0;border-bottom:1px solid rgba(0,170,212,.2)}.mode-selector-wrapper{display:flex;min-height:calc(100vh - 70px)}.lobby-chat-dock{position:fixed;top:70px;left:0;bottom:32px;width:300px;background:var(--bg-panel);border-right:1px solid var(--border-color);border-top:1px solid var(--border-color);display:flex;flex-direction:column;z-index:100;transition:width .3s ease,transform .3s ease}.lobby-chat-dock.collapsed{transform:translate(-260px)}.lobby-chat-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#0000004d;border-bottom:1px solid var(--border-color);flex-shrink:0;cursor:pointer;-webkit-user-select:none;user-select:none}.lobby-chat-dock.collapsed .lobby-chat-header{position:absolute;right:0;top:0;bottom:0;width:40px;flex-direction:column;justify-content:flex-start;padding:.75rem .5rem;background:var(--bg-panel);border-left:1px solid var(--border-color);border-bottom:none}.lobby-chat-title{font-weight:600;color:var(--accent-primary);font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.lobby-chat-dock.collapsed .lobby-chat-title{writing-mode:vertical-rl;text-orientation:mixed;margin-top:.5rem}.lobby-chat-toggle{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.8rem;padding:.25rem}.lobby-chat-body{flex:1;display:flex;flex-direction:column;overflow:visible;min-height:0}.lobby-chat-dock.collapsed .lobby-chat-body{display:none}.lobby-chat-error{padding:.5rem;background:#ef444433;color:#f87171;font-size:.8rem;text-align:center;flex-shrink:0}.lobby-online-section{flex-shrink:0;border-bottom:1px solid var(--border-color)}.lobby-online-header{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;background:#0003;cursor:pointer;-webkit-user-select:none;user-select:none}.lobby-online-header:hover{background:#0000004d}.lobby-online-title{font-size:.75rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px}.lobby-online-toggle{font-size:.6rem;color:var(--text-muted)}.lobby-online-list{padding:.5rem .75rem;display:flex;flex-wrap:wrap;gap:.35rem;max-height:80px;overflow-y:auto;background:#0000001a}.lobby-online-empty{color:var(--text-muted);font-size:.75rem;font-style:italic}.lobby-online-user{display:inline-block;padding:.15rem .4rem;background:#00aad426;border:1px solid rgba(0,170,212,.3);border-radius:3px;font-size:.7rem;color:var(--accent-primary)}.lobby-online-user.self{background:#a78bfa26;border-color:#a78bfa4d;color:#a78bfa}.lobby-chat-messages{flex:1;overflow-y:auto;padding:.75rem 1rem;display:flex;flex-direction:column;gap:.25rem}.lobby-chat-empty{color:var(--text-muted);font-size:.85rem;text-align:center;padding:2rem 1rem;font-style:italic}.lobby-chat-message{display:flex;align-items:baseline;gap:.5rem;font-size:.85rem;line-height:1.4}.lobby-chat-message.mentioned{background:#fbbf241a;border-left:3px solid #fbbf24;margin-left:-.5rem;padding-left:.5rem;padding-top:.25rem;padding-bottom:.25rem;border-radius:0 4px 4px 0}.lobby-chat-timestamp{color:var(--text-muted);font-size:.7rem;flex-shrink:0}.lobby-chat-username{font-weight:600;color:var(--accent-primary);flex-shrink:0}.lobby-chat-message.own .lobby-chat-username{color:#a78bfa}.lobby-chat-content{color:var(--text-primary);word-break:break-word}.lobby-chat-message.system{justify-content:center;opacity:.7;padding:.15rem 0}.lobby-chat-message.system .lobby-chat-timestamp{font-size:.65rem}.lobby-chat-system-content{color:var(--text-muted);font-size:.75rem;font-style:italic}.lobby-chat-format-bar{display:flex;align-items:center;gap:.15rem;padding:.35rem .5rem;background:#0003;border-top:1px solid rgba(255,255,255,.05);flex-wrap:wrap;flex-shrink:0}.lobby-chat-format-bar .format-btn{padding:.2rem .35rem;font-size:.7rem;min-width:22px;width:24px;height:22px}.lobby-chat-format-bar .format-dropdown{position:relative}.lobby-chat-format-bar .format-dropdown-menu{display:none;position:absolute;bottom:100%;left:0;margin-bottom:.5rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.5rem;z-index:100;min-width:80px}.lobby-chat-format-bar .format-dropdown:hover .format-dropdown-menu{display:block}.lobby-chat-format-bar .format-dropdown-menu button{display:block;width:100%;padding:.35rem .75rem;background:transparent;border:none;color:#d1d5db;font-size:.8rem;text-align:left;cursor:pointer;border-radius:4px}.lobby-chat-format-bar .format-dropdown-menu button:hover{background:#ffffff1a}.lobby-chat-format-bar .color-picker-popup{position:absolute;bottom:100%;left:0;margin-bottom:.5rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.75rem;z-index:1000;display:grid;grid-template-columns:repeat(6,1fr);gap:.35rem}.lobby-chat-format-bar .color-swatch{width:24px;height:24px;border:2px solid transparent;border-radius:4px;cursor:pointer;transition:transform .1s ease;padding:0;background-image:none!important;box-shadow:none}.lobby-chat-format-bar .color-swatch:hover{transform:scale(1.15);border-color:#fff;background-image:none!important}.lobby-chat-format-bar{overflow:visible}.lobby-chat-format-bar .emoji-picker-container{position:relative}.lobby-chat-format-bar .emoji-picker{left:0;right:auto;max-width:220px;z-index:1000}.lobby-chat-input{display:flex;gap:.35rem;padding:.5rem;flex-shrink:0;background:#00000026}.lobby-chat-input input{flex:1;padding:.4rem .6rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:4px;color:var(--text-primary);font-size:.85rem}.lobby-chat-input input::placeholder{color:#64748b}.lobby-chat-input input:focus{outline:none;border-color:var(--accent-primary)}.lobby-chat-input button{padding:.4rem .75rem;background:linear-gradient(135deg,#00a0c4,#0080a0);border:none;border-radius:4px;color:#fff;font-weight:600;font-size:.8rem;cursor:pointer}.lobby-chat-input button:hover{background:linear-gradient(135deg,#00aad4,#0090b0)}@media (max-width: 900px){.mode-selector-wrapper{flex-direction:column}.lobby-chat-dock{position:static;width:100%;min-width:100%;max-height:250px;border-right:none;border-bottom:1px solid rgba(99,102,241,.2)}.lobby-chat-dock.collapsed{width:100%;min-width:100%;max-height:40px;transform:none}.lobby-chat-dock.collapsed .lobby-chat-header{position:static;width:100%;flex-direction:row;justify-content:space-between;padding:.75rem 1rem;border-left:none}.lobby-chat-dock.collapsed .lobby-chat-title{display:block;writing-mode:horizontal-tb;text-orientation:initial;margin-top:0}.lobby-chat-toggle{transform:rotate(90deg)}.lobby-chat-dock.collapsed .lobby-chat-toggle{transform:rotate(-90deg)}}.lobby-games-dock{position:fixed;top:70px;right:0;bottom:32px;width:300px;background:var(--bg-panel);border-left:1px solid var(--border-color);border-top:1px solid var(--border-color);display:flex;flex-direction:column;z-index:100;transition:width .3s ease,transform .3s ease}.lobby-games-dock.collapsed{transform:translate(260px)}.lobby-games-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#0000004d;border-bottom:1px solid var(--border-color);flex-shrink:0;cursor:pointer;-webkit-user-select:none;user-select:none}.lobby-games-dock.collapsed .lobby-games-header{position:absolute;left:0;top:0;bottom:0;width:40px;flex-direction:column;justify-content:flex-start;padding:.75rem .5rem;background:var(--bg-panel);border-right:1px solid var(--border-color);border-bottom:none}.lobby-games-title{font-weight:600;color:var(--accent-primary);font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.lobby-games-dock.collapsed .lobby-games-title{writing-mode:vertical-rl;text-orientation:mixed;margin-top:.5rem}.lobby-games-toggle{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.8rem;padding:.25rem}.lobby-games-body{flex:1;display:flex;flex-direction:column;overflow:hidden;min-height:0}.lobby-games-dock.collapsed .lobby-games-body{display:none}.lobby-games-tabs{display:flex;flex-shrink:0;border-bottom:1px solid var(--border-color)}.lobby-games-tab{flex:1;padding:.6rem .5rem;background:transparent;border:none;color:var(--text-muted);font-size:.8rem;font-weight:600;cursor:pointer;text-align:center;transition:color .2s,background .2s;display:flex;align-items:center;justify-content:center;gap:.35rem}.lobby-games-tab:hover{color:var(--text-primary);background:#ffffff08}.lobby-games-tab.active{color:var(--accent-primary);border-bottom:2px solid var(--accent-primary)}.tab-count{background:var(--accent-primary);color:#000;font-size:.65rem;font-weight:700;padding:.1rem .4rem;border-radius:10px;min-width:18px;text-align:center}.lobby-games-list{flex:1;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.5rem}.lobby-games-empty{text-align:center;color:var(--text-muted);font-size:.85rem;padding:2rem 1rem}.lobby-game-card{background:#00000040;border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:.6rem .75rem;display:flex;flex-direction:column;gap:.35rem;transition:border-color .2s}.lobby-game-card:hover{border-color:#00aad44d}.lobby-game-card-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.lobby-game-name{font-size:.85rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.lobby-game-type-tag{font-size:.65rem;font-weight:700;color:#000;padding:.1rem .4rem;border-radius:4px;text-transform:uppercase;flex-shrink:0}.lobby-game-card-mid{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:var(--text-secondary)}.lobby-game-host .clickable{cursor:pointer;color:var(--accent-primary)}.lobby-game-host .clickable:hover{text-decoration:underline}.lobby-game-wager{background:#f59e0b33;color:#f59e0b;padding:.05rem .35rem;border-radius:4px;font-size:.7rem;font-weight:600}.lobby-game-players{color:var(--text-muted);font-size:.7rem}.lobby-game-card-rules{display:flex;gap:.3rem;flex-wrap:wrap}.lobby-game-rule-badge{font-size:.6rem;padding:.1rem .3rem;background:#6366f126;color:var(--accent-primary);border-radius:3px;font-weight:500}.lobby-game-rule-badge.more{background:#ffffff14;color:var(--text-muted)}.lobby-game-join-btn{align-self:flex-end;padding:.3rem 1rem;background:linear-gradient(135deg,#00aad4,#0090b0);color:#fff;border:none;border-radius:4px;font-size:.75rem;font-weight:600;cursor:pointer;transition:background .2s}.lobby-game-join-btn:hover{background:linear-gradient(135deg,#00c4f0,#00aad4)}.lobby-rankings-list{flex:1;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.lobby-rank-row{display:flex;align-items:center;gap:.6rem;padding:.5rem .6rem;border-radius:6px;transition:background .2s}.lobby-rank-row.clickable{cursor:pointer}.lobby-rank-row.clickable:hover{background:#ffffff0d}.lobby-rank-pos{font-size:.9rem;min-width:28px;text-align:center;font-weight:700}.lobby-rank-pos.rank-1{color:#fbbf24}.lobby-rank-pos.rank-2{color:#d1d5db}.lobby-rank-pos.rank-3{color:#cd7f32}.lobby-rank-name{flex:1;font-size:.85rem;color:var(--text-primary);font-weight:500}.lobby-rank-elo{font-size:.8rem;font-weight:700}.lobby-rankings-viewall{margin-top:.5rem;padding:.5rem;background:transparent;border:1px solid var(--border-color);border-radius:6px;color:var(--accent-primary);font-size:.8rem;font-weight:600;cursor:pointer;text-align:center;transition:background .2s}.lobby-rankings-viewall:hover{background:#00aad41a}@media (max-width: 900px){.lobby-games-dock{position:static;width:100%;min-width:100%;max-height:300px;border-left:none;border-top:1px solid rgba(99,102,241,.2)}.lobby-games-dock.collapsed{width:100%;min-width:100%;max-height:40px;transform:none}.lobby-games-dock.collapsed .lobby-games-header{position:static;width:100%;flex-direction:row;justify-content:space-between;padding:.75rem 1rem;border-right:none}.lobby-games-dock.collapsed .lobby-games-title{display:block;writing-mode:horizontal-tb;text-orientation:initial;margin-top:0}.lobby-games-toggle{transform:rotate(90deg)}.lobby-games-dock.collapsed .lobby-games-toggle{transform:rotate(-90deg)}}.mode-selector{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:40px 20px 60px;min-height:calc(100vh - 70px);transition:margin-left .3s ease,margin-right .3s ease}@media (min-width: 901px){.mode-selector-wrapper .mode-selector{margin-left:300px;margin-right:300px}.mode-selector-wrapper:has(.lobby-chat-dock.collapsed) .mode-selector{margin-left:40px}.mode-selector-wrapper:has(.lobby-games-dock.collapsed) .mode-selector{margin-right:40px}.mode-selector-wrapper:has(.lobby-chat-dock.collapsed):has(.lobby-games-dock.collapsed) .mode-selector{margin-left:40px;margin-right:40px}}.mode-selector h2{margin:0 0 8px;font-size:28px;background:linear-gradient(90deg,#00aad4,#00d4aa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.mode-subtitle{margin:0;color:var(--text-secondary);font-size:16px}.welcome-section{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem}.welcome-section .player-avatar{flex-shrink:0}.welcome-text{text-align:left}.welcome-text h2{margin:0 0 4px}.mode-category{width:100%;max-width:800px;margin-bottom:32px}.mode-category:last-child{margin-bottom:0}.mode-category-title{font-size:12px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--accent-primary);margin:0 0 16px;padding-bottom:8px;border-bottom:1px solid rgba(0,170,212,.2);text-shadow:0 0 20px rgba(0,170,212,.4)}.mode-options{display:flex;gap:24px;flex-wrap:wrap;justify-content:center}.mode-btn{display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 48px;background:linear-gradient(135deg,#0f1923e6,#0a0f19f2);border:1px solid rgba(0,170,212,.15);border-radius:16px;cursor:pointer;transition:all .2s;min-width:200px;box-shadow:0 4px 20px #0006,inset 0 1px #ffffff08}.mode-btn:hover{transform:translateY(-4px);border-color:#00aad466;box-shadow:0 8px 30px #00000080,0 0 25px #00aad433}.mode-btn.mode-ai:hover{border-color:#00aad480;box-shadow:0 8px 30px #00000080,0 0 25px #00aad44d}.mode-btn.mode-ai.disabled{opacity:.5;cursor:not-allowed;border-color:#6b72804d;box-shadow:none}.mode-btn.mode-ai.disabled:hover{border-color:#6b72804d;box-shadow:none;transform:none}.mode-btn.mode-pvp:hover{border-color:#f59e0b;box-shadow:0 12px 40px #00000080,0 0 25px #f59e0b33}.mode-icon{font-size:48px}.mode-title{font-size:20px;font-weight:700;color:var(--text-bright)}.mode-desc{font-size:13px;color:var(--text-primary)}.pvp-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:calc(100vh - 150px);text-align:center}.pvp-placeholder h2{margin:0 0 12px;font-size:24px;color:#f8fafc}.pvp-placeholder p{margin:0 0 24px;color:#94a3b8;font-size:16px}.back-btn{padding:12px 24px;background:#374151;border:1px solid #4b5563;border-radius:8px;color:#e5e7eb;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.back-btn:hover{background:#4b5563;border-color:#6b7280}.card-vault{display:flex;flex-direction:column;padding:20px;max-width:1200px;margin:0 auto;width:100%}.vault-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid #1f2937;flex-wrap:wrap;gap:16px}.vault-title-section h2{margin:0 0 4px;font-size:24px;color:#f8fafc}.vault-subtitle{margin:0;color:#94a3b8;font-size:14px}.vault-stats{display:flex;gap:24px;margin-bottom:20px;padding:16px;background:#0d151fe6;border-radius:12px;border:1px solid rgba(0,170,212,.15)}.vault-stat{text-align:center}.vault-stat-value{display:block;font-size:24px;font-weight:700;color:var(--accent-primary)}.vault-stat-label{font-size:11px;color:#94a3b8;text-transform:uppercase;letter-spacing:.5px}.vault-filters{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px;padding:16px;background:#0d151fe6;border-radius:12px;border:1px solid rgba(0,170,212,.15);align-items:center}.vault-search{flex:1;min-width:180px;padding:10px 14px;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:8px;color:var(--text-primary);font-size:14px;transition:all .2s}.vault-search:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.vault-search::placeholder{color:#64748b}.vault-filter-select{padding:10px 14px;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:8px;color:var(--text-primary);font-size:13px;min-width:140px;transition:all .2s}.vault-filter-select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.vault-level-range{display:flex;align-items:center;gap:8px;color:#94a3b8;font-size:13px}.vault-level-range select{padding:8px 12px;background:#0f172a;border:1px solid #2b3a55;border-radius:6px;color:#e5e7eb;font-size:13px;width:60px}.vault-clear-btn{padding:10px 16px;background:#374151;border:1px solid #4b5563;border-radius:8px;color:#e5e7eb;font-size:13px;cursor:pointer}.vault-clear-btn:hover{background:#4b5563}.vault-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:16px;margin-bottom:20px}.vault-card{display:flex;flex-direction:column;align-items:center;position:relative;transition:transform .2s}.vault-card:hover{transform:translateY(-4px)}.vault-card .cardTT{width:80px}.vault-card .cardTT .num{font-size:11px;width:18px;height:18px}.vault-card .card-element{font-size:7px;padding:1px 3px}.vault-card-quantity{position:absolute;top:-6px;right:calc(50% - 46px);background:#f59e0b;color:#000;font-size:11px;font-weight:700;min-width:24px;height:20px;border-radius:10px;display:flex;align-items:center;justify-content:center;z-index:10;box-shadow:0 2px 4px #0000004d}.vault-card-name{margin-top:6px;font-size:11px;color:#e5e7eb;text-align:center;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vault-card-info{font-size:10px;color:#64748b;text-align:center}.vault-pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:16px}.vault-page-btn{width:40px;height:40px;border-radius:8px;background:#111827;border:1px solid #1f2937;color:#e5e7eb;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}.vault-page-btn:hover:not(:disabled){background:#1f2937;border-color:#3b82f6}.vault-page-btn:disabled{opacity:.4;cursor:not-allowed}.vault-page-info{color:#94a3b8;font-size:14px}.vault-loading,.vault-error,.vault-empty{text-align:center;padding:60px 20px;color:#94a3b8;font-size:16px}.vault-error{color:#f87171}.vault-empty{background:#111827;border-radius:12px;border:1px dashed #374151}.mode-vault{border-color:#8b5cf6}.mode-vault:hover{border-color:#a78bfa;box-shadow:0 12px 40px #a78bfa33}@media (max-width: 768px){.vault-header{flex-direction:column}.vault-stats{justify-content:space-around}.vault-filters{flex-direction:column}.vault-search,.vault-filter-select{width:100%}.vault-level-range{width:100%;justify-content:center}.vault-grid{grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:12px}.vault-card .cardTT{width:70px}.vault-card .cardTT .num{font-size:10px;width:16px;height:16px}}.game-result{margin-top:20px;padding:20px 40px;background:linear-gradient(135deg,#1e3a8a,#1e40af);border:2px solid #3b82f6;border-radius:12px;text-align:center}.game-result p{font-size:24px;font-weight:700;margin:0 0 16px;color:#f8fafc}.game-result-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.game-result button{padding:10px 24px;background:#22c55e;border:none;border-radius:8px;color:#fff;font-size:14px;font-weight:600;cursor:pointer}.game-result button:hover{background:#16a34a}.game-result button.secondary{background:#374151;border:1px solid #4b5563}.game-result button.secondary:hover{background:#4b5563}.ai-trade-phase{background:linear-gradient(135deg,#1e1b4b,#312e81);border-radius:12px;padding:1.5rem;margin:1rem 0}.ai-trade-phase h4{color:#fbbf24;margin-bottom:1rem;text-align:center}.ai-trade-cards{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}.ai-trade-card{cursor:pointer;transition:all .2s;border:3px solid transparent;border-radius:8px}.ai-trade-card:hover{transform:translateY(-4px);border-color:#6366f1}.ai-trade-card.selected{border-color:#22c55e;box-shadow:0 0 12px #22c55e80;transform:translateY(-4px)}.ai-trade-card .cardTT{width:80px}.ai-trade-card .cardTT .num{font-size:12px;width:20px;height:20px}.ai-trade-actions{display:flex;justify-content:center;gap:1rem}.ai-trade-actions .confirm-trade-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.ai-trade-actions .confirm-trade-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.ai-trade-actions .confirm-trade-btn:disabled{opacity:.5;cursor:not-allowed}.ai-trade-actions .skip-trade-btn{padding:.75rem 1.5rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.ai-trade-actions .skip-trade-btn:hover{background:#4b5563}.ai-taking-card{color:#9ca3af;text-align:center;font-style:italic}.lottery-result{text-align:center}.lottery-rolling{font-size:3rem;animation:roll .5s infinite;margin:1rem 0}@keyframes roll{0%,to{transform:rotate(0)}25%{transform:rotate(15deg)}75%{transform:rotate(-15deg)}}.lottery-card-won{display:flex;justify-content:center;margin:1rem 0}.lottery-card-won .cardTT{width:100px;box-shadow:0 0 20px #22c55e80;animation:cardWin .5s ease-out}@keyframes cardWin{0%{transform:scale(.5);opacity:0}50%{transform:scale(1.1)}to{transform:scale(1);opacity:1}}.lottery-card-name{color:#22c55e;font-weight:700;font-size:1.1rem}.lottery-gold-won{font-size:2rem;color:#fbbf24;font-weight:700;margin:1rem 0;animation:goldWin .5s ease-out}@keyframes goldWin{0%{transform:scale(.5);opacity:0}50%{transform:scale(1.2)}to{transform:scale(1);opacity:1}}.lottery-gold-note{color:#9ca3af;font-size:.9rem}.loss-result{text-align:center}.loss-gold{font-size:1.75rem;color:#ef4444;font-weight:700;margin:.5rem 0}.loss-note{color:#9ca3af;font-size:.9rem;margin:0}.practice-mode-notice{background:linear-gradient(135deg,#374151,#4b5563);border-radius:8px;padding:.75rem 1rem;margin-bottom:.75rem;text-align:center}.practice-mode-notice .practice-text{color:#9ca3af;font-size:.9rem;margin:0}.practice-mode-notice .practice-hint{color:#6b7280;font-size:.75rem;margin:.25rem 0 0}.deck-mode-btn{display:flex;flex-direction:column;align-items:center;gap:.25rem}.deck-mode-btn .reward-badge{font-size:.65rem;color:#22c55e;background:#22c55e26;padding:.15rem .5rem;border-radius:3px;font-weight:500}.deck-mode-btn .practice-badge{font-size:.65rem;color:#9ca3af;background:#9ca3af26;padding:.15rem .5rem;border-radius:3px;font-weight:500}.trade-rules-info{color:#9ca3af;font-size:.85rem;line-height:1.4}.trade-rules-info p{margin:.25rem 0}.trade-rules-info strong{color:#e5e7eb}.welcome-message{text-align:center;padding:60px 20px}.welcome-message h2{margin:0 0 12px;font-size:24px;color:#f8fafc}.welcome-message p{color:#94a3b8;font-size:16px;margin-bottom:24px}.welcome-message .back-btn{margin-top:8px}.auth-form{width:100%;max-width:400px;margin:3rem auto;padding:2rem;background:linear-gradient(135deg,#0d151ff2,#080c14fa);border:1px solid rgba(0,170,212,.15);border-radius:12px;box-shadow:0 20px 60px #00000080,0 0 30px #00aad40d}.auth-form h2{margin:0 0 1.5rem;text-align:center;background:linear-gradient(90deg,#00aad4,#00d4aa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.auth-form p{color:var(--text-secondary);margin-bottom:1rem;text-align:center}.form-group{margin-bottom:1rem;text-align:left}.form-group label{display:block;margin-bottom:.25rem;color:var(--text-secondary);font-size:.9rem}.form-group input{width:100%;padding:.75rem;border:1px solid rgba(100,120,140,.3);background:#000a1499;color:var(--text-primary);border-radius:6px;font-size:1rem;transition:all .2s}.form-group input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.error{background:#7f1d1d80;color:#fca5a5;padding:.75rem;border-radius:6px;margin-bottom:1rem;font-size:.9rem;border:1px solid rgba(220,38,38,.3)}button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;border:1px solid rgba(0,170,212,.3);border-radius:6px;cursor:pointer;font-size:1rem;font-weight:600;transition:all .2s;box-shadow:0 4px 15px #00aad44d,inset 0 1px #ffffff1a;text-shadow:0 1px 2px rgba(0,0,0,.3)}button:hover{background:linear-gradient(135deg,#00b0d4,#0090b0);box-shadow:0 6px 25px #00aad480,inset 0 1px #fff3}button:disabled{background:#37415180;cursor:not-allowed;box-shadow:none;border-color:#64788c33}.link-btn{background:transparent;color:var(--accent-primary);padding:.5rem;border:none;box-shadow:none}.link-btn:hover{background:transparent;text-decoration:underline;box-shadow:none}.auth-form button[type=submit]{width:100%}.auth-links{margin-top:1rem;display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}@media (max-width: 480px){.auth-form{margin:1.5rem .75rem;padding:1.25rem}}.app.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh}.app.loading h1{margin-bottom:1rem}.app.loading p{color:#64748b}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:#080c1480}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#1a3040,#0d1820);border:1px solid rgba(0,170,212,.2);border-radius:3px}::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#204050,#102530);border-color:#00aad466}.lobby-container{max-width:800px;margin:0 auto;padding:1rem}.lobby-header{text-align:center;margin-bottom:1.5rem}.lobby-header h2{margin:0 0 .5rem;color:#f8fafc}.lobby-status{color:#94a3b8;font-size:.9rem}.lobby-error{background:#ef444433;border:1px solid #ef4444;color:#fca5a5;padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;text-align:center}.lobby-actions{display:flex;gap:1rem;margin-bottom:1.5rem;justify-content:center;flex-wrap:wrap}.host-game-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;border:1px solid rgba(0,170,212,.3);border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 4px 15px #00aad44d}.host-game-btn:hover:not(:disabled){transform:translateY(-2px);background:linear-gradient(135deg,#00b0d4,#0090b0);box-shadow:0 6px 20px #00aad480}.host-game-btn:disabled{opacity:.5;cursor:not-allowed}.refresh-btn{padding:.75rem 1.25rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.hosted-games-list{display:flex;flex-direction:column;gap:.75rem}.no-games{text-align:center;padding:3rem 1rem;background:#0d151fe6;border:1px solid rgba(0,170,212,.1);border-radius:12px;color:var(--text-secondary)}.no-games p{margin:.5rem 0}.no-games .hint{font-size:.9rem;color:var(--text-muted)}.game-card{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:#0d151fe6;border-radius:10px;border:1px solid rgba(0,170,212,.15);transition:all .2s}.game-card:hover{background:#00aad40d;border-color:#00aad44d}.game-info{display:flex;flex-direction:column;gap:.25rem}.game-name{font-weight:700;color:#f8fafc;font-size:1.1rem}.game-host{color:#94a3b8;font-size:.9rem}.join-game-btn{padding:.5rem 1.25rem;background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;border:1px solid rgba(0,170,212,.3);border-radius:6px;font-weight:700;cursor:pointer;transition:all .2s;box-shadow:0 2px 10px #00aad433}.join-game-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 15px #00aad466}.join-game-btn:disabled{background:#37415180;cursor:not-allowed;border-color:#64788c33}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.create-game-modal{background:linear-gradient(180deg,#0d1a2a,#081420);border-radius:6px;padding:1.5rem;width:100%;max-width:400px;border:3px solid #1a4a6a;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000}.create-game-modal h3{margin:0 0 1rem;color:var(--accent-primary)}.create-game-modal input{width:100%;padding:.75rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);font-size:1rem;margin-bottom:1rem;box-sizing:border-box;transition:all .2s}.create-game-modal input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.modal-actions button{padding:.5rem 1rem;border:1px solid rgba(0,170,212,.3);border-radius:6px;font-weight:700;cursor:pointer;transition:all .2s}.modal-actions button:first-child{background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;box-shadow:0 4px 15px #00aad44d}.modal-actions .cancel-btn{background:#141e28cc;color:var(--text-primary);border-color:#64788c4d;box-shadow:none}.modal-actions button:hover{transform:translateY(-1px)}.waiting-room{max-width:500px;margin:0 auto;text-align:center}.waiting-room h2{margin:0 0 .5rem;color:#f8fafc}.game-code{color:#94a3b8;margin-bottom:2rem}.game-code strong{color:#60a5fa;font-family:monospace;font-size:1.1em;letter-spacing:.1em}.players-list{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.vs-divider{font-weight:700;color:#64748b;font-size:1.2rem}.player-slot{flex:1;padding:1.25rem 1rem;background:#1f2937;border-radius:12px;border:2px solid #374151;display:flex;flex-direction:column;gap:.5rem}.player-slot.host{border-color:#22c55e}.player-slot.guest{border-color:#3b82f6}.player-slot.empty{border-style:dashed;border-color:#4b5563}.player-badge{display:inline-block;font-size:.75rem;color:#64748b;text-transform:uppercase;letter-spacing:.05em}.player-slot .player-name{font-size:1.1rem;font-weight:700;color:#f8fafc}.player-slot .player-elo{color:#94a3b8;font-size:.85rem}.player-slot .waiting-text{color:#64748b;font-style:italic;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.5}50%{opacity:1}}.waiting-room-actions{display:flex;gap:1rem;justify-content:center}.start-game-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .2s}.start-game-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.start-game-btn:disabled{opacity:.5;cursor:not-allowed}.leave-game-btn{padding:.75rem 1.5rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.leave-game-btn:hover{background:#4b5563}.lobby-chat{margin-top:1.5rem;background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:12px;display:flex;flex-direction:column;max-height:300px}.chat-header{padding:.75rem 1rem;border-bottom:1px solid rgba(0,170,212,.15);display:flex;justify-content:space-between;align-items:center}.chat-header h3{margin:0;font-size:.9rem;color:var(--accent-primary);text-transform:uppercase;letter-spacing:.5px}.online-count{font-size:.8rem;color:#22c55e;display:flex;align-items:center;gap:.35rem}.online-count:before{content:"";width:8px;height:8px;background:#22c55e;border-radius:50%;display:inline-block}.chat-error{background:#ef444433;color:#fca5a5;padding:.5rem 1rem;font-size:.85rem;text-align:center}.chat-messages{flex:1;overflow-y:auto;padding:.75rem 1rem;display:flex;flex-direction:column;gap:.25rem;min-height:120px}.chat-empty{color:var(--text-muted);text-align:center;font-style:italic;padding:2rem 0}.chat-message{display:flex;align-items:baseline;gap:.5rem;font-size:.85rem;line-height:1.4}.chat-message.system{justify-content:center;color:var(--text-muted);font-style:italic;font-size:.8rem}.chat-timestamp{color:var(--text-muted);font-size:.7rem;flex-shrink:0}.chat-username{color:var(--accent-primary);font-weight:600;flex-shrink:0}.chat-content{color:var(--text-primary);word-break:break-word}.chat-delete-btn{background:transparent;border:none;color:#ef4444;cursor:pointer;font-size:1rem;padding:0 .25rem;opacity:0;margin-left:auto}.chat-message:hover .chat-delete-btn{opacity:.6}.chat-delete-btn:hover{opacity:1!important}.chat-input-form{display:flex;gap:.5rem;padding:.75rem 1rem;border-top:1px solid rgba(0,170,212,.15)}.chat-input-form input{flex:1;padding:.5rem .75rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);font-size:.9rem}.chat-input-form input:focus{outline:none;border-color:var(--accent-primary)}.chat-input-form button{padding:.5rem 1rem;background:linear-gradient(135deg,#00a0c4,#0080a0);color:#fff;border:none;border-radius:6px;font-weight:600;cursor:pointer}.chat-input-form button:disabled{opacity:.5;cursor:not-allowed}.chat-banned-notice{padding:1rem;text-align:center;color:#fca5a5;background:#ef44441a;font-size:.85rem;border-top:1px solid rgba(239,68,68,.2)}.chat-warning{padding:.5rem 1rem;background:#eab30826;color:#fbbf24;font-size:.8rem;border-bottom:1px solid rgba(234,179,8,.3)}.chat-input-area{display:flex;flex-direction:column;border-top:1px solid rgba(255,255,255,.05)}.chat-format-toolbar{display:flex;align-items:center;gap:.25rem;padding:.4rem .75rem;background:#0003;border-bottom:1px solid rgba(255,255,255,.05);flex-wrap:wrap}.format-btn{width:28px;height:26px;border:1px solid rgba(255,255,255,.2);border-radius:4px;background:#ffffff0d;color:#d1d5db;cursor:pointer;font-size:.8rem;font-weight:600;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.format-btn:hover{background:#ffffff26;border-color:#ffffff4d;color:#fff}.format-btn.format-italic{font-style:italic}.format-btn.format-strike{text-decoration:line-through}.format-btn.format-color .color-icon{background:linear-gradient(135deg,#ff6b6b,#ffd93d,#6bcb77,#4d96ff,#9b59b6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-weight:700}.toolbar-separator{color:#ffffff26;margin:0 .25rem;font-size:.9rem}.color-picker-container{position:relative}.color-dropdown{position:absolute;bottom:100%;left:0;margin-bottom:.5rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.75rem;z-index:100;box-shadow:0 4px 12px #0000004d}.color-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:.35rem;margin-bottom:.5rem}.color-swatch{width:24px;height:24px;border:2px solid transparent;border-radius:4px;cursor:pointer;transition:transform .1s ease;background-image:none!important;box-shadow:none;padding:0}.color-swatch:hover{transform:scale(1.15);border-color:#fff}.color-custom{border-top:1px solid rgba(255,255,255,.1);padding-top:.5rem}.color-custom input{width:100%;padding:.35rem .5rem;border:1px solid rgba(255,255,255,.2);border-radius:4px;background:#0000004d;color:#fff;font-size:.8rem;font-family:monospace}.color-custom input::placeholder{color:#fff6}.emoji-picker-container{position:relative}.emoji-picker{position:absolute;bottom:100%;right:0;margin-bottom:.5rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.75rem;z-index:100;box-shadow:0 4px 12px #0000004d;min-width:200px;max-width:280px;max-height:200px;overflow-y:auto}.emoji-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.35rem}.emoji-item{width:36px;height:36px;border:none;border-radius:6px;background:#ffffff0d;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;transition:background .15s ease}.emoji-item:hover{background:#ffffff26}.emoji-item img{width:28px;height:28px;object-fit:contain}.chat-emoji-inline{display:inline-block;width:20px;height:20px;vertical-align:middle;margin:0 1px}.admin-emojis{padding:1rem}.emojis-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.emojis-header h3{margin:0;font-size:1.2rem}.emoji-dropzone{border:2px dashed rgba(0,170,212,.3);border-radius:8px;padding:1.5rem;margin-bottom:1rem;text-align:center;background:#00aad40d;transition:all .2s ease;cursor:pointer}.emoji-dropzone:hover{border-color:#00aad480;background:#00aad414}.emoji-dropzone.dragging{border-color:#00aad4;background:#00aad426;transform:scale(1.01)}.emoji-dropzone.uploading{opacity:.7;pointer-events:none}.emoji-dropzone p{margin:.25rem 0;color:#a0a0a0}.emoji-dropzone .dropzone-hint{font-size:.8rem;color:#707070}.emoji-dropzone .dropzone-controls{display:flex;gap:1rem;justify-content:center;align-items:center;margin-top:.75rem;flex-wrap:wrap}.emoji-dropzone .dropzone-controls label{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:#b0b0b0}.emoji-dropzone .dropzone-controls select{padding:.25rem .5rem;background:#00141ecc;border:1px solid rgba(255,255,255,.1);border-radius:4px;color:#e0e0e0}.emoji-dropzone .file-input-label{cursor:pointer;color:#00d4aa;text-decoration:underline}.emoji-dropzone .file-input-label:hover{color:#0fc}.bulk-upload-results{background:#00141e99;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:1rem;margin-bottom:1rem}.bulk-upload-results .bulk-success{color:#4ade80;margin-bottom:.5rem}.bulk-upload-results .bulk-failed{color:#f87171;margin-bottom:.5rem;font-size:.9rem}.bulk-upload-results .btn-small{margin-top:.5rem}.emoji-categories-manager{background:#00141e66;border:1px solid rgba(255,255,255,.08);border-radius:6px;padding:.75rem 1rem;margin-bottom:1rem}.categories-header{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.categories-header>span{color:gray;font-size:.85rem}.categories-list{display:flex;gap:.5rem;flex-wrap:wrap}.category-tag{background:#00aad426;border:1px solid rgba(0,170,212,.3);color:#00d4aa;padding:.25rem .5rem;border-radius:4px;font-size:.8rem;display:flex;align-items:center;gap:.25rem}.category-delete{background:none;border:none;color:#f87171;cursor:pointer;font-size:1rem;line-height:1;padding:0 .15rem;opacity:.6}.category-delete:hover{opacity:1}.add-category{display:flex;gap:.25rem;margin-left:auto}.add-category input{width:120px;padding:.25rem .5rem;background:#00141ecc;border:1px solid rgba(255,255,255,.1);border-radius:4px;color:#e0e0e0;font-size:.8rem}.add-category button{padding:.25rem .5rem;background:#00aad433;border:1px solid rgba(0,170,212,.4);border-radius:4px;color:#00d4aa;cursor:pointer;font-size:.8rem}.add-category button:hover{background:#00aad44d}.emoji-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:1rem}.emoji-admin-item{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:1rem;display:flex;flex-direction:column;align-items:center;gap:.5rem}.emoji-admin-item.inactive{opacity:.5}.emoji-preview{width:48px;height:48px;object-fit:contain}.emoji-info{text-align:center;display:flex;flex-direction:column;gap:.25rem}.emoji-shortcode{font-family:monospace;font-size:.9rem;color:#60a5fa}.emoji-category{font-size:.75rem;color:#9ca3af}.emoji-inactive-badge{font-size:.7rem;color:#f87171;background:#f871711a;padding:.1rem .4rem;border-radius:4px}.emoji-actions{display:flex;gap:.5rem}.current-emoji-preview{display:flex;align-items:center;gap:.5rem;margin-top:.5rem;font-size:.85rem;color:#9ca3af}.current-emoji-preview img{width:32px;height:32px}.admin-banned-words{padding:1rem}.banned-words-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.banned-words-header h3{margin:0;font-size:1.2rem}.severity-legend{display:flex;flex-wrap:wrap;gap:1rem;padding:.75rem 1rem;background:#ffffff08;border-radius:6px;margin-bottom:1rem;font-size:.8rem;color:#9ca3af;align-items:center}.severity-badge{padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.severity-filter{background:#9ca3af33;color:#9ca3af}.severity-warn{background:#eab30833;color:#fbbf24}.severity-chatban{background:#f9731633;color:#fb923c}.severity-siteban{background:#ef444433;color:#f87171}.bulk-import-section{background:#ffffff08;border:1px solid rgba(255,255,255,.08);border-radius:8px;padding:1rem;margin-bottom:1rem}.bulk-import-section h4{margin:0 0 .75rem;font-size:.95rem;color:#d1d5db}.bulk-import-section textarea{width:100%;padding:.5rem;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:#0003;color:#fff;font-family:monospace;font-size:.85rem;resize:vertical;margin-bottom:.5rem}.bulk-import-actions{display:flex;gap:.5rem;align-items:center}.bulk-import-actions select{padding:.4rem .75rem;border:1px solid rgba(255,255,255,.15);border-radius:4px;background:#0003;color:#fff;font-size:.85rem}.btn-add{padding:.5rem 1rem;background:#2563eb;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;transition:background .15s ease}.btn-add:hover{background:#1d4ed8}@media (max-width: 600px){.lobby-container{padding:.5rem}.lobby-actions{flex-direction:column;align-items:stretch}.game-card{flex-direction:column;gap:.75rem;align-items:stretch}.game-info{text-align:center}.join-game-btn{width:100%}.players-list{flex-direction:column}.vs-divider{margin:.5rem 0}.waiting-room-actions{flex-direction:column}.start-game-btn,.leave-game-btn{width:100%}}.deck-selection{background:linear-gradient(135deg,#1e1b4b,#312e81);border-radius:12px;padding:1.5rem;margin-top:1rem}.deck-selection h3{text-align:center;color:#a5b4fc;margin-bottom:.5rem}.deck-selection-subtitle{text-align:center;color:#6b7280;font-size:.9rem;margin-bottom:1rem}.deck-ready-status{display:flex;justify-content:center;gap:2rem;margin-bottom:1.5rem;padding:.75rem;background:#0003;border-radius:8px}.ready-indicator{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.ready-indicator.ready{color:#22c55e}.ready-indicator.waiting{color:#6b7280}.ready-indicator:before{content:"";width:10px;height:10px;border-radius:50%;background:currentColor}.deck-mode-selection{text-align:center}.deck-mode-selection p{color:#9ca3af;margin-bottom:1rem}.deck-mode-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}.deck-mode-btn{padding:1rem 1.5rem;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;min-width:180px}.deck-mode-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #6366f166}.deck-mode-btn.random-owned{background:linear-gradient(135deg,#059669,#10b981)}.deck-mode-btn.random-owned:hover{box-shadow:0 4px 12px #10b98166}.deck-mode-btn.random-all{background:linear-gradient(135deg,#d97706,#f59e0b)}.deck-mode-btn.random-all:hover{box-shadow:0 4px 12px #f59e0b66}.card-picker{margin-top:1rem}.card-picker p{color:#9ca3af;text-align:center;margin-bottom:1rem}.available-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(95px,1fr));gap:.5rem;max-height:300px;overflow-y:auto;padding:.5rem;background:#0003;border-radius:8px}.pick-card{cursor:pointer;transition:all .2s;border-radius:4px;border:2px solid transparent}.pick-card:hover{transform:scale(1.05);border-color:#6366f1}.pick-card.selected{border-color:#22c55e;box-shadow:0 0 8px #22c55e80}.pick-card.disabled{opacity:.5;cursor:not-allowed}.ttw-deck-stats{display:flex;justify-content:center;gap:.5rem;margin-top:4px;font-size:.65rem}.ttw-deck-stats .ttw-atk,.ttw-deck-stats .ttw-def{padding:2px 5px;border-radius:4px;background:#000000b3;font-weight:600}.ttw-pick-card .cardTT,.ttw-selected-card .cardTT{border:2px solid #3b82f6!important;box-shadow:0 0 8px #3b82f64d}.ttw-pick-card.selected .cardTT{border-color:#22c55e!important;box-shadow:0 0 12px #22c55e80}.selected-deck{margin-top:1.5rem;padding:1rem;background:#0000004d;border-radius:8px}.selected-deck h3,.selected-deck h4{color:#a5b4fc;text-align:center;margin-bottom:1rem}.selected-cards-row{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}.selected-card{position:relative;border:2px solid #22c55e;border-radius:4px;flex-shrink:0;min-width:90px}.deck-selection .selected-card .cardTT,.deck-selection .selected-card .cardTT.compact,.lobby-container .deck-selection .selected-deck .selected-cards-row .selected-card .cardTT,.lobby-container .deck-selection .selected-deck .selected-cards-row .selected-card .cardTT.compact{width:90px!important;min-width:90px!important;max-width:90px!important;aspect-ratio:5 / 7!important}.deck-selection .selected-card .cardTT .num,.deck-selection .selected-card .cardTT.compact .num{font-size:12px;width:20px;height:20px}.deck-selection .pick-card .cardTT,.deck-selection .pick-card .cardTT.compact{width:90px;min-width:90px;aspect-ratio:5 / 7}.deck-selection .pick-card .cardTT .num,.deck-selection .pick-card .cardTT.compact .num{font-size:12px;width:20px;height:20px}.selected-card .remove-card{position:absolute;top:-8px;right:-8px;width:20px;height:20px;background:#ef4444;color:#fff;border:none;border-radius:50%;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center}.selected-card .remove-card:hover{background:#dc2626}.deck-selection-actions{display:flex;justify-content:center;gap:1rem;margin-top:1.5rem}.confirm-deck-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.confirm-deck-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.confirm-deck-btn:disabled{opacity:.5;cursor:not-allowed}.change-mode-btn{padding:.75rem 1.5rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.change-mode-btn:hover{background:#4b5563}@media (max-width: 600px){.deck-selection{padding:1rem}.deck-ready-status{flex-direction:column;gap:.5rem}.deck-mode-buttons{flex-direction:column}.deck-mode-btn{width:100%}.available-cards-grid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));max-height:200px}.selected-cards-row{gap:.25rem}.deck-selection-actions{flex-direction:column}.confirm-deck-btn,.change-mode-btn{width:100%}}.ai-deck-selection{max-width:600px;margin:0 auto;padding:2rem;background:linear-gradient(135deg,#1e1b4b,#312e81);border-radius:16px;text-align:center}.ai-deck-selection h2{color:#a5b4fc;margin-bottom:.5rem}.ai-deck-selection .deck-selection-subtitle{color:#9ca3af;margin-bottom:1.5rem}.ai-deck-selection .deck-mode-selection{margin-top:1rem}.ai-deck-selection .deck-mode-selection h3{color:#a5b4fc;margin-bottom:1rem}.ai-deck-selection .deck-mode-selection p{color:#9ca3af;margin-bottom:1rem}.ai-deck-selection .deck-mode-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:.75rem}.ai-deck-selection .deck-mode-btn{padding:1rem 1.5rem;background:linear-gradient(135deg,#4f46e5,#6366f1);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s;min-width:180px}.ai-deck-selection .deck-mode-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #6366f166}.ai-deck-selection .deck-mode-btn .mode-icon{font-size:36px}.ai-deck-selection .deck-mode-btn .mode-title{font-size:16px;font-weight:700;color:#fff}.ai-deck-selection .deck-mode-btn .mode-desc{font-size:11px;color:#fffc}.ai-deck-selection .deck-loading{padding:2rem;color:#9ca3af}.ai-deck-selection .card-picker{margin-top:1rem}.ai-deck-selection .card-picker h3{color:#a5b4fc;margin-bottom:1rem}.ai-deck-selection .card-picker p{color:#9ca3af;margin-bottom:1rem}.ai-deck-selection .no-cards-message{color:#f87171;padding:1rem}.ai-deck-selection .available-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(85px,1fr));gap:.75rem;max-height:300px;overflow-y:auto;padding:.75rem;background:#0003;border-radius:8px}.ai-deck-selection .pick-card{cursor:pointer;transition:all .2s;border-radius:4px;border:2px solid transparent}.ai-deck-selection .pick-card .cardTT{width:75px}.ai-deck-selection .pick-card .cardTT .num{font-size:11px;width:18px;height:18px}.ai-deck-selection .pick-card:hover{transform:scale(1.05);border-color:#6366f1}.ai-deck-selection .pick-card.selected{border-color:#22c55e;box-shadow:0 0 8px #22c55e80}.ai-deck-selection .pick-card.disabled{opacity:.5;cursor:not-allowed}.ai-deck-selection .selected-deck{margin-top:1.5rem;padding:1rem;background:#0000004d;border-radius:8px}.ai-deck-selection .selected-deck h3,.ai-deck-selection .selected-deck h4{color:#a5b4fc;margin-bottom:1rem}.ai-deck-selection .selected-cards-row{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap}.ai-deck-selection .selected-card{position:relative;border:2px solid #22c55e;border-radius:4px;flex-shrink:0;min-width:90px}.ai-deck-selection .selected-card .cardTT{width:90px!important;min-width:90px!important;aspect-ratio:5 / 7!important}.ai-deck-selection .selected-card .cardTT .num{font-size:12px;width:20px;height:20px}.ai-deck-selection .selected-card .remove-card{position:absolute;top:-8px;right:-8px;width:20px;height:20px;background:#ef4444;color:#fff;border:none;border-radius:50%;font-size:12px;cursor:pointer;display:flex;align-items:center;justify-content:center}.ai-deck-selection .selected-card .remove-card:hover{background:#dc2626}.ai-deck-selection .deck-selection-actions{display:flex;justify-content:center;gap:1rem;margin-top:1.5rem}.ai-deck-selection .confirm-deck-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.ai-deck-selection .confirm-deck-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.ai-deck-selection .confirm-deck-btn:disabled{opacity:.5;cursor:not-allowed}.ai-deck-selection .change-mode-btn{padding:.75rem 1.5rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.ai-deck-selection .change-mode-btn:hover{background:#4b5563}@media (max-width: 600px){.ai-deck-selection{padding:1rem;margin:.5rem}.ai-deck-selection .deck-mode-buttons{flex-direction:column}.ai-deck-selection .deck-mode-btn{width:100%}.ai-deck-selection .available-cards-grid{grid-template-columns:repeat(auto-fill,minmax(60px,1fr));max-height:200px}.ai-deck-selection .selected-cards-row{gap:.25rem}.ai-deck-selection .deck-selection-actions{flex-direction:column}.ai-deck-selection .confirm-deck-btn,.ai-deck-selection .change-mode-btn{width:100%}}.multiplayer-game{max-width:600px;margin:0 auto;padding:1rem}.mp-game-header{text-align:center;margin-bottom:1.5rem}.mp-players{display:flex;align-items:center;justify-content:center;gap:1.5rem;margin-bottom:1rem}.mp-player{display:flex;flex-direction:row;align-items:center;gap:.75rem;padding:.5rem 1rem .5rem .5rem;background:#1f2937;border-radius:10px;border:2px solid #374151;transition:all .3s}.mp-player .player-avatar{width:48px;height:64px;border-radius:4px;flex-shrink:0}.mp-player .player-avatar .avatar-body,.mp-player .player-avatar .avatar-head{width:32px}.mp-player-info{display:flex;flex-direction:column;align-items:flex-start}.mp-player.active{border-color:#22c55e;box-shadow:0 0 15px #22c55e4d}.mp-player.you.active{border-color:#3b82f6;box-shadow:0 0 15px #3b82f64d}.mp-player-name{font-weight:700;color:#f8fafc;font-size:.9rem}.mp-player-score{font-size:1.25rem;font-weight:700;color:#22c55e}.mp-player.you .mp-player-score{color:#3b82f6}.mp-vs{font-weight:700;color:#64748b;font-size:1.1rem}.mp-status{color:#94a3b8;font-size:.95rem;padding:.5rem 1rem;background:#1f2937;border-radius:6px;display:inline-block}.mp-game-area{display:flex;flex-direction:column;gap:1.5rem}.mp-board{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;background:radial-gradient(circle at center,rgba(0,170,212,.05) 0%,transparent 70%),linear-gradient(135deg,#0a1520,#060a10);padding:12px;border-radius:16px;max-width:320px;margin:0 auto;overflow:hidden;box-shadow:inset 0 0 60px #00000080,0 0 40px #00aad41a}.mp-board.ott-board{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,auto);gap:4px;width:369px;min-width:369px;max-width:none;overflow:visible}.mp-board.ott-board .mp-cell.blocked{background:#141423cc;cursor:not-allowed;border:1px dashed rgba(100,100,120,.4);box-shadow:inset 0 0 10px #00000080}.mp-board.ott-board .mp-cell.blocked:hover{background:#141423cc;border-color:#64647866;box-shadow:inset 0 0 10px #00000080}.blocked-icon{font-size:1.5rem;font-weight:700;color:#64647880;-webkit-user-select:none;user-select:none}.mp-board.ott-board .mp-card{font-size:.7rem}.mp-board.ott-board .mp-card .card-value{font-size:.55rem;width:14px;height:14px}.mp-cell{aspect-ratio:5 / 7;background:#00141e99;border:1px solid rgba(0,170,212,.15);border-radius:10px;display:flex;align-items:center;justify-content:center;transition:background .2s,border-color .2s,box-shadow .2s;cursor:default;position:relative;overflow:visible;box-shadow:inset 0 0 15px #0006}.mp-cell.empty:hover:not(.blocked){border-color:#00aad466;background:#00aad414;box-shadow:inset 0 0 15px #0006,0 0 12px #00aad426}.mp-cell.empty.clickable{cursor:pointer;border-color:#00aad44d;background:#00283cb3}.mp-cell.empty.clickable:hover{border-color:#00aad499;background:#00aad426;box-shadow:inset 0 0 15px #0000004d,0 0 20px #00aad44d}.mp-cell.last-placed{animation:cellPulse .5s ease-out;box-shadow:0 0 0 3px #00aad480}.mp-cell.flipped{animation:flipPulse .6s ease-out}@keyframes cellPulse{0%{transform:scale(1.05);box-shadow:0 0 20px #22c55e80}to{transform:scale(1);box-shadow:none}}.mp-card{width:100%;height:100%;display:grid;grid-template-areas:". top ." "left . right" ". bottom .";grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;padding:4px;border-radius:6px;font-weight:700;position:relative;overflow:hidden}.mp-card .card-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}.mp-card .card-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:6px;pointer-events:none;z-index:1}.mp-card .card-value{z-index:2}.mp-card.owner-1,.mp-card.owner-P1{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:2px solid #3b82f6}.mp-card.owner-1 .card-frame,.mp-card.owner-P1 .card-frame{box-shadow:inset 0 0 0 2px #3b82f666}.mp-card.owner-2,.mp-card.owner-P2{background:linear-gradient(135deg,#ef4444,#b91c1c);border:2px solid #ef4444}.mp-card.owner-2 .card-frame,.mp-card.owner-P2 .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.mp-card.owner-3,.mp-card.owner-4{background:linear-gradient(135deg,#ef4444,#b91c1c);border:2px solid #ef4444}.mp-card.owner-3 .card-frame,.mp-card.owner-4 .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.mp-hand-card.team-blue{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:2px solid #3b82f6}.mp-hand-card.team-blue .card-frame{box-shadow:inset 0 0 0 2px #3b82f666}.mp-hand-card.team-red{background:linear-gradient(135deg,#ef4444,#b91c1c);border:2px solid #ef4444}.mp-hand-card.team-red .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.mp-card.gold{border-color:#d4af37;box-shadow:0 0 8px #ffd70080}.mp-card.gold .card-art{filter:sepia(15%) saturate(130%) brightness(105%)}.mp-card.gold .card-frame{box-shadow:inset 0 0 0 2px #ffd70066}.mp-card .card-value{display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;color:#f8fafc;background:#000000b3;border-radius:50%;width:20px;height:20px;text-shadow:0 1px 2px rgba(0,0,0,.8)}.mp-card .card-value.top{grid-area:top}.mp-card .card-value.left{grid-area:left}.mp-card .card-value.right{grid-area:right}.mp-card .card-value.bottom{grid-area:bottom}.mp-hand{background:#1f2937;border-radius:12px;padding:1rem}.mp-hand h3{margin:0 0 .75rem;color:#94a3b8;font-size:.9rem;text-transform:uppercase;letter-spacing:.05em;display:flex;align-items:center;gap:.5rem}.waiting-indicator{animation:pulse 1s ease-in-out infinite}.mp-hand-cards{display:flex;gap:.5rem;justify-content:center;flex-wrap:wrap}.mp-hand-card{width:70px;aspect-ratio:5 / 7;display:grid;grid-template-areas:". top ." "left . right" ". bottom .";grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;padding:4px;border-radius:8px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:2px solid #3b82f6;cursor:default;transition:transform .2s,border-color .2s,box-shadow .2s,background .2s;position:relative;overflow:hidden}.mp-hand-card .card-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}.mp-hand-card .card-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:6px;pointer-events:none;z-index:1;box-shadow:inset 0 0 0 2px #3b82f666}.mp-hand-card .card-value{z-index:2}.mp-hand-card.owner-1{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:2px solid #3b82f6}.mp-hand-card.owner-1 .card-frame{box-shadow:inset 0 0 0 2px #3b82f666}.mp-hand-card.owner-2{background:linear-gradient(135deg,#ef4444,#b91c1c);border:2px solid #ef4444}.mp-hand-card.owner-2 .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.mp-hand-card.owner-3,.mp-hand-card.owner-4{background:linear-gradient(135deg,#ef4444,#b91c1c);border:2px solid #ef4444}.mp-hand-card.owner-3 .card-frame,.mp-hand-card.owner-4 .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.mp-hand-card.gold{border-color:#d4af37;box-shadow:0 0 8px #ffd70080}.mp-hand-card.gold .card-art{filter:sepia(15%) saturate(130%) brightness(105%)}.mp-hand-card.gold .card-frame{box-shadow:inset 0 0 0 2px #ffd70066}.mp-hand-card.selectable{cursor:pointer;animation:selectablePulse .6s ease-in-out}.mp-hand-card.selectable:hover{transform:translateY(-4px) scale(1.05);box-shadow:0 8px 25px #00aad499;animation:none}.mp-hand-card.selected{border-color:#22c55e;transform:translateY(-6px);box-shadow:0 6px 16px #22c55e80;animation:none}.mp-hand-card .card-value{display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;color:#f8fafc;background:#000000b3;border-radius:50%;width:18px;height:18px;text-shadow:0 1px 2px rgba(0,0,0,.8)}.mp-hand-card .card-value.top{grid-area:top}.mp-hand-card .card-value.left{grid-area:left}.mp-hand-card .card-value.right{grid-area:right}.mp-hand-card .card-value.bottom{grid-area:bottom}.game-chat{margin-top:1rem;background:#0d151ff2;border-radius:8px;border:1px solid rgba(0,170,212,.2);overflow:hidden;transition:all .3s ease}.game-chat.collapsed .game-chat-header{border-radius:8px}.game-chat-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem .75rem;background:#00aad41a;cursor:pointer;-webkit-user-select:none;user-select:none}.game-chat-title{font-size:.85rem;font-weight:600;color:var(--accent-primary);display:flex;align-items:center;gap:.5rem}.unread-badge{background:#ef4444;color:#fff;font-size:.7rem;padding:.1rem .4rem;border-radius:10px;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.game-chat-toggle{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:.7rem;padding:.25rem}.game-chat-error{padding:.4rem .75rem;background:#ef444433;color:#fca5a5;font-size:.75rem}.game-chat-messages{max-height:120px;overflow-y:auto;padding:.5rem .75rem}.game-chat-empty{color:var(--text-muted);font-size:.75rem;text-align:center;padding:.5rem 0;font-style:italic}.game-chat-message{font-size:.8rem;margin-bottom:.25rem;line-height:1.3}.game-chat-message.own .game-chat-username{color:#60a5fa}.game-chat-message.quick{font-style:italic;opacity:.9}.game-chat-username{color:var(--accent-primary);font-weight:600;margin-right:.3rem}.game-chat-content{color:var(--text-primary);word-break:break-word}.game-chat-quick-btns{display:flex;gap:.25rem;padding:.4rem .75rem;border-top:1px solid rgba(0,170,212,.1)}.game-chat-quick-btns button{flex:1;padding:.3rem .4rem;background:#00aad41a;border:1px solid rgba(0,170,212,.2);border-radius:4px;color:var(--text-secondary);font-size:.7rem;cursor:pointer;transition:all .2s}.game-chat-quick-btns button:hover{background:#00aad433;color:var(--text-primary)}.game-chat-quick-btns button:active{transform:scale(.95)}.game-chat-input{display:flex;gap:.25rem;padding:.5rem .75rem;border-top:1px solid rgba(0,170,212,.1)}.game-chat-input input{flex:1;padding:.4rem .6rem;background:#0000004d;border:1px solid rgba(0,170,212,.2);border-radius:4px;color:var(--text-primary);font-size:.8rem}.game-chat-input input:focus{outline:none;border-color:var(--accent-primary)}.game-chat-input input::placeholder{color:var(--text-muted)}.game-chat-input button{padding:.4rem .75rem;background:linear-gradient(135deg,#00a0c4,#0080a0);border:none;border-radius:4px;color:#fff;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s}.game-chat-input button:hover:not(:disabled){background:linear-gradient(135deg,#00b0d4,#0090b0)}.game-chat-input button:disabled{opacity:.5;cursor:not-allowed}.team-only-toggle{padding:.4rem .5rem;background:#64748b4d;border:1px solid rgba(100,116,139,.4);border-radius:4px;color:#94a3b8;font-size:.9rem;cursor:pointer;transition:all .2s;flex-shrink:0}.team-only-toggle:hover{background:#64748b80}.team-only-toggle.active{background:#3b82f64d;border-color:#3b82f699;color:#60a5fa}.team-only-toggle.active:hover{background:#3b82f666}.game-chat-message.team-only{background:#3b82f61a;border-left:3px solid #3b82f6;padding-left:.5rem;margin-left:-.25rem}.team-only-badge{display:inline-block;font-size:.65rem;color:#60a5fa;background:#3b82f633;padding:.1rem .3rem;border-radius:3px;margin-right:.25rem;font-weight:600}@media (max-width: 480px){.game-chat-messages{max-height:120px}.game-chat-quick-btns button{padding:.25rem .3rem;font-size:.65rem}.game-chat-input input{font-size:.75rem}}.game-layout.with-sidebar.mp-game-layout{display:block;max-width:100%;padding:0;min-height:calc(100vh - 70px);overflow:hidden}.sidebar-docked{position:fixed;top:70px;bottom:32px;width:300px;z-index:100;display:flex;flex-direction:column;background:var(--bg-panel);border:1px solid var(--border-color);transition:transform .3s ease;overflow:hidden}.sidebar-docked.left-sidebar{left:0;border-left:none;border-radius:0 8px 8px 0}.sidebar-docked.right-sidebar{right:0;border-right:none;border-radius:8px 0 0 8px}.sidebar-docked.collapsed{transform:translate(-100%)}.sidebar-docked.right-sidebar.collapsed{transform:translate(100%)}.sidebar-dock-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#0000004d;border-bottom:1px solid var(--border-color);flex-shrink:0}.sidebar-dock-title{font-weight:600;color:var(--accent-primary);font-size:.9rem;text-transform:uppercase;letter-spacing:.5px}.sidebar-collapse-btn{background:#00aad41a;border:1px solid var(--border-color);color:var(--text-secondary);width:28px;height:28px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:all .2s}.sidebar-collapse-btn:hover{background:#00aad433;color:var(--accent-primary)}.sidebar-dock-content{flex:1;min-height:0;overflow:hidden;padding:.75rem;display:flex;flex-direction:column;gap:.75rem}.sidebar-edge-tab{position:fixed;top:50%;transform:translateY(-50%);width:36px;background:var(--bg-panel);border:1px solid var(--border-color);cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem .25rem;z-index:99;transition:opacity .15s ease .3s,background .2s,border-color .2s;writing-mode:vertical-rl;text-orientation:mixed;-webkit-tap-highlight-color:transparent}.sidebar-edge-tab:hover{background:#00aad426;border-color:var(--accent-primary)}.sidebar-edge-tab.left-tab{left:0;border-left:none;border-radius:0 6px 6px 0}.sidebar-edge-tab.right-tab{right:0;border-right:none;border-radius:6px 0 0 6px}.sidebar-edge-tab .tab-icon{font-size:1rem;color:var(--accent-primary);margin-bottom:.5rem}.sidebar-edge-tab .tab-label{font-size:.7rem;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:1px}.sidebar-edge-tab.hidden{opacity:0;pointer-events:none;transition:opacity .1s ease}.sidebar-dock-content .game-chat{flex:1;display:flex;flex-direction:column;background:transparent;border:none;border-radius:0}.sidebar-dock-content .game-chat-header{padding:.5rem;background:#0003;border-radius:4px;margin-bottom:.5rem}.sidebar-dock-content .game-chat-messages{flex:1;max-height:none;min-height:150px}.sidebar-dock-content .in-game-rules-panel{background:#0003;border-radius:6px;flex-shrink:0}.sidebar-dock-content .rules-explainer{background:#0003;border-radius:6px;flex:1;min-height:0;max-height:none;overflow:hidden}.sidebar-dock-content .rules-explainer .explainer-list{max-height:none;overflow-y:auto}.mp-game-layout .game-main{display:flex;flex-direction:column;align-items:center;gap:1rem;margin-left:300px;margin-right:300px;min-height:calc(100vh - 120px);padding:1rem;transition:margin .3s ease}.mp-game-layout.left-collapsed .game-main{margin-left:36px}.mp-game-layout.right-collapsed .game-main{margin-right:36px}.mp-game-layout.both-collapsed .game-main{margin-left:36px;margin-right:36px}.mp-game-layout .game-header-row{display:flex;align-items:center;justify-content:center;gap:1.5rem;flex-wrap:wrap;min-height:44px}.mp-status-bar{color:#94a3b8;font-size:.9rem;padding:.4rem .75rem;background:#1f2937cc;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}.match-wager-inline{display:flex;align-items:center;gap:.3rem;padding:.3rem .6rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);border-radius:4px;font-size:.85rem;font-weight:700;color:#1a1a2a}.forfeit-btn{padding:.4rem .75rem;font-size:.8rem;font-weight:600;background:#7f1d1dcc;color:#fca5a5;border:1px solid #991b1b;border-radius:4px;cursor:pointer;transition:all .2s}.forfeit-btn:hover{background:#991b1be6;color:#fecaca;border-color:#dc2626}.hand-vertical.opponent .mp-hand-card{cursor:default}.mp-hand-card.face-down{background:#1f2937;border:2px solid #374151;cursor:default}.mp-hand-card.face-down:hover{transform:none;box-shadow:none}.card-back{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,#1e3a5f,#0f172a);border-radius:6px;display:flex;align-items:center;justify-content:center}.card-back:before{content:"?";font-size:1.5rem;font-weight:700;color:#6496c84d}.ott-discard-btn{padding:.4rem .6rem;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;background:linear-gradient(135deg,#dc2626,#991b1b);color:#fff;border:1px solid #b91c1c;border-radius:4px;cursor:pointer;transition:all .2s ease;white-space:nowrap}.ott-discard-btn:hover:not(:disabled){background:linear-gradient(135deg,#ef4444,#dc2626);transform:scale(1.05);box-shadow:0 2px 8px #dc262666}.ott-discard-btn:disabled,.ott-discard-btn.used{background:linear-gradient(135deg,#4b5563,#374151);border-color:#4b5563;color:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.left-sidebar{display:flex;flex-direction:column;gap:1rem}.sidebar-chat{margin-top:0;max-height:none;min-height:400px;display:flex;flex-direction:column}.sidebar-chat .game-chat-messages{min-height:180px;max-height:300px;flex:1;overflow-y:auto}.sidebar-chat .game-chat-input{display:flex;gap:.5rem;padding:.5rem}.sidebar-chat .game-chat-input input{flex:1;min-width:0}.sidebar-chat .game-chat-input button{flex-shrink:0;white-space:nowrap}.game-chat-timestamp{font-size:.7rem;color:#64748b;margin-right:.35rem}.game-sidebar .chat-format-toolbar{flex-wrap:wrap;gap:.15rem;padding:.35rem;margin-bottom:.35rem}.game-sidebar .chat-format-toolbar .format-btn{padding:.2rem .35rem;font-size:.7rem;min-width:22px}.game-sidebar .chat-format-toolbar .toolbar-separator{display:none}.game-sidebar .color-dropdown{right:0;left:auto;bottom:100%;top:auto}.game-sidebar .emoji-picker{right:0;left:auto;bottom:100%;top:auto;max-width:200px}.game-sidebar .emoji-picker .emoji-grid{grid-template-columns:repeat(4,1fr)}.game-sidebar .emoji-item{width:28px;height:28px}.mp-game-layout .game-play-area{display:flex;align-items:flex-start;justify-content:center;gap:.75rem}.mp-game-layout .game-play-area>*{flex-shrink:0}.mp-game-layout .game-avatar{width:80px;min-width:80px}.mp-game-layout .hand-column{width:70px;min-width:70px}.mp-game-layout .board-container{position:relative;overflow:visible}.mp-game-layout .mp-board-container{flex-shrink:0;overflow:visible}.mp-game-layout .mp-board{width:280px;min-width:280px}.mp-game-layout .mp-board.ott-board{width:369px;min-width:369px}.mp-game-layout .hand-vertical .mp-hand-card{width:60px;height:84px;font-size:.75rem}.mp-game-layout .hand-vertical .mp-hand-card .card-value{font-size:.6rem;width:16px;height:16px}@media (max-width: 1200px){.sidebar-docked{width:260px}.mp-game-layout .game-main{margin-left:260px;margin-right:260px}.mp-game-layout.left-collapsed .game-main{margin-left:36px}.mp-game-layout.right-collapsed .game-main{margin-right:36px}.mp-game-layout .hand-column{width:58px;min-width:58px}.mp-game-layout .game-avatar{width:72px;min-width:72px}.mp-game-layout .hand-vertical .mp-hand-card{width:50px;height:70px;font-size:.65rem}.mp-game-layout .hand-vertical .mp-hand-card .card-value{font-size:.55rem;width:14px;height:14px}.mp-game-layout .mp-board{width:240px;min-width:240px}.mp-game-layout .mp-board.ott-board{width:365px;min-width:365px}}@media (max-width: 1000px){.sidebar-docked{width:240px}.mp-game-layout .game-main{margin-left:240px;margin-right:240px}}@media (max-width: 900px){.app:has(.game-layout.with-sidebar) .header{flex-direction:row;flex-wrap:nowrap;padding:5px 12px;gap:8px;align-items:center;margin:-1rem -1rem 0;box-shadow:inset 0 1px #3098b8;border-bottom:1px solid rgba(0,170,212,.2)}.app:has(.game-layout.with-sidebar) .header h1{font-size:14px;white-space:nowrap}.app:has(.game-layout.with-sidebar) .header .user-info{font-size:11px;gap:4px;flex-wrap:nowrap;overflow:hidden}.app:has(.game-layout.with-sidebar) .header .currency{padding:2px 5px;border-width:1px;font-size:11px;box-shadow:none}.app:has(.game-layout.with-sidebar) .header .px-icon-sm{width:12px;height:12px}.app:has(.game-layout.with-sidebar) .header .logout-btn{width:auto;padding:3px 8px;font-size:11px}.app:has(.game-layout.with-sidebar) .game-header-row{align-self:stretch}.app:has(.game-layout.with-sidebar) .sidebar-docked{top:46px}.game-layout.with-sidebar.mp-game-layout{min-height:calc(100vh - 46px)}.game-layout.with-sidebar:not(.mp-game-layout){min-height:calc(100vh - 46px)}.sidebar-docked{width:280px;box-shadow:0 0 20px #00000080}.mp-game-layout .game-main{margin-left:36px;margin-right:36px}.mp-game-layout .game-play-area{flex-wrap:wrap;justify-content:center}.mp-game-layout .game-avatar{display:none}.mp-game-layout .hand-column{width:auto}.mp-game-layout .hand-column .hand-vertical{flex-direction:row;justify-content:center}.mp-game-layout .board-container{width:100%;display:flex;justify-content:center}.mp-game-layout .mp-board:not(.ott-board){width:100%;min-width:0;max-width:320px}.mp-game-layout .mp-board.ott-board{width:100%;min-width:0;max-width:min(calc(100vw - 80px),400px)}}.mp-game-over{margin-top:1.5rem;text-align:center}.back-to-lobby-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.back-to-lobby-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #3b82f666}.mp-game-layout .game-result-overlay{position:fixed;top:70px;left:0;right:0;bottom:0;z-index:200;border-radius:0;padding:1.5rem;overflow-y:auto;display:flex;align-items:flex-start;justify-content:center}.mp-game-layout .game-result-overlay .result-content{max-width:520px;width:100%;margin:1rem auto;background:linear-gradient(180deg,#0d1a2a,#081420);border-radius:6px;padding:1.5rem;border:3px solid #1a4a6a;box-shadow:inset 1px 1px #3098b8,inset -1px -1px #0a4a3a,0 0 0 1px #000;max-height:calc(100vh - 120px);overflow-y:auto}.no-trade-notice{background:linear-gradient(135deg,#fbbf2426,#f59e0b1a);border:1px solid rgba(251,191,36,.4);border-radius:8px;padding:.75rem 1rem;margin-bottom:1rem}.no-trade-notice p{color:#fbbf24;margin:0;font-size:.9rem;text-align:center}.trade-phase{background:linear-gradient(135deg,#1e1b4b,#312e81);border-radius:12px;padding:1.5rem;margin-bottom:1rem}.trade-phase h3{color:#fbbf24;margin-bottom:.5rem}.trade-instruction{color:#9ca3af;margin-bottom:1rem}.trade-cards{display:flex;justify-content:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1.5rem}.trade-card{cursor:pointer;transition:all .2s;border:3px solid transparent;border-radius:8px}.trade-card:hover{transform:translateY(-4px);border-color:#6366f1}.trade-card.selected{border-color:#22c55e;box-shadow:0 0 12px #22c55e80;transform:translateY(-4px)}.trade-card-inner{width:70px;aspect-ratio:5 / 7;background:linear-gradient(135deg,#7f1d1d,#991b1b);border:2px solid #dc2626;border-radius:6px;display:grid;grid-template-areas:". top ." "left . right" ". bottom .";grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;place-items:center;position:relative}.trade-card-inner .card-value{display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:700;color:#f8fafc;background:#000000b3;border-radius:50%;width:18px;height:18px;text-shadow:0 1px 2px rgba(0,0,0,.8)}.trade-card-inner .card-value.top{grid-area:top}.trade-card-inner .card-value.left{grid-area:left}.trade-card-inner .card-value.right{grid-area:right}.trade-card-inner .card-value.bottom{grid-area:bottom}.trade-card-name{position:absolute;bottom:2px;left:0;right:0;text-align:center;font-size:.5rem;color:#ffffffb3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 2px}.trade-actions{display:flex;justify-content:center;gap:1rem}.confirm-trade-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.confirm-trade-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e66}.confirm-trade-btn:disabled{opacity:.5;cursor:not-allowed}.skip-trade-btn{padding:.75rem 1.5rem;background:#374151;color:#e5e7eb;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s}.skip-trade-btn:hover{background:#4b5563}.trade-waiting{color:#9ca3af;font-style:italic}@media (max-width: 480px){.multiplayer-game{padding:.5rem}.mp-players{gap:.75rem}.mp-player{padding:.5rem 1rem;min-width:80px}.mp-board{max-width:280px;padding:8px;gap:4px}.mp-board.ott-board{max-width:none;gap:4px}.mp-hand-card{width:60px}.mp-card .card-value,.mp-hand-card .card-value{font-size:.6rem;width:16px;height:16px}}.rules-config-screen{max-width:900px;margin:0 auto;padding:1rem}.rules-config-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.rules-config-header h2{flex:1;margin:0;font-size:1.5rem;background:linear-gradient(90deg,#00aad4,#00d4aa);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-align:center}.rules-config-header .back-btn{padding:.5rem 1rem;background:#141e28cc;border:1px solid rgba(0,170,212,.2);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:.9rem;transition:all .2s}.rules-config-header .back-btn:hover{background:#00aad426;border-color:#00aad466}.rules-config-header .tooltip-toggle{width:36px;height:36px;padding:0;background:#00141e99;border:1px solid rgba(0,170,212,.2);border-radius:50%;color:var(--text-secondary);cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;transition:all .2s}.rules-config-header .tooltip-toggle.active{background:#00aad433;border-color:var(--accent-primary);color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.rules-warnings{margin-bottom:1rem}.rules-config-screen .rule-warning{background:#451a03;border:1px solid #92400e;color:#fbbf24;padding:.5rem .75rem;border-radius:6px;font-size:.85rem;margin-bottom:.5rem}.preset-row{display:flex;align-items:center;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap;padding:.75rem;background:#0d151fe6;border-radius:8px;border:1px solid rgba(0,170,212,.15)}.preset-label{font-weight:600;color:var(--text-secondary);margin-right:.5rem}.preset-btn{padding:.5rem 1rem;background:#00141e99;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:.85rem;transition:all .2s}.preset-btn:hover{background:#00aad41a;border-color:#00aad44d}.preset-btn.active{background:#00aad433;border-color:var(--accent-primary);color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow)}.rules-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin-bottom:1.5rem}.rule-card{background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:10px;padding:1rem}.rule-card-title{font-weight:600;font-size:.95rem;color:var(--accent-primary);margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid rgba(0,170,212,.15)}.rule-card .rule-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem;gap:.5rem}.rule-card .rule-label{color:#d1d5db;font-size:.9rem}.rule-card select,.rule-card input[type=number]{padding:.4rem .6rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:4px;color:var(--text-primary);font-size:.85rem;transition:all .2s}.rule-card select:focus,.rule-card input:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow)}.level-range .level-selects{display:flex;align-items:center;gap:.5rem}.level-range .level-selects span{color:#6b7280;font-size:.8rem}.level-range .level-selects select{width:60px}.rule-checkboxes{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:.5rem}.rule-checkboxes.vertical{flex-direction:column;gap:.5rem}.rule-card label{display:flex;align-items:center;gap:.4rem;color:#d1d5db;font-size:.9rem;cursor:pointer}.rule-card label:hover{color:#f3f4f6}.rule-card input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent-primary)}.rule-card label.disabled,.rule-card .disabled label{color:#4b5563;cursor:not-allowed}.rule-card .rule-hint{color:#6b7280;font-size:.75rem;margin-left:auto}.capture-rule-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.capture-rule-row label:first-child{min-width:80px}.wall-option{font-size:.8rem!important;color:#9ca3af!important}.wall-option.disabled{color:#4b5563!important}.rule-divider{height:1px;background:#1f2937;margin:.75rem 0}.wall-modifiers{display:flex;gap:1rem;margin-top:.5rem}.wall-value-input{width:60px}.elemental-toggle{margin-bottom:.75rem}.trade-info-card{background:linear-gradient(135deg,#111827,#1e1a2e)}.trade-rules-summary{display:flex;flex-direction:column;gap:.75rem}.trade-rule-item{display:flex;align-items:flex-start;gap:.75rem;padding:.5rem;border-radius:6px;background:#0003}.trade-rule-item.win{border-left:3px solid #22c55e}.trade-rule-item.lose{border-left:3px solid #ef4444}.trade-icon{font-size:1.25rem;line-height:1}.trade-rule-item div{display:flex;flex-direction:column;gap:.25rem}.trade-rule-item strong{color:#e5e7eb;font-size:.9rem}.trade-detail{color:#6b7280;font-size:.75rem}.active-rules-summary{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;margin-bottom:1.5rem;flex-wrap:wrap}.summary-label{font-weight:600;color:var(--text-secondary);white-space:nowrap}.rule-badges{display:flex;flex-wrap:wrap;gap:.4rem}.rule-badge{padding:.25rem .6rem;background:#00aad41a;border:1px solid rgba(0,170,212,.3);border-radius:12px;color:var(--accent-primary);font-size:.75rem;font-weight:500}.no-rules{color:#6b7280;font-style:italic;font-size:.85rem}.rules-config-actions{display:flex;justify-content:center;gap:1rem}.rules-config-actions .secondary-btn{padding:.75rem 1.5rem;background:#141e28cc;border:1px solid rgba(100,120,140,.3);border-radius:8px;color:var(--text-primary);cursor:pointer;font-size:1rem;transition:all .2s}.rules-config-actions .secondary-btn:hover{background:#00aad41a;border-color:#00aad44d}.rules-config-actions .primary-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#00a0c4,#0080a0);border:1px solid rgba(0,170,212,.3);border-radius:8px;color:#fff;font-weight:600;font-size:1rem;cursor:pointer;transition:all .2s;box-shadow:0 4px 15px #00aad44d}.rules-config-actions .primary-btn:hover{transform:translateY(-2px);background:linear-gradient(135deg,#00b0d4,#0090b0);box-shadow:0 6px 20px #00aad480}.game-layout.no-sidebar{grid-template-columns:1fr 320px;max-width:900px;margin:0 auto}.game-main.no-sidebar{max-width:900px;margin:0 auto}@media (max-width: 900px){.game-layout.no-sidebar{grid-template-columns:1fr}}.game-layout.with-sidebar{display:block;max-width:100%;margin:0 auto;min-height:calc(100vh - 70px);overflow:hidden}.game-layout.with-sidebar:not(.mp-game-layout) .game-main{margin-right:300px;padding:1rem;transition:margin .3s ease;display:flex;flex-direction:column;align-items:center}.game-layout.with-sidebar:not(.mp-game-layout).sidebar-collapsed .game-main{margin-right:36px}.game-layout.with-sidebar:not(.mp-game-layout) .board-container.mp-board-container{flex-shrink:0;overflow:visible}.game-layout.with-sidebar:not(.mp-game-layout) .hand-vertical .mp-hand-card{width:60px;height:84px;font-size:.75rem}.game-layout.with-sidebar:not(.mp-game-layout) .hand-vertical .mp-hand-card .card-value{font-size:.6rem;width:16px;height:16px}.game-sidebar.sidebar-docked{display:flex;flex-direction:column;gap:0}@media (max-width: 1200px){.game-layout.with-sidebar:not(.mp-game-layout) .game-main{margin-right:260px}.game-layout.with-sidebar:not(.mp-game-layout) .sidebar-docked{width:260px}.game-layout.with-sidebar:not(.mp-game-layout) .hand-column{width:58px;min-width:58px}.game-layout.with-sidebar:not(.mp-game-layout) .game-avatar{width:72px;min-width:72px}}@media (max-width: 1000px){.game-layout.with-sidebar:not(.mp-game-layout) .game-main{margin-right:260px}.game-layout.with-sidebar:not(.mp-game-layout) .sidebar-docked{width:260px}.game-layout.with-sidebar:not(.mp-game-layout) .hand-vertical .mp-hand-card{width:50px;height:70px;font-size:.65rem}.game-layout.with-sidebar:not(.mp-game-layout) .hand-vertical .mp-hand-card .card-value{font-size:.55rem;width:14px;height:14px}}@media (max-width: 900px){.game-layout.with-sidebar:not(.mp-game-layout) .game-main{margin-left:36px;margin-right:36px}.game-layout.with-sidebar:not(.mp-game-layout) .sidebar-docked{width:280px;box-shadow:0 0 20px #00000080}.game-layout.with-sidebar:not(.mp-game-layout) .game-play-area{flex-wrap:wrap;justify-content:center}.game-layout.with-sidebar:not(.mp-game-layout) .game-avatar{display:none}.game-layout.with-sidebar:not(.mp-game-layout) .hand-column{width:auto;min-width:0;flex-shrink:1}.game-layout.with-sidebar:not(.mp-game-layout) .hand-column .hand-vertical{flex-direction:row;justify-content:center}.game-layout.with-sidebar:not(.mp-game-layout) .board-container{width:100%;display:flex;justify-content:center}}@media (max-width: 600px){.rules-config-screen{padding:.5rem}.rules-config-header h2{font-size:1.25rem}.preset-row{padding:.5rem}.preset-btn{padding:.4rem .75rem;font-size:.8rem}.rules-grid{grid-template-columns:1fr}.rules-config-actions{flex-direction:column}.rules-config-actions button{width:100%}}.waiting-room-rules{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.75rem;background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;margin-top:1rem}.waiting-room-rules .rules-label{font-weight:600;color:var(--text-secondary)}.rules-badges-inline{display:flex;flex-wrap:wrap;gap:.3rem}.rule-badge-small{padding:.2rem .5rem;background:#00aad41a;border:1px solid rgba(0,170,212,.3);border-radius:10px;color:var(--accent-primary);font-size:.7rem;font-weight:500}.no-rules-text{color:#6b7280;font-style:italic;font-size:.85rem}.game-card{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem}.game-info{display:flex;flex-direction:column;gap:.25rem;flex:1;min-width:150px}.game-rules-preview{display:flex;flex-wrap:wrap;gap:.25rem;margin-top:.25rem}.rule-badge-tiny{padding:.1rem .4rem;background:#00aad41a;border:1px solid rgba(0,170,212,.2);border-radius:8px;color:var(--accent-primary);font-size:.65rem}.rule-badge-tiny.more{background:#1f2937;border-color:#374151;color:#9ca3af}.game-actions{display:flex;gap:.5rem;align-items:center}.preview-rules-btn{padding:.4rem .75rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#9ca3af;font-size:.8rem;cursor:pointer}.preview-rules-btn:hover{background:#374151;color:#e5e7eb}.rules-preview-modal{background:#111827;border:1px solid #1f2937;border-radius:12px;padding:1.5rem;max-width:400px;width:90%}.rules-preview-modal h3{margin:0 0 .5rem;color:#f8fafc}.preview-host{color:#9ca3af;margin:0 0 1rem;font-size:.9rem}.preview-rules-section{margin-bottom:1rem}.preview-rules-section h4{margin:0 0 .5rem;color:#60a5fa;font-size:.9rem}.preview-rules-badges{display:flex;flex-wrap:wrap;gap:.3rem}.preview-rules-details{padding:.75rem;background:#0003;border-radius:6px;font-size:.85rem;color:#d1d5db}.preview-rules-details p{margin:.25rem 0}.mode-admin{background:linear-gradient(135deg,#374151,#1f2937);border:2px solid #6b7280}.mode-admin:hover{background:linear-gradient(135deg,#4b5563,#374151);border-color:#9ca3af}.admin-badge-header{background:#dc2626;color:#fff;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:700;text-transform:uppercase}.admin-panel{max-width:1200px;margin:0 auto}.admin-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.admin-header h2{margin:0;flex:1}.admin-tabs{display:flex;gap:.25rem;margin-bottom:1.5rem;border-bottom:2px solid rgba(0,170,212,.2);padding-bottom:.5rem;overflow-x:auto;scrollbar-width:thin;scrollbar-color:rgba(0,170,212,.3) transparent;-webkit-overflow-scrolling:touch}.admin-tab{padding:.6rem 1rem;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;font-size:.9rem;border-radius:6px 6px 0 0;transition:all .2s;white-space:nowrap;flex-shrink:0}.admin-tab:hover{background:#00aad41a;color:var(--text-primary)}.admin-tab.active{background:#00aad433;color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow)}.admin-content{background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;padding:1.5rem}.admin-overview{display:flex;flex-direction:column;gap:1.5rem}.stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.stat-card{background:#00141e99;border:1px solid rgba(0,170,212,.1);padding:1.5rem;border-radius:8px;text-align:center}.stat-card.highlight{background:linear-gradient(135deg,#003c324d,#00141e99);border:1px solid var(--accent-primary);box-shadow:0 0 20px var(--accent-glow)}.stat-value{font-size:2.5rem;font-weight:700;color:var(--accent-primary)}.stat-card.highlight .stat-value{color:var(--accent-hover)}.stat-label{color:#9ca3af;font-size:.9rem;margin-top:.5rem}.stat-details{background:#1f2937;padding:1rem;border-radius:6px}.stat-details p{margin:.5rem 0;color:#d1d5db}.refresh-btn{align-self:flex-start;padding:.5rem 1rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer}.refresh-btn:hover{background:#4b5563}.admin-games{display:flex;flex-direction:column;gap:1rem}.games-header{display:flex;justify-content:space-between;align-items:center}.games-header h3{margin:0}.admin-users{display:flex;flex-direction:column;gap:1rem}.users-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.search-input{flex:1;max-width:300px;padding:.5rem 1rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#e5e7eb;font-size:1rem}.search-input:focus{outline:none;border-color:#3b82f6}.user-count{color:#9ca3af}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th,.admin-table td{padding:.75rem;text-align:left;border-bottom:1px solid #374151}.admin-table th{background:#1f2937;color:#9ca3af;font-weight:600;text-transform:uppercase;font-size:.75rem}.admin-table tr:hover{background:#3b82f61a}.admin-table tr.stale{background:#dc262626}.admin-table .mono{font-family:monospace;color:#60a5fa}.admin-table .no-email{color:#6b7280;font-style:italic}.state-badge{padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.state-waiting{background:#fbbf24;color:#1f2937}.state-selecting{background:#60a5fa;color:#fff}.state-playing{background:#34d399;color:#1f2937}.state-finished{background:#6b7280;color:#fff}.connected{color:#34d399}.disconnected{color:#ef4444}.admin-badge{padding:.25rem .5rem;border:1px solid #374151;background:#1f2937;color:#9ca3af;border-radius:4px;cursor:pointer;font-size:.75rem;transition:all .2s}.admin-badge:hover{border-color:#60a5fa}.admin-badge.is-admin{background:#dc2626;border-color:#dc2626;color:#fff}.admin-badge.is-banned{background:#f97316;border-color:#f97316;color:#fff}.btn-small{padding:.3rem .6rem;background:#374151;border:none;color:#fff;border-radius:4px;cursor:pointer;font-size:.8rem}.btn-small:hover{background:#4b5563}.btn-danger{background:#dc2626;border:none;color:#fff;padding:.5rem 1rem;border-radius:6px;cursor:pointer}.btn-danger:hover{background:#b91c1c}.btn-danger:disabled,.btn-small:disabled{opacity:.5;cursor:not-allowed}.btn-small.btn-danger{background:#dc2626}.btn-small.btn-danger:hover{background:#b91c1c}.pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:1rem}.pagination button{padding:.5rem 1rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer}.pagination button:hover:not(:disabled){background:#4b5563}.pagination button:disabled{opacity:.5;cursor:not-allowed}.admin-modal{max-width:450px}.admin-modal h3{margin-top:0;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:1px solid #374151}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;color:#9ca3af;font-size:.9rem}.input-row{display:flex;gap:.5rem}.input-row input{flex:1;padding:.5rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#e5e7eb}.input-row input:focus{outline:none;border-color:#3b82f6}.input-row button{padding:.5rem 1rem;background:#3b82f6;border:none;color:#fff;border-radius:6px;cursor:pointer;white-space:nowrap}.input-row button:hover:not(:disabled){background:#2563eb}.input-row button:disabled{opacity:.5;cursor:not-allowed}.btn-full{width:100%;padding:.5rem 1rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer}.btn-full:hover:not(:disabled){background:#4b5563}.btn-close{width:100%;margin-top:1rem;padding:.75rem;background:#6b7280;border:none;color:#fff;border-radius:6px;cursor:pointer}.btn-close:hover{background:#4b5563}.reset-link-display{margin-top:.75rem;display:flex;gap:.5rem}.reset-link-display input{flex:1;padding:.5rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#60a5fa;font-family:monospace;font-size:.8rem}.reset-link-display button{padding:.5rem .75rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer}.reset-link-display button:hover{background:#4b5563}.gold-adjustment{background:#eab3081a;border:1px solid rgba(234,179,8,.3);border-radius:8px;padding:1rem;margin-top:1rem}.gold-adjustment label{color:#fbbf24}.gold-adjustment .current-gold{color:#9ca3af;font-weight:400;font-size:.85rem}.gold-adjustment .gold-reason{margin-top:.5rem;font-size:.85rem}.gold-adjustment .input-row input[type=number]{flex:1}.gold-cell{color:#fbbf24;font-weight:500}.super-admin-row{background:#8b5cf61a!important}.super-admin-badge{display:inline-block;margin-left:.5rem;padding:2px 6px;background:linear-gradient(135deg,#8b5cf6,#6366f1);color:#fff;font-size:.7rem;font-weight:600;border-radius:4px;text-transform:uppercase;letter-spacing:.5px}.admin-badge.protected{cursor:default;opacity:.8}.protected-text{color:#8b5cf6;font-size:.8rem;font-style:italic}.no-data{text-align:center;color:#6b7280;padding:2rem}.loading{text-align:center;color:#9ca3af;padding:2rem}.auto-refresh-note{text-align:right;color:#6b7280;font-size:.8rem;margin-top:.5rem}@media (max-width: 768px){.admin-tabs{flex-wrap:wrap}.admin-tab{flex:1;text-align:center;padding:.5rem 1rem}.admin-table{font-size:.8rem}.admin-table th,.admin-table td{padding:.5rem}.stat-cards{grid-template-columns:repeat(2,1fr)}.users-header{flex-direction:column;align-items:stretch}.search-input{max-width:none}.games-header{flex-direction:column;gap:.5rem}}.admin-cards{display:flex;flex-direction:column;gap:1rem}.cards-header{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}.cards-header .search-input{flex:1;min-width:150px}.deck-filter{padding:.5rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#e5e7eb;min-width:120px}.deck-filter:focus{outline:none;border-color:#3b82f6}.btn-primary{padding:.5rem 1rem;background:linear-gradient(135deg,#00a0c4,#0080a0);border:1px solid rgba(0,170,212,.3);color:#fff;border-radius:6px;cursor:pointer;white-space:nowrap;box-shadow:0 2px 10px #00aad433;transition:all .2s}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#00b0d4,#0090b0);box-shadow:0 4px 15px #00aad466}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.card-count{color:#9ca3af;margin-left:auto}.admin-table .card-name{font-weight:600;color:#f8fafc}.admin-table .card-values{font-family:monospace;color:#fbbf24}.admin-table tr.gold-card{background:#fbbf241a}.admin-table tr.gold-card:hover{background:#fbbf2433}.admin-table .level-1,.admin-table .level-2{color:#9ca3af}.admin-table .level-3,.admin-table .level-4{color:#34d399}.admin-table .level-5,.admin-table .level-6{color:#60a5fa}.admin-table .level-7,.admin-table .level-8{color:#a78bfa}.admin-table .level-9{color:#f472b6}.admin-table .level-10{color:#fbbf24}.admin-decks{display:flex;flex-direction:column;gap:1rem}.decks-header{display:flex;justify-content:space-between;align-items:center}.decks-header h3{margin:0}.admin-table .deck-keyword{font-weight:600;color:#60a5fa}.admin-table .deck-desc{color:#9ca3af;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-table tr.special-deck{background:#a78bfa1a}.admin-table tr.special-deck:hover{background:#a78bfa33}.card-modal{max-width:550px}.form-row{display:flex;gap:1rem;margin-bottom:1rem}.form-row .form-group{flex:1;margin-bottom:0}.form-row.values-row{display:grid;grid-template-columns:repeat(4,1fr);gap:.75rem}.form-row.values-row input{width:100%;padding:.5rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#e5e7eb;text-align:center}.form-row.values-row input:focus{outline:none;border-color:#fbbf24}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.5rem;background:#1f2937;border:1px solid #374151;border-radius:6px;color:#e5e7eb;font-family:inherit;font-size:.95rem}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#3b82f6}.form-group textarea{resize:vertical;min-height:60px}.form-row.checkboxes{display:flex;gap:1.5rem;flex-wrap:wrap;margin-top:.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;color:#d1d5db}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#3b82f6}.modal-buttons{display:flex;gap:.75rem;margin-top:1.5rem}.modal-buttons button{flex:1}.modal-buttons .btn-close{margin-top:0;background:#6b7280}.deck-modal{max-width:500px}.deck-cards-modal{max-width:700px;max-height:80vh;overflow-y:auto}.deck-cards-modal .deck-desc{color:#9ca3af;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #374151}.deck-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem;margin-bottom:1rem}.deck-card-item{background:#1f2937;border:1px solid #374151;border-radius:8px;padding:.75rem;text-align:center}.deck-card-item.gold{background:linear-gradient(135deg,#3d3314,#1f2937);border-color:#fbbf24}.deck-card-item .dci-name{font-weight:600;font-size:.85rem;color:#f8fafc;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.deck-card-item .dci-values{font-family:monospace;color:#fbbf24;font-size:.9rem}.deck-card-item .dci-meta{font-size:.75rem;color:#9ca3af;margin-top:.25rem}.image-hint{font-size:.8rem;color:#6b7280;margin:.25rem 0 .5rem}.no-cards{text-align:center;color:#6b7280;padding:2rem;grid-column:1 / -1}@media (max-width: 768px){.cards-header{flex-direction:column;align-items:stretch}.cards-header .search-input,.deck-filter{max-width:none}.card-count{margin-left:0;text-align:center}.form-row{flex-direction:column;gap:0}.form-row .form-group{margin-bottom:1rem}.form-row.values-row,.deck-cards-grid{grid-template-columns:repeat(2,1fr)}.decks-header{flex-direction:column;gap:.5rem}}.card-library{max-width:1200px;margin:0 auto}.library-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.library-title-section h2{margin:0 0 .25rem;font-size:1.75rem}.library-subtitle{color:#9ca3af;margin:0}.library-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:2px solid rgba(0,170,212,.2);padding-bottom:.5rem}.library-tab{padding:.75rem 1.5rem;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;font-size:1rem;border-radius:6px 6px 0 0;transition:all .2s}.library-tab:hover{background:#00aad41a;color:var(--text-primary)}.library-tab.active{background:#00aad433;color:var(--accent-primary);box-shadow:0 0 10px var(--accent-glow)}.library-filters{display:flex;gap:.75rem;margin-bottom:1.5rem;flex-wrap:wrap;align-items:center}.library-search{flex:1;min-width:200px;padding:.6rem 1rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);font-size:1rem;transition:all .2s}.library-search:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.library-filter-select{padding:.6rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);min-width:130px;transition:all .2s}.library-filter-select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.library-clear-btn{padding:.6rem 1rem;background:#6b7280;border:none;color:#fff;border-radius:6px;cursor:pointer}.library-clear-btn:hover{background:#4b5563}.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1rem}.library-card{background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:10px;padding:1rem;display:flex;flex-direction:column;align-items:center;cursor:pointer;transition:all .2s}.library-card:hover{border-color:var(--accent-primary);transform:translateY(-2px);box-shadow:0 8px 25px #00aad433}.library-card.gold{background:linear-gradient(135deg,#2d2815,#111827);border-color:#fbbf24}.library-card.gold:hover{border-color:#fbbf24;box-shadow:0 0 10px #fbbf244d}.library-card .cardTT{width:80px;height:112px;font-size:.85rem}.library-card.compact .cardTT{width:70px;height:98px;font-size:.75rem}.library-card-name{margin-top:.75rem;font-weight:600;color:#f8fafc;text-align:center;font-size:.9rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.library-card-info{display:flex;gap:.5rem;margin-top:.5rem;flex-wrap:wrap;justify-content:center}.level-badge{font-size:.75rem;padding:.15rem .4rem;border-radius:4px;font-weight:600}.level-badge.level-1,.level-badge.level-2{background:#374151;color:#9ca3af}.level-badge.level-3,.level-badge.level-4{background:#065f46;color:#34d399}.level-badge.level-5,.level-badge.level-6{background:#1e3a5f;color:#60a5fa}.level-badge.level-7,.level-badge.level-8{background:#4c1d95;color:#a78bfa}.level-badge.level-9{background:#831843;color:#f472b6}.level-badge.level-10{background:#78350f;color:#fbbf24}.deck-badge{font-size:.75rem;padding:.15rem .4rem;border-radius:4px;background:#1f2937;color:#9ca3af}.library-loading,.library-error,.library-empty{text-align:center;padding:3rem;color:#9ca3af}.library-error{color:#ef4444}.library-pagination{display:flex;justify-content:center;align-items:center;gap:1rem;margin-top:2rem;padding-top:1rem;border-top:1px solid #1f2937}.library-page-btn{padding:.5rem 1rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer}.library-page-btn:hover:not(:disabled){background:#4b5563}.library-page-btn:disabled{opacity:.5;cursor:not-allowed}.library-page-info{color:#9ca3af}.decks-list{display:flex;flex-direction:column;gap:.75rem}.deck-item{display:flex;justify-content:space-between;align-items:center;background:#0d151fe6;border:1px solid rgba(0,170,212,.15);border-radius:8px;padding:1rem 1.25rem;transition:all .2s}.deck-item:hover{border-color:var(--accent-primary);box-shadow:0 4px 15px #00aad426}.deck-item.special{background:linear-gradient(135deg,#1e1b4b,#111827);border-color:#a78bfa}.deck-item-info{flex:1}.deck-item-name{margin:0 0 .25rem;font-size:1.1rem;color:var(--accent-primary)}.deck-item-desc{margin:0;color:#9ca3af;font-size:.9rem}.deck-item-authors{margin:.25rem 0 0;color:#6b7280;font-size:.8rem;font-style:italic}.deck-view-btn{padding:.5rem 1rem;background:#374151;border:none;color:#fff;border-radius:6px;cursor:pointer;white-space:nowrap}.deck-view-btn:hover{background:#4b5563}.card-detail-modal{max-width:500px}.card-detail-content{display:flex;gap:1.5rem;margin-bottom:1rem}.card-detail-modal .cardTT.large{width:120px;height:168px;font-size:1.1rem;flex-shrink:0}.card-detail-info{flex:1}.card-detail-info h3{margin:0 0 .75rem;font-size:1.25rem}.card-detail-stats{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:.75rem}.card-detail-stats .element-badge{font-size:.75rem;padding:.15rem .4rem;border-radius:4px;background:#1e3a5f;color:#60a5fa}.card-detail-stats .gold-badge{font-size:.75rem;padding:.15rem .4rem;border-radius:4px;background:#78350f;color:#fbbf24}.card-detail-values{font-family:monospace;color:#fbbf24;margin-bottom:.75rem;display:flex;flex-direction:column;gap:.25rem}.card-detail-values span:last-child{font-size:.75rem;color:#6b7280}.card-detail-lore{background:#1f2937;border-radius:6px;padding:.75rem;margin-top:.75rem}.card-detail-lore p{margin:0;color:#9ca3af;font-size:.9rem;font-style:italic;line-height:1.5}.deck-view-modal{max-width:800px;max-height:80vh;overflow-y:auto}.deck-view-modal h3{margin-top:0;color:var(--accent-primary)}.deck-view-desc{color:#9ca3af;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #374151}.deck-view-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;margin-bottom:1rem}.mode-library{background:linear-gradient(135deg,#003c324d,#0f1923e6);border:1px solid rgba(0,170,212,.3)}.mode-library:hover{background:linear-gradient(135deg,#00504666,#003c324d);border-color:var(--accent-primary);box-shadow:0 8px 30px #00aad44d}@media (max-width: 768px){.library-header{flex-direction:column;align-items:stretch}.library-filters{flex-direction:column}.library-search,.library-filter-select{width:100%;min-width:auto}.library-grid{grid-template-columns:repeat(2,1fr)}.library-card .cardTT{width:70px;height:98px;font-size:.75rem}.card-detail-content{flex-direction:column;align-items:center}.deck-item{flex-direction:column;gap:.75rem;align-items:stretch}.deck-view-grid{grid-template-columns:repeat(2,1fr)}}.card-store{max-width:1200px;margin:0 auto}.store-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.store-title-section h2{margin:0 0 .25rem;font-size:1.75rem}.store-subtitle{color:#9ca3af;margin:0}.store-header-right{display:flex;align-items:center;gap:1rem}.store-balance{display:flex;gap:1rem;padding:.75rem 1.25rem;background:#0d151fe6;border:1px solid rgba(0,170,212,.2);border-radius:8px}.balance-gold{color:#fbbf24;font-weight:600}.balance-crystals{color:#60a5fa;font-weight:600}.store-loading,.store-error{text-align:center;padding:3rem;color:#9ca3af}.store-error{color:#ef4444}.store-packs-section{margin-bottom:2rem}.store-packs-section h3{margin:0 0 1rem;color:var(--text-primary);font-size:1.25rem}.store-packs-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}.pack-card{background:#0d151fe6;border:2px solid rgba(0,170,212,.2);border-radius:12px;padding:1.5rem;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;align-items:center;text-align:center}.pack-card:hover{border-color:var(--accent-primary);transform:translateY(-4px);box-shadow:0 8px 30px #00aad440}.pack-card.selected{border-color:var(--accent-primary);background:#00aad41a;box-shadow:0 0 20px #00aad44d}.pack-card.insufficient{opacity:.6}.pack-card.insufficient:hover{border-color:#ef4444;box-shadow:0 8px 30px #ef444433}.pack-icon{font-size:3rem;margin-bottom:.75rem}.pack-name{font-size:1.25rem;font-weight:700;color:var(--text-primary);margin-bottom:.5rem}.pack-stats{display:flex;gap:.75rem;margin-bottom:.5rem}.pack-cards{font-size:.9rem;color:#9ca3af}.pack-rares{font-size:.85rem;color:#a78bfa;background:#a78bfa26;padding:.15rem .5rem;border-radius:4px}.pack-bonus{font-size:.9rem;color:#60a5fa;background:#60a5fa26;padding:.25rem .5rem;border-radius:4px;margin-bottom:.5rem}.pack-price{font-size:1.1rem;font-weight:700;color:#fbbf24;margin-top:.5rem}.pack-desc{font-size:.8rem;color:#6b7280;margin-top:.5rem;font-style:italic}.store-purchase-panel{background:#0d151ff2;border:1px solid rgba(0,170,212,.3);border-radius:12px;padding:1.5rem;margin-top:1.5rem}.store-purchase-panel h3{margin:0 0 1rem;color:var(--accent-primary)}.purchase-details{display:flex;flex-direction:column;gap:1rem}.purchase-info{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#0000004d;border-radius:8px}.purchase-info-row{display:flex;justify-content:space-between;color:#9ca3af}.purchase-info-row.bonus{color:#60a5fa}.purchase-info-row.price{font-size:1.1rem;font-weight:600;color:#fbbf24;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.1)}.purchase-deck-select{display:flex;flex-direction:column;gap:.5rem}.purchase-deck-select label{font-weight:600;color:var(--text-primary)}.purchase-deck-select select{padding:.75rem;background:#000a14cc;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);font-size:1rem}.purchase-deck-select select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.purchase-error{color:#ef4444;background:#ef44441a;padding:.75rem;border-radius:6px;text-align:center}.purchase-buttons{display:flex;gap:1rem;margin-top:.5rem}.purchase-btn{flex:1;padding:1rem;background:linear-gradient(135deg,var(--accent-primary),#00a888);border:none;border-radius:8px;color:#0d151f;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.purchase-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #00aad466}.purchase-btn:disabled{opacity:.5;cursor:not-allowed}.cancel-btn{padding:1rem;background:#374151;border:none;border-radius:8px;color:#fff;font-size:1rem;cursor:pointer}.cancel-btn:hover{background:#4b5563}.insufficient-warning{color:#ef4444;text-align:center;font-size:.9rem;margin-top:.5rem}.pack-reveal-modal{background:linear-gradient(135deg,#0d151f,#1a2535);border:2px solid rgba(0,170,212,.3);border-radius:16px;padding:2rem;max-width:800px;width:90%;max-height:90vh;overflow-y:auto;text-align:center}.pack-reveal-modal h2{margin:0 0 1.5rem;color:var(--accent-primary);font-size:1.75rem}.reveal-single{display:flex;flex-direction:column;align-items:center;gap:1rem}.reveal-card{padding:1.5rem;border-radius:12px;background:#0000004d;display:flex;flex-direction:column;align-items:center;animation:cardReveal .4s ease-out}@keyframes cardReveal{0%{transform:scale(.8) rotateY(180deg);opacity:0}to{transform:scale(1) rotateY(0);opacity:1}}.reveal-card.legendary{background:linear-gradient(135deg,#78350f66,#0000004d);border:2px solid #fbbf24;box-shadow:0 0 30px #fbbf244d}.reveal-card.very-rare{background:linear-gradient(135deg,#83184366,#0000004d);border:2px solid #f472b6;box-shadow:0 0 20px #f472b64d}.reveal-card.rare{background:linear-gradient(135deg,#4c1d9566,#0000004d);border:2px solid #a78bfa;box-shadow:0 0 20px #a78bfa4d}.reveal-card.uncommon{background:linear-gradient(135deg,#1e3a5f66,#0000004d);border:2px solid #60a5fa}.reveal-card.common{border:1px solid rgba(100,120,140,.3)}.reveal-card .cardTT{width:120px;height:168px;font-size:1.1rem}.reveal-card-name{font-size:1.25rem;font-weight:700;color:var(--text-primary);margin-top:1rem}.reveal-card-info{display:flex;gap:.5rem;margin-top:.5rem;align-items:center}.new-badge{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:700}.reveal-progress{color:#9ca3af;font-size:.9rem}.reveal-buttons{display:flex;gap:1rem;margin-top:1rem}.reveal-next-btn{padding:.75rem 2rem;background:linear-gradient(135deg,var(--accent-primary),#00a888);border:none;border-radius:8px;color:#0d151f;font-size:1rem;font-weight:700;cursor:pointer;transition:all .2s}.reveal-next-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #00aad466}.reveal-all-btn{padding:.75rem 1.5rem;background:#374151;border:none;border-radius:8px;color:#fff;cursor:pointer}.reveal-all-btn:hover{background:#4b5563}.reveal-all{display:flex;flex-direction:column;align-items:center;gap:1.5rem}.reveal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:1rem;width:100%}.reveal-card-small{display:flex;flex-direction:column;align-items:center;padding:.75rem;border-radius:8px;background:#0000004d}.reveal-card-small.legendary{background:linear-gradient(135deg,#78350f4d,#0000004d);border:1px solid #fbbf24}.reveal-card-small.very-rare{background:linear-gradient(135deg,#8318434d,#0000004d);border:1px solid #f472b6}.reveal-card-small.rare{background:linear-gradient(135deg,#4c1d954d,#0000004d);border:1px solid #a78bfa}.reveal-card-small.uncommon{border:1px solid #60a5fa}.reveal-card-small.common{border:1px solid rgba(100,120,140,.2)}.reveal-card-small .cardTT{width:60px;height:84px;font-size:.65rem}.reveal-card-small .reveal-card-name{font-size:.75rem;margin-top:.5rem;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reveal-card-small .level-badge{margin-top:.25rem}.reveal-card-small .new-badge{font-size:.6rem;padding:.1rem .3rem;margin-top:.25rem}.reveal-bonus{padding:1rem;background:#60a5fa26;border:1px solid #60a5fa;border-radius:8px}.crystal-bonus{font-size:1.25rem;font-weight:700;color:#60a5fa}.close-reveal-btn{padding:.75rem 2rem;background:#374151;border:none;border-radius:8px;color:#fff;font-size:1rem;cursor:pointer}.close-reveal-btn:hover{background:#4b5563}.mode-store{background:linear-gradient(135deg,#fbbf2426,#0f1923e6);border:1px solid rgba(251,191,36,.3)}.mode-store:hover{background:linear-gradient(135deg,#fbbf2440,#fbbf241a);border-color:#fbbf24;box-shadow:0 8px 30px #fbbf2440}@media (max-width: 768px){.store-header{flex-direction:column;align-items:stretch}.store-header-right{flex-direction:column;gap:.75rem}.store-balance{justify-content:center}.store-packs-grid{grid-template-columns:1fr}.pack-card{padding:1.25rem}.pack-icon{font-size:2.5rem}.purchase-buttons{flex-direction:column}.reveal-grid{grid-template-columns:repeat(2,1fr)}.reveal-card .cardTT{width:100px;height:140px;font-size:1rem}.pack-reveal-modal{padding:1.25rem}}.store-tabs{display:flex;gap:.5rem;margin-bottom:1.5rem;border-bottom:1px solid var(--border-color);padding-bottom:.5rem}.store-tab{padding:.75rem 1.5rem;background:transparent;border:none;border-radius:8px 8px 0 0;color:var(--text-muted);font-size:1rem;cursor:pointer;transition:all .2s ease}.store-tab:hover{color:var(--text-bright);background:#ffffff0d}.store-tab.active{color:var(--accent);background:#3b82f61a;border-bottom:2px solid var(--accent)}.store-premium-section{padding:1rem 0}.store-premium-section h3{margin:0 0 .5rem;color:var(--text-bright);font-size:1.25rem}.premium-desc{color:var(--text-muted);margin:0 0 1.5rem}.premium-login-warning{padding:1.5rem;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#fca5a5;text-align:center}.premium-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.premium-product-card{background:#0f172a99;border:1px solid var(--border-color);border-radius:12px;padding:1.5rem;text-align:center;transition:all .2s ease}.premium-product-card:hover{border-color:var(--accent);transform:translateY(-2px)}.premium-product-card.membership-product{background:linear-gradient(135deg,#fbbf2426,#0f172ae6);border-color:#fbbf2466}.premium-product-card.membership-product:hover{border-color:#fbbf24;box-shadow:0 4px 20px #fbbf2440}.product-icon{font-size:2.5rem;margin-bottom:.75rem}.product-name{font-weight:600;color:var(--text-bright);margin-bottom:.75rem;font-size:1.1rem}.product-rewards{display:flex;flex-direction:column;gap:.4rem;margin-bottom:.75rem}.reward-item{font-size:.95rem;padding:.25rem .5rem;border-radius:4px;background:#0000004d}.reward-item.gold{color:#fbbf24}.reward-item.crystal{color:#a78bfa}.reward-item.token{color:#60a5fa}.product-price{font-size:1.1rem;color:#22c55e;margin-bottom:1rem}.paypal-form{margin-top:.5rem}.paypal-buy-btn{width:100%;padding:.75rem 1rem;background:linear-gradient(135deg,#ffc439,#ffba00);border:none;border-radius:6px;color:#003087;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .2s ease}.paypal-buy-btn:hover{background:linear-gradient(135deg,#ffd36e,#ffc439);transform:translateY(-1px);box-shadow:0 4px 12px #ffc4394d}.paypal-buy-btn.crystal-btn{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.paypal-buy-btn.crystal-btn:hover{background:linear-gradient(135deg,#a78bfa,#8b5cf6);box-shadow:0 4px 12px #8b5cf64d}.premium-note{padding:1rem;background:#3741514d;border-radius:8px;border-left:3px solid var(--accent)}.premium-note p{margin:.5rem 0;color:var(--text-muted);font-size:.9rem}.premium-note p:first-child{margin-top:0}.premium-note p:last-child{margin-bottom:0}@media (max-width: 768px){.store-tabs{flex-direction:column;gap:.25rem}.store-tab{border-radius:8px;border-bottom:none;text-align:center}.store-tab.active{border-bottom:none;border-left:3px solid var(--accent)}.premium-products-grid{grid-template-columns:1fr}}.avatar-builder{max-width:1000px;margin:0 auto;padding:1.5rem}.avatar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.avatar-header h2{margin:0;color:var(--text-bright)}.avatar-loading,.avatar-error{text-align:center;padding:2rem;color:var(--text-muted)}.avatar-error{color:#ef4444;background:#ef44441a;border-radius:8px;margin-bottom:1rem}.avatar-content{display:grid;grid-template-columns:200px 1fr;gap:2rem}.avatar-preview-section{position:sticky;top:1rem}.avatar-preview-section h3{margin:0 0 1rem;color:var(--text-bright);text-align:center}.avatar-preview{position:relative;width:144px;height:192px;margin:0 auto;background:#111;border:2px solid var(--border-color);border-radius:8px;overflow:hidden}.avatar-layer{position:absolute;left:50%;transform:translate(-50%);image-rendering:pixelated}.avatar-layer.avatar-bg{width:100%;height:100%;top:0;left:0;transform:none;object-fit:cover}.avatar-layer.avatar-body,.avatar-layer.avatar-head{bottom:0;width:96px;height:auto}.avatar-preview-name{text-align:center;margin-top:.75rem;color:var(--text-bright);font-weight:600}.avatar-controls{display:flex;flex-direction:column;gap:1.5rem}.avatar-section h3{margin:0 0 .75rem;color:var(--text-bright);font-size:1rem}.gender-toggle{display:flex;gap:.5rem}.gender-btn{flex:1;padding:.75rem 1rem;background:#0f172a99;border:1px solid var(--border-color);border-radius:8px;color:var(--text-muted);font-size:1rem;cursor:pointer;transition:all .2s ease}.gender-btn:hover{border-color:var(--accent);color:var(--text-bright)}.gender-btn.active{background:#3b82f633;border-color:var(--accent);color:var(--accent)}.avatar-parts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:.5rem;max-height:200px;overflow-y:auto;padding:.5rem;background:#0f172a66;border-radius:8px}.avatar-part-option{width:64px;height:64px;object-fit:contain;background:#111;border:2px solid transparent;border-radius:4px;cursor:pointer;transition:all .2s ease;image-rendering:pixelated}.avatar-part-option:hover{border-color:var(--accent);transform:scale(1.05)}.avatar-part-option.selected{border-color:#22c55e;box-shadow:0 0 8px #22c55e66}.avatar-actions{margin-top:2rem;text-align:center}.save-avatar-btn{padding:1rem 3rem;background:linear-gradient(135deg,#22c55e,#16a34a);border:none;border-radius:8px;color:#fff;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .2s ease}.save-avatar-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #22c55e4d}.save-avatar-btn:disabled{opacity:.6;cursor:not-allowed}.player-avatar{position:relative;width:72px;height:96px;background:#111;border:1px solid var(--border-color);border-radius:4px;overflow:hidden}.player-avatar .avatar-layer{position:absolute;image-rendering:pixelated}.player-avatar .avatar-bg{width:100%;height:100%;top:0;left:0;object-fit:cover}.player-avatar .avatar-body,.player-avatar .avatar-head{bottom:0;left:50%;transform:translate(-50%);width:48px;height:auto}.mode-avatar{background:linear-gradient(135deg,#a855f726,#0f1923e6);border:1px solid rgba(168,85,247,.3)}.mode-avatar:hover{background:linear-gradient(135deg,#a855f740,#a855f71a);border-color:#a855f7;box-shadow:0 8px 30px #a855f740}@media (max-width: 768px){.avatar-content{grid-template-columns:1fr}.avatar-preview-section{position:static;order:-1}.avatar-preview{width:120px;height:160px}.avatar-layer.avatar-body,.avatar-layer.avatar-head{width:80px}.avatar-parts-grid{max-height:150px}}.deck-builder{max-width:1200px;margin:0 auto;padding:1.5rem}.deck-builder-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:2rem}.deck-builder-header h2{margin:0;color:var(--text-bright)}.submissions-list{margin-top:1rem}.submissions-actions{margin-bottom:1.5rem}.submissions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.submission-card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;padding:1rem}.submission-card h3{margin:0 0 .5rem;color:var(--text-bright)}.submission-card .sub-keyword{font-family:monospace;font-size:.85rem;color:var(--text-muted);margin-bottom:.5rem}.submission-card .sub-cards{font-size:.9rem;color:var(--text-secondary);margin-bottom:.5rem}.submission-card .sub-desc{font-size:.85rem;color:var(--text-secondary);margin-bottom:.5rem}.submission-card .sub-notes{font-size:.85rem;color:#e74c3c;background:#e74c3c1a;padding:.5rem;border-radius:4px;margin-bottom:.5rem}.submission-card .sub-actions{display:flex;gap:.5rem;margin-top:1rem}.submission-card .waiting-review{font-size:.85rem;color:#f39c12}.submission-card .approved-text{font-size:.85rem;color:#2ecc71}.deck-status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase}.deck-status-badge.status-draft{background:#95a5a633;color:#95a5a6}.deck-status-badge.status-submitted{background:#f39c1233;color:#f39c12}.deck-status-badge.status-approved{background:#2ecc7133;color:#2ecc71}.deck-status-badge.status-rejected{background:#e74c3c33;color:#e74c3c}.create-submission{max-width:600px;margin:0 auto;background:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;padding:1.5rem}.create-submission h3{margin-top:0;color:var(--text-bright)}.create-submission .form-group{margin-bottom:1rem}.create-submission .form-group label{display:block;margin-bottom:.5rem;color:var(--text-secondary);font-size:.9rem}.create-submission .form-group input,.create-submission .form-group textarea{width:100%;padding:.75rem;border:1px solid var(--border-color);border-radius:6px;background:var(--input-bg);color:var(--text-primary);font-size:1rem}.create-submission .form-group textarea{min-height:100px;resize:vertical}.create-submission .form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.edit-submission{background:var(--card-bg);border:1px solid var(--border-color);border-radius:8px;padding:1.5rem}.edit-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:1px solid var(--border-color)}.edit-header h3{margin:0 0 .5rem;color:var(--text-bright)}.edit-header .edit-keyword{font-family:monospace;color:var(--text-muted);margin-bottom:.5rem}.card-entry-section{background:#0003;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.card-entry-section h4{margin-top:0;color:var(--text-bright)}.card-form{display:flex;flex-direction:column;gap:.75rem}.card-form .form-row{display:flex;gap:.5rem;align-items:center}.card-form input[type=text]{flex:1;padding:.5rem;border:1px solid var(--border-color);border-radius:4px;background:var(--input-bg);color:var(--text-primary)}.card-form select{padding:.5rem;border:1px solid var(--border-color);border-radius:4px;background:var(--input-bg);color:var(--text-primary)}.card-form .values-row{justify-content:center}.card-form .values-row label{display:flex;align-items:center;gap:.25rem;color:var(--text-secondary)}.card-form .values-row input{width:50px;padding:.5rem;text-align:center;border:1px solid var(--border-color);border-radius:4px;background:var(--input-bg);color:var(--text-primary)}.spreadsheet-upload{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-color)}.spreadsheet-upload p{margin-bottom:.5rem;color:var(--text-secondary)}.spreadsheet-upload small{display:block;margin-top:.5rem;color:var(--text-muted);font-size:.8rem}.validation-section{background:#0003;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.validation-result{margin-top:1rem;padding:1rem;border-radius:6px}.validation-result.valid{background:#2ecc711a;border:1px solid rgba(46,204,113,.3)}.validation-result.invalid{background:#e74c3c1a;border:1px solid rgba(231,76,60,.3)}.validation-result h5{margin:0 0 .5rem}.validation-result .valid h5{color:#2ecc71}.validation-result .invalid h5{color:#e74c3c}.val-errors,.val-warnings{margin-top:.5rem;font-size:.85rem}.val-errors{color:#e74c3c}.val-warnings{color:#f39c12}.val-errors ul,.val-warnings ul{margin:.25rem 0 0 1.25rem;padding:0}.cards-table-wrapper{overflow-x:auto}.cards-table{width:100%;border-collapse:collapse;font-size:.9rem}.cards-table th,.cards-table td{padding:.5rem;text-align:left;border-bottom:1px solid var(--border-color)}.cards-table th{background:#0003;color:var(--text-secondary);font-weight:600}.cards-table .card-values{font-family:monospace}.cards-table tr.has-errors{background:#e74c3c1a}.upload-label{cursor:pointer;padding:.25rem .5rem;background:var(--primary-color);border-radius:4px;font-size:.85rem}.has-image{color:#2ecc71}.no-image{color:var(--text-muted)}.card-error,.card-warning{cursor:help}.card-ok{color:#2ecc71}.btn-tiny{padding:.2rem .5rem;font-size:.8rem;border-radius:3px}.no-submissions{text-align:center;padding:3rem;color:var(--text-secondary)}.admin-submissions{padding:1rem 0}.submissions-filter{display:flex;align-items:center;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.submissions-filter span{color:var(--text-secondary)}.submissions-filter button{padding:.4rem .8rem;border:1px solid var(--border-color);border-radius:4px;background:transparent;color:var(--text-secondary);cursor:pointer;transition:all .2s}.submissions-filter button:hover{border-color:var(--primary-color);color:var(--text-primary)}.submissions-filter button.active{background:var(--primary-color);border-color:var(--primary-color);color:#fff}.sub-status{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.sub-status-draft{background:#95a5a633;color:#95a5a6}.sub-status-submitted{background:#f39c1233;color:#f39c12}.sub-status-approved{background:#2ecc7133;color:#2ecc71}.sub-status-rejected{background:#e74c3c33;color:#e74c3c}.status-row-submitted{background:#f39c120d}.mono{font-family:monospace}.submission-modal{max-width:800px;max-height:90vh;overflow-y:auto}.submission-modal .sub-keyword{font-family:monospace;color:var(--text-secondary)}.submission-modal .admin-notes{background:#e74c3c1a;padding:.5rem;border-radius:4px;color:#e74c3c;margin-top:.5rem}.submission-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem;margin:1rem 0;max-height:300px;overflow-y:auto;padding:.5rem;background:#0000001a;border-radius:4px}.sub-card-item{background:var(--card-bg);border:1px solid var(--border-color);border-radius:6px;padding:.5rem;font-size:.8rem}.sub-card-item.has-errors{border-color:#e74c3c;background:#e74c3c1a}.sub-card-name{font-weight:600;color:var(--text-bright);margin-bottom:.25rem}.sub-card-values{font-family:monospace;color:var(--text-secondary)}.sub-card-element{color:var(--text-muted)}.sub-card-image{font-size:.75rem}.sub-card-errors{color:#e74c3c;font-size:.7rem;margin-top:.25rem}.submission-actions{margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--border-color)}.submission-actions .reject-notes{margin-bottom:1rem}.submission-actions .reject-notes label{display:block;margin-bottom:.5rem;color:var(--text-secondary)}.submission-actions .reject-notes textarea{width:100%;min-height:80px;padding:.5rem;border:1px solid var(--border-color);border-radius:4px;background:var(--input-bg);color:var(--text-primary);resize:vertical}.submission-actions .action-buttons{display:flex;gap:.75rem;flex-wrap:wrap}.btn-success{background:#27ae60;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer}.btn-success:hover{background:#2ecc71}.btn-warning{background:#e67e22;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer}.btn-warning:hover{background:#f39c12}.btn-danger{background:#c0392b;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer}.btn-danger:hover{background:#e74c3c}.btn-primary{background:var(--primary-color);color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:transparent;color:var(--text-secondary);border:1px solid var(--border-color);padding:.5rem 1rem;border-radius:4px;cursor:pointer}.btn-secondary:hover{border-color:var(--primary-color);color:var(--text-primary)}.mode-btn.mode-deckbuilder{background:linear-gradient(135deg,#8e44ad,#9b59b6)}.mode-btn.mode-deckbuilder:hover{background:linear-gradient(135deg,#9b59b6,#a569bd)}@media (max-width: 768px){.deck-builder{padding:1rem}.deck-builder-header{flex-direction:column;align-items:flex-start;gap:1rem}.submissions-grid{grid-template-columns:1fr}.card-form .form-row{flex-wrap:wrap}.submission-modal{max-width:95vw}.submission-cards-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.submissions-filter{justify-content:flex-start}.submission-actions .action-buttons{flex-direction:column}.submission-actions .action-buttons button{width:100%}}.wager-input{margin-top:1rem;padding:1rem;background:#eab3081a;border:1px solid rgba(234,179,8,.3);border-radius:8px}.wager-input label{display:block;color:#fbbf24;margin-bottom:.5rem;font-weight:500}.wager-input input{width:100%;padding:.5rem;background:#000a1499;border:1px solid rgba(234,179,8,.3);border-radius:4px;color:#fbbf24;font-size:1.1rem}.wager-input input:focus{outline:none;border-color:#fbbf24;box-shadow:0 0 10px #eab3084d}.wager-note{display:block;margin-top:.5rem;font-size:.8rem;color:#9ca3af}.wager-locked{color:#6b7280;font-style:italic;margin-top:1rem;padding:.75rem;background:#6b72801a;border-radius:4px;text-align:center}.difficulty-select{margin-bottom:1rem}.difficulty-select label{display:block;color:var(--text-secondary);margin-bottom:.5rem;font-weight:500}.difficulty-select select{width:100%;padding:.75rem;background:#000a1499;border:1px solid rgba(100,120,140,.3);border-radius:6px;color:var(--text-primary);font-size:1rem;cursor:pointer;transition:all .2s}.difficulty-select select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 15px var(--accent-glow)}.game-wager{display:inline-block;padding:2px 8px;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#000;font-size:.75rem;font-weight:600;border-radius:4px;margin-left:.5rem;vertical-align:middle}.waiting-room-wager{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-top:1rem;padding:.75rem 1.5rem;background:#eab30826;border:1px solid rgba(234,179,8,.3);border-radius:8px}.waiting-room-wager .wager-label{color:#9ca3af}.waiting-room-wager .wager-amount{color:#fbbf24;font-weight:600;font-size:1.1rem}.match-wager{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;background:#eab30826;border:1px solid rgba(234,179,8,.3);border-radius:6px;margin:.5rem 0}.match-wager .wager-label{color:#9ca3af;font-size:.9rem}.match-wager .wager-amount{color:#fbbf24;font-weight:600;font-size:1rem}.wager-result{margin:1rem 0;padding:1rem 1.5rem;border-radius:8px;text-align:center;font-size:1.25rem;font-weight:600}.wager-result p{margin:0}.wager-result.won{background:#22c55e33;border:1px solid rgba(34,197,94,.4);color:#22c55e}.wager-result.lost{background:#ef444433;border:1px solid rgba(239,68,68,.4);color:#ef4444}.wager-result.draw{background:#eab30833;border:1px solid rgba(234,179,8,.4);color:#fbbf24}.gold-reward{margin:.5rem 0;padding:.75rem 1rem;border-radius:8px;text-align:center;font-size:1.1rem;font-weight:600}.gold-reward p{margin:0}.gold-reward.won{background:#eab30833;border:1px solid rgba(234,179,8,.4);color:#fbbf24}.gold-reward.loss{background:#6b728033;border:1px solid rgba(107,114,128,.4);color:#9ca3af}.preview-wager{margin-top:1rem;padding:1rem;background:#eab30826;border:1px solid rgba(234,179,8,.3);border-radius:8px;text-align:center}.wager-badge-large{display:block;font-size:1.5rem;font-weight:700;color:#fbbf24;margin-bottom:.25rem}.wager-pool-info{font-size:.9rem;color:#9ca3af}@media (max-width: 768px){.wager-input{padding:.75rem}.match-wager{padding:.4rem .75rem}.wager-result{padding:.75rem 1rem;font-size:1.1rem}.wager-badge-large{font-size:1.25rem}}.header-icon-btn{background:transparent;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem .5rem;border-radius:6px;transition:background .2s}.header-icon-btn:hover{background:#00aad426}.notification-bell{position:relative;display:inline-block}.bell-btn{background:transparent;border:none;font-size:1.25rem;cursor:pointer;padding:.25rem .5rem;border-radius:6px;position:relative;transition:background .2s}.bell-btn:hover{background:#00aad426}.bell-icon{display:inline-block}.bell-badge{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;padding:.1rem .35rem;border-radius:10px;min-width:16px;text-align:center}.notification-dropdown{position:absolute;top:100%;right:0;width:320px;max-height:400px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:8px;box-shadow:var(--shadow-heavy);z-index:1000;overflow:hidden}.notification-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-bottom:1px solid var(--border-subtle);background:var(--bg-card)}.notification-header span{font-weight:600;color:var(--text-primary)}.mark-all-read{background:transparent;border:none;color:var(--accent-primary);font-size:.8rem;cursor:pointer}.mark-all-read:hover{text-decoration:underline}.notification-list{max-height:340px;overflow-y:auto}.notification-loading,.notification-empty{padding:2rem;text-align:center;color:var(--text-muted)}.notification-item{padding:.75rem 1rem;border-bottom:1px solid var(--border-subtle);cursor:pointer;transition:background .2s}.notification-item:hover{background:#00aad40d}.notification-item.unread{background:#00aad41a;border-left:3px solid var(--accent-primary)}.notification-title{font-weight:600;color:var(--text-primary);font-size:.9rem;margin-bottom:.25rem}.notification-message{color:var(--text-secondary);font-size:.8rem;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notification-time{color:var(--text-muted);font-size:.75rem}.bug-report-modal{width:90%;max-width:500px;max-height:90vh;overflow-y:auto}.bug-report-modal .form-group{margin-bottom:1rem}.bug-report-modal label{display:block;margin-bottom:.35rem;color:var(--text-secondary);font-size:.9rem}.bug-report-modal input[type=text],.bug-report-modal textarea,.bug-report-modal select{width:100%;padding:.6rem .8rem;background:var(--input-bg);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary);font-size:.95rem}.bug-report-modal input:focus,.bug-report-modal textarea:focus,.bug-report-modal select:focus{outline:none;border-color:var(--accent-primary);box-shadow:0 0 0 2px var(--accent-subtle)}.btn-upload{padding:.5rem 1rem;background:var(--bg-card);border:1px dashed var(--border-color);border-radius:6px;color:var(--text-secondary);cursor:pointer;transition:all .2s}.btn-upload:hover{border-color:var(--accent-primary);color:var(--accent-primary)}.file-list{margin-top:.5rem}.file-item{display:flex;justify-content:space-between;align-items:center;padding:.4rem .6rem;background:var(--bg-card);border-radius:4px;margin-bottom:.25rem;font-size:.85rem}.file-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-item button{background:transparent;border:none;color:#ef4444;cursor:pointer;font-size:1rem;padding:0 .25rem}.form-error{background:#ef444426;border:1px solid rgba(239,68,68,.3);color:#ef4444;padding:.5rem .75rem;border-radius:6px;margin-bottom:1rem;font-size:.9rem}.my-tickets{padding:1rem;max-width:1200px;margin:0 auto}.tickets-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem}.tickets-header h2{margin:0;color:var(--text-primary)}.tickets-filters{margin-bottom:1rem}.tickets-filters select{padding:.5rem 1rem;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary)}.tickets-layout{display:grid;grid-template-columns:350px 1fr;gap:1.5rem;min-height:500px}@media (max-width: 900px){.tickets-layout{grid-template-columns:1fr}}.tickets-list{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:8px;overflow:hidden}.ticket-item{padding:1rem;border-bottom:1px solid var(--border-subtle);cursor:pointer;transition:background .2s}.ticket-item:hover{background:#00aad40d}.ticket-item.selected{background:#00aad41a;border-left:3px solid var(--accent-primary)}.ticket-status-badge{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;color:#fff;text-transform:uppercase;margin-bottom:.5rem}.ticket-title{font-weight:600;color:var(--text-primary);margin-bottom:.35rem}.ticket-meta{display:flex;justify-content:space-between;font-size:.8rem;color:var(--text-muted)}.ticket-category{text-transform:capitalize}.ticket-detail{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:8px;padding:1.5rem}.ticket-detail-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem}.ticket-detail-header h3{margin:0;color:var(--text-primary);flex:1}.ticket-info p{margin:.35rem 0;color:var(--text-secondary);font-size:.9rem}.ticket-description,.ticket-error,.ticket-attachments,.ticket-comments{margin-top:1.5rem}.ticket-description h4,.ticket-error h4,.ticket-attachments h4,.ticket-comments h4{margin:0 0 .5rem;color:var(--text-secondary);font-size:.9rem;text-transform:uppercase;letter-spacing:.05em}.ticket-description p{color:var(--text-primary);white-space:pre-wrap}.ticket-error pre{background:#ef44441a;border:1px solid rgba(239,68,68,.2);padding:.75rem;border-radius:6px;font-size:.85rem;overflow-x:auto;color:#fca5a5}.attachment-grid{display:flex;flex-wrap:wrap;gap:.5rem}.attachment-thumb{width:80px;height:80px;border-radius:6px;overflow:hidden;border:1px solid var(--border-subtle)}.attachment-thumb img{width:100%;height:100%;object-fit:cover}.no-comments{color:var(--text-muted);font-style:italic}.comment{background:var(--bg-card);border-radius:8px;padding:.75rem 1rem;margin-bottom:.75rem}.comment.admin-comment{border-left:3px solid var(--accent-primary)}.comment-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.35rem}.comment-author{font-weight:600;color:var(--text-primary);font-size:.9rem}.admin-tag{background:var(--accent-primary);color:var(--bg-darkest);font-size:.65rem;padding:.1rem .4rem;border-radius:4px;font-weight:600;text-transform:uppercase}.internal-tag{background:#f59e0b;color:var(--bg-darkest);font-size:.65rem;padding:.1rem .4rem;border-radius:4px;font-weight:600;text-transform:uppercase}.comment-date{color:var(--text-muted);font-size:.75rem;margin-left:auto}.comment-content{color:var(--text-secondary);font-size:.9rem;white-space:pre-wrap}.add-comment{margin-top:1rem}.add-comment textarea{width:100%;padding:.6rem;background:var(--input-bg);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary);resize:vertical}.add-comment button{margin-top:.5rem;padding:.5rem 1rem;background:var(--btn-primary-bg);border:none;border-radius:6px;color:#fff;cursor:pointer}.add-comment button:disabled{opacity:.5;cursor:not-allowed}.confirm-resolved{margin-top:1.5rem;padding:1rem;background:#8b5cf626;border:1px solid rgba(139,92,246,.3);border-radius:8px;text-align:center}.confirm-resolved p{color:#a78bfa;margin:0 0 .75rem}.btn-confirm{padding:.6rem 1.5rem;background:linear-gradient(135deg,#8b5cf6,#7c3aed);border:none;border-radius:6px;color:#fff;font-weight:600;cursor:pointer}.btn-confirm:hover{transform:translateY(-1px);box-shadow:0 4px 12px #8b5cf666}.admin-support{padding:1rem 0}.support-stats{display:flex;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap}.support-filters{display:flex;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.support-filters select{padding:.5rem 1rem;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary)}.status-badge{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:capitalize}.status-badge.status-new{background:#3b82f6;color:#fff}.status-badge.status-in_progress{background:#f59e0b;color:#fff}.status-badge.status-needs_testing{background:#8b5cf6;color:#fff}.status-badge.status-resolved{background:#10b981;color:#fff}.status-badge.status-closed{background:#6b7280;color:#fff}.priority-badge{display:inline-block;padding:.15rem .4rem;border-radius:4px;font-size:.7rem;font-weight:600;text-transform:uppercase}.priority-badge.priority-low{background:#6b728033;color:#9ca3af}.priority-badge.priority-medium{background:#3b82f633;color:#60a5fa}.priority-badge.priority-high{background:#f59e0b33;color:#fbbf24}.priority-badge.priority-critical{background:#ef444433;color:#f87171}.ticket-row.status-new{background:#3b82f60d}.ticket-row.status-in_progress{background:#f59e0b0d}.ticket-title-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-badge{display:inline-block;background:#ef4444;color:#fff;font-size:.65rem;padding:.1rem .4rem;border-radius:10px;margin-left:.35rem;min-width:16px;text-align:center}.ticket-modal{width:90%;max-width:700px;max-height:90vh;overflow-y:auto}.ticket-meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem;padding:1rem;background:var(--bg-card);border-radius:8px}.meta-item label{display:block;font-size:.75rem;color:var(--text-muted);text-transform:uppercase;margin-bottom:.25rem}.meta-item select{width:100%;padding:.4rem .6rem;background:var(--input-bg);border:1px solid var(--border-subtle);border-radius:4px;color:var(--text-primary);font-size:.9rem}.ticket-info-section,.ticket-description-section,.ticket-error-section,.ticket-attachments-section,.ticket-comments-section{margin-bottom:1.5rem}.ticket-info-section p{margin:.25rem 0;font-size:.9rem;color:var(--text-secondary)}.ticket-description-section p,.ticket-error-section pre{background:var(--bg-card);padding:1rem;border-radius:6px;margin:0}.ticket-description-section p{white-space:pre-wrap;color:var(--text-primary)}.comments-list{max-height:300px;overflow-y:auto;margin-bottom:1rem}.comment.internal{border-left:3px solid #f59e0b;background:#f59e0b1a}.add-comment-form textarea{width:100%;padding:.6rem;background:var(--input-bg);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary);resize:vertical;margin-bottom:.5rem}.comment-options{display:flex;justify-content:space-between;align-items:center}.comment-options label{display:flex;align-items:center;gap:.5rem;font-size:.85rem;color:var(--text-secondary);cursor:pointer}.comment-options button{padding:.5rem 1rem;background:var(--btn-primary-bg);border:none;border-radius:6px;color:#fff;cursor:pointer}.comment-options button:disabled{opacity:.5;cursor:not-allowed}.admin-pages h3{color:var(--accent-primary);margin-bottom:.75rem}.page-list{display:flex;flex-direction:column;gap:.5rem}.page-list-item{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px}.page-list-info{display:flex;flex-direction:column;gap:2px;min-width:0}.page-list-title{color:var(--text-primary);font-weight:600;font-size:.95rem}.page-list-path{color:var(--accent-primary);font-size:.8rem;font-family:Fira Code,monospace;opacity:.7}.page-list-meta{color:var(--text-secondary);font-size:.78rem}.page-editor-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.page-editor-header h3{margin:0}.page-editor-textarea{width:100%;padding:.75rem;background:var(--input-bg);border:1px solid var(--border-subtle);border-radius:6px;color:var(--text-primary);font-family:Fira Code,Consolas,monospace;font-size:.85rem;line-height:1.5;resize:vertical;min-height:400px;-moz-tab-size:2;tab-size:2}.page-editor-actions{display:flex;align-items:center;gap:1rem;margin-top:1rem}.page-editor-note{color:var(--text-secondary);font-size:.8rem;font-style:italic}.mode-btn.mode-tickets{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.mode-btn.mode-tickets:hover{background:linear-gradient(135deg,#a78bfa,#8b5cf6)}.game-type-selector{max-width:600px;margin:2rem auto;padding:2rem}.game-type-header{display:flex;align-items:center;gap:1rem;margin-bottom:2rem}.game-type-header h2{margin:0;color:var(--accent-primary)}.game-type-options{display:flex;flex-direction:column;gap:1rem}.game-type-btn{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;border:2px solid var(--border-subtle);border-radius:12px;background:var(--bg-card);cursor:pointer;transition:all .2s;text-align:left}.game-type-btn:hover:not(:disabled){border-color:var(--accent-primary);transform:translateY(-2px);box-shadow:var(--glow-teal)}.game-type-btn:disabled{opacity:.5;cursor:not-allowed}.game-type-btn.tte{border-color:#3b82f64d}.game-type-btn.tte:hover{border-color:#3b82f6;box-shadow:0 0 20px #3b82f64d}.game-type-btn.ott{border-color:#7c3aed4d}.game-type-btn.ott:hover{border-color:#7c3aed;box-shadow:0 0 20px #7c3aed4d}.game-type-icon{font-size:2rem;font-weight:700;color:var(--accent-primary);min-width:60px;text-align:center}.game-type-info{display:flex;flex-direction:column;gap:.25rem}.game-type-name{font-size:1.2rem;font-weight:600;color:var(--text-primary)}.game-type-desc{font-size:.9rem;color:var(--text-secondary)}.mode-options.game-type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.mode-options.game-type-grid .mode-btn{min-width:0;padding:24px 16px}.mode-btn.game-type-tte{background:linear-gradient(135deg,#1e40af,#3b82f6)}.mode-btn.game-type-tte:hover{background:linear-gradient(135deg,#2563eb,#60a5fa)}.mode-btn.game-type-ott{background:linear-gradient(135deg,#5b21b6,#7c3aed)}.mode-btn.game-type-ott:hover{background:linear-gradient(135deg,#6d28d9,#8b5cf6)}.selected-game-type{display:flex;align-items:center;justify-content:space-between;padding:1rem;margin-bottom:1.5rem;background:var(--bg-card);border-radius:8px;border:1px solid var(--border-subtle)}.back-link{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:.95rem;padding:.5rem}.back-link:hover{color:var(--accent-primary)}.game-type-badge{display:flex;align-items:center;gap:.75rem;padding:.5rem 1rem;background:var(--accent-subtle);border-radius:6px;border:1px solid var(--accent-primary)}.game-type-badge-icon{font-size:1.1rem;font-weight:700;color:var(--accent-primary)}.game-type-badge-name{color:var(--text-primary);font-weight:500}.board.ott-board{display:grid;grid-template-columns:repeat(5,65px);grid-template-rows:repeat(5,91px);gap:4px;background:#00141ecc;border:2px solid var(--border-color);border-radius:8px;padding:6px}.board.ott-board .cell{position:relative;background:#0a141ee6;border:1px solid rgba(0,170,212,.2);border-radius:4px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center}.board.ott-board .cell:hover:not(.occupied):not(.blocked){background:#00aad41a;border-color:var(--accent-primary)}.board.ott-board .cell.blocked{background:#1a1a2a;cursor:not-allowed;border-color:#6464784d}.board.ott-board .cell.blocked:hover{background:#1a1a2a;border-color:#6464784d}.blocked-indicator{font-size:1.5rem;font-weight:700;color:#64647880;-webkit-user-select:none;user-select:none}.board.ott-board .cardTT{width:100%;height:100%;font-size:.7rem}.board.ott-board .cardTT .num{font-size:.55rem;width:14px;height:14px}.ott-hand{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:10px;padding:1rem;min-width:200px}.ott-hand.your-hand{border-color:var(--player-blue)}.ott-hand.opponent-hand{border-color:var(--player-red)}.ott-hand-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--border-subtle)}.ott-hand-label{font-weight:600;color:var(--text-primary)}.ott-deck-counter{font-size:.85rem;color:var(--accent-primary);font-weight:500}.ott-visible-cards{display:flex;gap:1rem;justify-content:center}.ott-card-slot{display:flex;flex-direction:column;align-items:center;gap:.5rem}.ott-card-slot.selected .ott-card-wrapper{transform:scale(1.05);box-shadow:0 0 15px var(--accent-glow)}.ott-card-slot.empty{opacity:.5}.ott-card-wrapper{cursor:pointer;transition:transform .2s,box-shadow .2s;border-radius:6px}.ott-card-wrapper:hover{transform:translateY(-4px)}.ott-empty-slot{width:70px;height:90px;display:flex;align-items:center;justify-content:center;background:#0000004d;border:2px dashed var(--border-subtle);border-radius:6px;color:var(--text-muted);font-size:1.5rem}.ott-discard-btn{padding:.25rem .75rem;font-size:.75rem;background:#dc262633;border:1px solid rgba(220,38,38,.4);border-radius:4px;color:#fca5a5;cursor:pointer;transition:all .2s}.ott-discard-btn:hover{background:#dc262666;border-color:#dc262699}.ott-hand-stats{margin-top:.75rem;padding-top:.5rem;border-top:1px solid var(--border-subtle);text-align:center}.ott-played-count{font-size:.8rem;color:var(--text-muted)}@media (max-width: 480px){.board.ott-board .cardTT .num{font-size:.5rem;width:12px;height:12px}.ott-visible-cards{flex-direction:column;align-items:center}}.team-1,.team-blue{--team-color: #3b82f6;--team-color-light: #60a5fa;--team-bg: rgba(59, 130, 246, .1);--team-border: rgba(59, 130, 246, .4)}.team-2,.team-red{--team-color: #ef4444;--team-color-light: #f87171;--team-bg: rgba(239, 68, 68, .1);--team-border: rgba(239, 68, 68, .4)}.tott-lobby{max-width:800px;margin:0 auto;padding:2rem}.tott-lobby-header{text-align:center;margin-bottom:2rem}.tott-lobby-header h2{margin:0 0 .5rem;font-size:1.5rem;color:var(--text-primary)}.tott-game-type{color:var(--accent-primary);font-size:.95rem}.tott-teams-container{display:flex;align-items:stretch;gap:2rem;justify-content:center}.tott-team{flex:1;max-width:320px;background:var(--bg-card);border-radius:12px;padding:1.5rem;border:2px solid var(--team-border)}.tott-team.team-1{background:linear-gradient(135deg,#3b82f61a,#3b82f60d);border-color:#3b82f666}.tott-team.team-2{background:linear-gradient(135deg,#ef44441a,#ef44440d);border-color:#ef444466}.tott-team-title{text-align:center;margin:0 0 1rem;font-size:1.2rem;font-weight:600}.tott-team-title.team-blue{color:#60a5fa}.tott-team-title.team-red{color:#f87171}.tott-team-slots{display:flex;flex-direction:column;gap:1rem}.tott-vs{display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700;color:var(--text-muted);padding:0 1rem}.tott-player-panel{background:#0000004d;border-radius:8px;padding:1rem;border:1px solid var(--border-subtle);transition:all .2s;min-height:80px;overflow:hidden}.tott-player-panel.team-1{border-left:3px solid #3b82f6}.tott-player-panel.team-2{border-left:3px solid #ef4444}.tott-player-panel.ready{border-color:#10b981;background:#10b9811a}.tott-player-panel.empty{background:#0003;border-style:dashed}.tott-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.tott-team-badge{font-size:.7rem;font-weight:600;padding:.2rem .5rem;border-radius:4px;text-transform:uppercase}.tott-team-badge.blue{background:#3b82f633;color:#60a5fa}.tott-team-badge.red{background:#ef444433;color:#f87171}.tott-slot-label{font-size:.75rem;color:var(--text-muted)}.tott-player-info{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.tott-player-name{font-weight:600;color:var(--text-primary)}.tott-player-elo{font-size:.8rem;color:var(--text-secondary)}.tott-ready-badge{font-size:.7rem;padding:.15rem .4rem;background:#10b98133;color:#10b981;border-radius:3px}.tott-you-badge{font-size:.7rem;padding:.15rem .4rem;background:#00aad433;color:var(--accent-primary);border-radius:3px}.tott-empty-slot{text-align:center;padding:.5rem}.tott-join-btn{padding:.5rem 1rem;background:linear-gradient(135deg,var(--accent-primary) 0%,var(--accent-secondary) 100%);border:none;border-radius:6px;color:#fff;font-weight:600;cursor:pointer;transition:all .2s}.tott-join-btn:hover{transform:scale(1.05);box-shadow:0 4px 12px #00aad44d}.tott-waiting{color:var(--text-muted);font-size:.85rem;font-style:italic}.tott-player-panel.ai-player{border-style:dashed;background:#64748b26}.tott-player-panel.ai-player.team-1{border-color:#3b82f699}.tott-player-panel.ai-player.team-2{border-color:#ef444499}.tott-ai-badge{font-size:.65rem;font-weight:700;padding:.15rem .4rem;background:#64748b4d;color:#94a3b8;border-radius:3px;text-transform:uppercase;letter-spacing:.5px}.tott-fill-options{display:flex;flex-direction:column;align-items:center;gap:.5rem}.tott-fill-ai-btn{padding:.4rem .8rem;background:#64748b4d;border:1px dashed rgba(100,116,139,.5);border-radius:4px;color:#94a3b8;font-size:.75rem;font-weight:600;cursor:pointer;transition:all .2s}.tott-fill-ai-btn:hover{background:#64748b66;border-color:#64748bcc;color:#cbd5e1}.tott-remove-ai-btn{padding:.15rem .4rem;background:#dc262633;border:none;border-radius:3px;color:#f87171;font-size:.7rem;font-weight:700;cursor:pointer;transition:all .2s;margin-left:auto}.tott-remove-ai-btn:hover{background:#dc262666;color:#fca5a5}.tott-lobby-actions{display:flex;justify-content:center;gap:1rem;margin-top:2rem}.tott-leave-btn{padding:.75rem 1.5rem;background:#dc262633;border:1px solid rgba(220,38,38,.4);border-radius:8px;color:#fca5a5;font-weight:600;cursor:pointer;transition:all .2s}.tott-leave-btn:hover{background:#dc26264d;border-color:#dc262699}.tott-hand{background:var(--bg-card);border-radius:10px;padding:1rem;min-width:180px;border:2px solid var(--border-subtle)}.tott-hand.team-1{border-color:#3b82f666}.tott-hand.team-2{border-color:#ef444466}.tott-hand-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--border-subtle)}.tott-hand-label{font-weight:600;padding:.2rem .5rem;border-radius:4px}.tott-hand-label.team-blue{background:#3b82f633;color:#60a5fa}.tott-hand-label.team-red{background:#ef444433;color:#f87171}.tott-deck-counter{font-size:.85rem;color:var(--accent-primary);font-weight:500}.tott-visible-cards{display:flex;gap:.75rem;justify-content:center}.tott-card-slot{display:flex;flex-direction:column;align-items:center;gap:.4rem}.tott-card-slot.selected .tott-card-wrapper{transform:scale(1.05);box-shadow:0 0 15px var(--accent-glow)}.tott-card-slot.empty{opacity:.5}.tott-card-wrapper{cursor:pointer;transition:transform .2s,box-shadow .2s;border-radius:6px}.tott-card-wrapper:hover{transform:translateY(-3px)}.tott-empty-slot{width:60px;height:80px;display:flex;align-items:center;justify-content:center;background:#0000004d;border:2px dashed var(--border-subtle);border-radius:6px;color:var(--text-muted);font-size:1.2rem}.tott-discard-btn{padding:.2rem .5rem;font-size:.65rem;background:#dc262633;border:1px solid rgba(220,38,38,.4);border-radius:4px;color:#fca5a5;cursor:pointer;transition:all .2s}.tott-discard-btn:hover{background:#dc262666}.tott-hand-stats{margin-top:.5rem;text-align:center}.tott-played-count{font-size:.75rem;color:var(--text-muted)}.tott-game-info{background:var(--bg-card);border-radius:10px;padding:1rem;margin-bottom:1rem}.tott-scores{display:flex;justify-content:center;gap:2rem;margin-bottom:1rem}.tott-score{text-align:center;padding:.75rem 1.5rem;border-radius:8px}.tott-score.team-1{background:#3b82f626;border:1px solid rgba(59,130,246,.3)}.tott-score.team-2{background:#ef444426;border:1px solid rgba(239,68,68,.3)}.tott-score-label{display:block;font-size:.75rem;color:var(--text-muted);margin-bottom:.25rem}.tott-score-value{font-size:1.5rem;font-weight:700}.tott-score.team-1 .tott-score-value{color:#60a5fa}.tott-score.team-2 .tott-score-value{color:#f87171}.tott-players-info{display:flex;justify-content:center;gap:.5rem;flex-wrap:wrap}.tott-player-badge{padding:.4rem .75rem;border-radius:6px;font-size:.8rem;font-weight:500;transition:all .2s}.tott-player-badge.team-1{background:#3b82f626;border:1px solid rgba(59,130,246,.3);color:#93c5fd}.tott-player-badge.team-2{background:#ef444426;border:1px solid rgba(239,68,68,.3);color:#fca5a5}.tott-player-badge.current-turn{transform:scale(1.05);box-shadow:0 0 10px #00aad466;border-color:var(--accent-primary)}.tott-player-badge.is-you{font-weight:700}.tott-badge-name{margin-right:.25rem}.tott-turn-indicator{display:inline-block;padding:.1rem .3rem;background:var(--accent-primary);color:#000;font-size:.6rem;font-weight:700;border-radius:3px;margin-left:.25rem;text-transform:uppercase}.game-type-tag{display:inline-block;padding:.15rem .4rem;font-size:.65rem;font-weight:600;border-radius:3px;margin-left:.5rem;text-transform:uppercase}.game-type-tag.tott{background:#8b5cf633;color:#a78bfa;border:1px solid rgba(139,92,246,.4)}.game-type-tag.ott{background:#22c55e33;color:#4ade80;border:1px solid rgba(34,197,94,.4)}.tott-player-count{color:var(--text-muted);font-size:.85em}.game-card.tott-game{border-left:3px solid #8b5cf6}.mode-btn.game-type-tott{background:linear-gradient(135deg,#8b5cf633,#ec489933);border-color:#8b5cf666}.mode-btn.game-type-tott:hover{background:linear-gradient(135deg,#8b5cf64d,#ec48994d);border-color:#8b5cf699}.mode-btn.game-type-ttw{background:linear-gradient(135deg,#ef444433,#f9731633);border-color:#ef444466}.mode-btn.game-type-ttw:hover{background:linear-gradient(135deg,#ef44444d,#f973164d);border-color:#ef444499}.mode-note{color:var(--text-muted);font-size:.85rem;font-style:italic;text-align:center;margin-top:.5rem}.game-type-btn.tott{background:linear-gradient(135deg,#8b5cf633,#ec489933);border-color:#8b5cf666}.game-type-btn.tott:hover{background:linear-gradient(135deg,#8b5cf64d,#ec48994d);border-color:#8b5cf699;transform:translateY(-2px)}.game-type-btn.ttw{background:linear-gradient(135deg,#ef444433,#f9731633);border-color:#ef444466}.game-type-btn.ttw:hover{background:linear-gradient(135deg,#ef44444d,#f973164d);border-color:#ef444499;transform:translateY(-2px)}.game-type-tag.tte{background:#3b82f633;color:#60a5fa;border:1px solid rgba(59,130,246,.4)}.game-type-tag.ttw{background:#ef444433;color:#f87171;border:1px solid rgba(239,68,68,.4)}.game-type-tag.ttm{background:#eab30833;color:#facc15;border:1px solid rgba(234,179,8,.4)}.game-type-tag.chin{background:#f9731633;color:#fb923c;border:1px solid rgba(249,115,22,.4)}.game-type-tag.sb{background:#06b6d433;color:#22d3ee;border:1px solid rgba(6,182,212,.4)}@media (max-width: 768px){.tott-teams-container{flex-direction:column;gap:1rem}.tott-team{max-width:100%}.tott-vs{padding:.5rem}.tott-players-info{gap:.25rem}.tott-player-badge{padding:.25rem .5rem;font-size:.7rem}}@media (max-width: 480px){.tott-lobby,.tott-team{padding:1rem}.tott-hand{min-width:150px;padding:.75rem}.tott-visible-cards{flex-direction:column;align-items:center}}.ttw-game-container{display:flex;flex-direction:column;gap:1.5rem;padding:1rem;max-width:1200px;margin:0 auto;min-height:calc(100vh - 80px)}.ttw-arena{display:flex;justify-content:space-between;align-items:stretch;gap:2rem;background:linear-gradient(135deg,#0006,#14142866);border-radius:12px;padding:1.5rem;border:1px solid rgba(255,255,255,.1)}.ttw-player{flex:1;display:flex;flex-direction:column;align-items:center;gap:1rem;padding:1rem;border-radius:8px;background:#0000004d}.ttw-player.offense{border:2px solid rgba(255,100,100,.5);box-shadow:0 0 20px #ff646433}.ttw-player.defense{border:2px solid rgba(100,150,255,.5);box-shadow:0 0 20px #6496ff33}.ttw-avatar{display:flex;flex-direction:column;align-items:center;gap:.5rem}.ttw-player-name{font-weight:600;font-size:1.1rem;color:var(--text-primary)}.ttw-role{font-size:.85rem;font-weight:700;padding:.25rem .75rem;border-radius:4px;text-transform:uppercase}.ttw-role.offense{background:#ff64644d;color:#ff6b6b}.ttw-role.defense{background:#6496ff4d;color:#6b9fff}.ttw-hp-container{width:100%;height:24px;background:#00000080;border-radius:12px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.1)}.ttw-hp-bar{height:100%;transition:width .5s ease,background-color .5s ease;border-radius:12px}.ttw-hp-text{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:.75rem;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,1),0 0 6px rgba(0,0,0,.8);z-index:10}.ttw-submitted-indicator{font-size:.85rem;color:#4ade80;font-weight:600}.ttw-battle-center{flex:1.5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-height:200px}.ttw-round-info{display:flex;flex-direction:column;align-items:center;gap:.5rem}.ttw-round{font-size:1.5rem;font-weight:700;color:var(--text-primary)}.ttw-element-field{font-size:.9rem;color:#a78bfa;padding:.25rem .75rem;background:#8b5cf633;border-radius:4px}.ttw-chain{font-size:1rem;font-weight:700;color:#fbbf24;animation:chainPulse .5s ease infinite alternate}@keyframes chainPulse{0%{transform:scale(1)}to{transform:scale(1.1)}}.ttw-battle-result{display:flex;flex-direction:column;align-items:center;gap:1rem;animation:battleAppear .3s ease-out}@keyframes battleAppear{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.ttw-cards-clash{display:flex;align-items:center;gap:1rem}.ttw-battle-card{padding:.75rem 1rem;background:#00000080;border-radius:8px;text-align:center;border:2px solid rgba(255,255,255,.2)}.ttw-battle-card.attacking{border-color:#ff6b6b;box-shadow:0 0 15px #ff646466}.ttw-battle-card.blocked{border-color:#4ade80}.ttw-battle-card.defending{border-color:#6b9fff;box-shadow:0 0 15px #6496ff66}.ttw-battle-card.damaged{border-color:#f87171;opacity:.7}.ttw-card-name{display:block;font-weight:600;font-size:.9rem;color:var(--text-primary);margin-bottom:.25rem}.ttw-card-stat{font-size:.8rem;color:var(--text-muted)}.ttw-vs{font-size:1.5rem;font-weight:700;color:var(--text-muted)}.ttw-damage{font-size:1.5rem;font-weight:700;color:#f87171;text-shadow:0 0 10px rgba(248,113,113,.5)}.ttw-damage.crit{color:#fbbf24;animation:critShake .3s ease}@keyframes critShake{0%,to{transform:translate(0)}25%{transform:translate(-5px)}75%{transform:translate(5px)}}.ttw-crit-label{display:block;font-size:1rem;color:#fbbf24;margin-bottom:.25rem}.ttw-element-mod{font-size:.85rem;color:#a78bfa;margin-left:.5rem}.ttw-blocked{font-size:1.5rem;font-weight:700;color:#4ade80;text-shadow:0 0 10px rgba(74,222,128,.5)}.ttw-waiting{text-align:center;color:var(--text-muted);font-size:1.1rem}.ttw-hand-section{background:#0000004d;border-radius:12px;padding:1.5rem;border:1px solid rgba(255,255,255,.1)}.ttw-hand-section h3{text-align:center;margin-bottom:1rem;color:var(--text-primary)}.ttw-hand{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap}.ttw-card{width:100px;aspect-ratio:5 / 7;display:grid;grid-template-areas:". top ." "left . right" ". bottom .";grid-template-columns:1fr 1fr 1fr;grid-template-rows:1fr 1fr 1fr;padding:6px 6px 22px;border-radius:8px;background:linear-gradient(135deg,#1a1a2e,#16213e);border:2px solid rgba(255,255,255,.3);cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.ttw-card.player-1{border-color:#3b82f6;background:linear-gradient(135deg,#1e3a5f,#1e40af)}.ttw-card.player-1 .card-frame{box-shadow:inset 0 0 0 2px #3b82f666}.ttw-card.player-2{border-color:#ef4444;background:linear-gradient(135deg,#5f1e1e,#991b1b)}.ttw-card.player-2 .card-frame{box-shadow:inset 0 0 0 2px #ef444466}.ttw-card:hover:not(.disabled){transform:translateY(-5px);box-shadow:0 8px 25px #00aad44d}.ttw-card.selected{border-color:#4ade80;box-shadow:0 0 20px #4ade8080;transform:translateY(-10px)}.ttw-card.selectable{animation:selectablePulse .6s ease-in-out}.ttw-card.disabled{opacity:.5;cursor:not-allowed}.ttw-card .card-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}.ttw-card .card-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:6px;pointer-events:none;z-index:1;box-shadow:inset 0 0 0 2px #fff3}.ttw-card .card-value{display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:700;color:#f8fafc;background:#000000bf;border-radius:50%;width:22px;height:22px;text-shadow:0 1px 2px rgba(0,0,0,.9);z-index:2}.ttw-card .card-value.top{grid-area:top;justify-self:center}.ttw-card .card-value.bottom{grid-area:bottom;justify-self:center}.ttw-card .card-value.left{grid-area:left;align-self:center}.ttw-card .card-value.right{grid-area:right;align-self:center;justify-self:end}.ttw-card-stats{position:absolute;bottom:4px;left:0;right:0;display:flex;justify-content:space-around;font-size:.6rem;z-index:2}.ttw-atk,.ttw-def{padding:2px 6px;border-radius:4px;background:#000000b3;font-weight:600}.ttw-atk{color:#f87171}.ttw-def{color:#60a5fa}.ttw-card-element{position:absolute;top:4px;right:4px;font-size:14px;line-height:1;padding:3px;background:#000000b3;border-radius:4px;cursor:help;z-index:2;filter:drop-shadow(0 1px 2px rgba(0,0,0,.5))}.ttw-submit-btn{display:block;margin:1rem auto 0;padding:.75rem 2rem;font-size:1rem;font-weight:600;background:linear-gradient(135deg,#4ade80,#22c55e);border:none;border-radius:8px;color:#000;cursor:pointer;transition:all .2s ease}.ttw-submit-btn:hover{transform:scale(1.05);box-shadow:0 0 20px #4ade8066}.ttw-history{background:#0000004d;border-radius:12px;padding:1rem;border:1px solid rgba(255,255,255,.1);max-height:150px;overflow-y:auto}.ttw-history h4{margin-bottom:.5rem;color:var(--text-muted);font-size:.9rem}.ttw-history-log{display:flex;flex-direction:column;gap:.25rem}.ttw-history-entry{font-size:.8rem;color:var(--text-muted);padding:.25rem 0;border-bottom:1px solid rgba(255,255,255,.05)}.ttw-game-over-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:100;animation:fadeIn .3s ease}.ttw-game-over-content{text-align:center;background:linear-gradient(135deg,#1e1e32f2,#141428f2);padding:3rem;border-radius:16px;border:2px solid rgba(255,255,255,.2)}.ttw-game-over-content h2{font-size:3rem;margin-bottom:1rem;background:linear-gradient(135deg,#fbbf24,#f59e0b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.ttw-game-over-content p{font-size:1.2rem;color:var(--text-muted);margin-bottom:1.5rem}.ttw-game-over-content button{padding:.75rem 2rem;font-size:1rem;font-weight:600;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:8px;color:#fff;cursor:pointer;transition:all .2s ease}.ttw-game-over-content button:hover{transform:scale(1.05);box-shadow:0 0 20px #8b5cf666}.ttw-game-container.screen-shake{animation:screenShake .5s ease}@keyframes screenShake{0%,to{transform:translate(0)}10%{transform:translate(-10px) translateY(-5px)}20%{transform:translate(10px) translateY(5px)}30%{transform:translate(-10px) translateY(-5px)}40%{transform:translate(10px) translateY(5px)}50%{transform:translate(-5px) translateY(-2px)}60%{transform:translate(5px) translateY(2px)}70%{transform:translate(-3px)}80%{transform:translate(3px)}90%{transform:translate(-1px)}}.ttw-bg-particles{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:0}.ttw-bg-particle{position:absolute;left:var(--x);top:var(--y);width:4px;height:4px;background:#8b5cf666;border-radius:50%;animation:floatParticle var(--duration) ease-in-out infinite;animation-delay:var(--delay)}@keyframes floatParticle{0%,to{transform:translateY(0) scale(1);opacity:.3}50%{transform:translateY(-30px) scale(1.5);opacity:.7}}.ttw-hp-container{position:relative;overflow:hidden}.ttw-hp-bar-bg{position:absolute;top:0;right:0;bottom:0;left:0;background:#00000080;border-radius:inherit}.ttw-hp-bar{position:relative;transition:width .5s ease,background-color .3s ease;z-index:1}.ttw-hp-glow{position:absolute;top:0;left:0;height:100%;filter:blur(8px);opacity:.5;z-index:0;transition:width .5s ease}.ttw-hp-container.hp-flash{animation:hpFlash .5s ease}@keyframes hpFlash{0%,to{filter:brightness(1)}25%{filter:brightness(2) hue-rotate(-20deg)}50%{filter:brightness(1.5)}75%{filter:brightness(2) hue-rotate(-20deg)}}.ttw-hp-container.critical .ttw-hp-bar{animation:criticalPulse .8s ease infinite}@keyframes criticalPulse{0%,to{opacity:1}50%{opacity:.5}}.ttw-chain{animation:chainPulse .5s ease infinite}.ttw-chain.chain-2{font-size:1.1em;color:#fbbf24}.ttw-chain.chain-3{font-size:1.2em;color:#f97316;text-shadow:0 0 10px rgba(249,115,22,.5)}.ttw-chain.chain-4{font-size:1.3em;color:#ef4444;text-shadow:0 0 15px rgba(239,68,68,.6)}.ttw-chain.chain-5{font-size:1.4em;color:#dc2626;text-shadow:0 0 20px rgba(220,38,38,.8);animation:chainMax .3s ease infinite}@keyframes chainPulse{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}@keyframes chainMax{0%,to{transform:scale(1) rotate(-2deg)}50%{transform:scale(1.2) rotate(2deg)}}.ttw-clash-arena{position:relative;width:100%;height:220px;display:flex;align-items:center;justify-content:center;perspective:1200px;overflow:visible}.ttw-clash-flash{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:1000;animation:clashFlash .15s ease-out}.ttw-clash-flash.hit{background:radial-gradient(circle at center,rgba(255,100,100,.6),transparent 70%)}.ttw-clash-flash.blocked{background:radial-gradient(circle at center,rgba(100,150,255,.6),transparent 70%)}.ttw-clash-flash.crit{background:radial-gradient(circle at center,rgba(255,220,100,.8),rgba(255,150,50,.4) 50%,transparent 70%)}@keyframes clashFlash{0%{opacity:1}to{opacity:0}}.ttw-flying-card{position:absolute;width:130px;height:182px;z-index:10}.ttw-flying-card.attacker{left:10%;transform:rotateY(15deg) scale(.9);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.ttw-flying-card.defender{right:10%;transform:rotateY(-15deg) scale(.9);transition:all .4s cubic-bezier(.25,.46,.45,.94)}.ttw-flying-card.attacker.windup{left:-5%;transform:rotateY(25deg) rotate(-5deg) scale(1.1);transition:all .35s cubic-bezier(.34,1.56,.64,1)}.ttw-flying-card.defender.windup{right:-5%;transform:rotateY(-25deg) rotate(5deg) scale(1.1);transition:all .35s cubic-bezier(.34,1.56,.64,1)}.ttw-flying-card.attacker.slam{left:calc(50% - 75px);transform:rotateY(5deg) rotate(-2deg) scale(1.15);transition:all .18s cubic-bezier(.5,0,.75,0)}.ttw-flying-card.defender.slam{right:calc(50% - 75px);transform:rotateY(-5deg) rotate(2deg) scale(1.15);transition:all .18s cubic-bezier(.5,0,.75,0)}.ttw-flying-card.attacker.impact{left:calc(50% - 70px);transform:rotateY(0) rotate(-1deg) scale(1.2);transition:all .1s ease-out;filter:brightness(1.5)}.ttw-flying-card.defender.impact{right:calc(50% - 70px);transform:rotateY(0) rotate(1deg) scale(1.2);transition:all .1s ease-out;filter:brightness(1.5)}.ttw-flying-card.attacker.explode,.ttw-flying-card.attacker.result{left:calc(50% - 85px);transform:rotateY(8deg) scale(1.05);transition:all .3s cubic-bezier(.34,1.56,.64,1);filter:brightness(1)}.ttw-flying-card.defender.explode,.ttw-flying-card.defender.result{right:calc(50% - 85px);transform:rotateY(-8deg) scale(1.05);transition:all .3s cubic-bezier(.34,1.56,.64,1);filter:brightness(1)}.ttw-card-aura{position:absolute;top:-15px;right:-15px;bottom:-15px;left:-15px;border-radius:15px;opacity:0;transition:opacity .2s ease;pointer-events:none}.ttw-card-aura.attacker{background:radial-gradient(ellipse,rgba(255,80,80,.6),transparent 70%);box-shadow:0 0 30px #ff505080}.ttw-card-aura.defender{background:radial-gradient(ellipse,rgba(80,150,255,.6),transparent 70%);box-shadow:0 0 30px #5096ff80}.ttw-flying-card.windup .ttw-card-aura,.ttw-flying-card.slam .ttw-card-aura{opacity:1;animation:auraFlicker .1s ease infinite}@keyframes auraFlicker{0%,to{opacity:.8}50%{opacity:1}}.ttw-speed-lines{position:absolute;top:50%;width:150px;height:100px;transform:translateY(-50%);overflow:hidden;opacity:0;pointer-events:none}.ttw-speed-lines.left{right:100%}.ttw-speed-lines.right{left:100%}.ttw-flying-card.slam .ttw-speed-lines{opacity:1}.ttw-speed-line{position:absolute;top:calc(50% + var(--offset));width:100%;height:3px;background:linear-gradient(to left,rgba(255,255,255,.9),transparent);animation:speedLineZoom .2s ease-out forwards;animation-delay:var(--delay)}.ttw-speed-lines.right .ttw-speed-line{background:linear-gradient(to right,rgba(255,255,255,.9),transparent)}@keyframes speedLineZoom{0%{transform:scaleX(0);opacity:1}to{transform:scaleX(1);opacity:0}}.ttw-card-visual{width:100%;height:100%;position:relative;border-radius:10px;overflow:hidden;box-shadow:0 10px 40px #00000080;border:3px solid rgba(255,255,255,.3)}.ttw-flying-card.attacker .ttw-card-visual{border-color:#ef4444;box-shadow:0 10px 40px #ef444466}.ttw-flying-card.defender .ttw-card-visual{border-color:#3b82f6;box-shadow:0 10px 40px #3b82f666}.clash-card-art{width:100%;height:100%;object-fit:cover}.clash-card-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to top,rgba(0,0,0,.9) 0%,rgba(0,0,0,.3) 50%,transparent 100%);display:flex;flex-direction:column;justify-content:flex-end;padding:10px}.clash-card-name{font-weight:700;font-size:.75rem;color:#fff;text-shadow:0 2px 4px rgba(0,0,0,.8);margin-bottom:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.clash-card-value{font-weight:900;font-size:1.1rem;padding:4px 8px;border-radius:6px;display:inline-block;width:fit-content}.clash-card-value.atk{background:linear-gradient(135deg,#dc2626,#991b1b);color:#fff;box-shadow:0 4px 15px #dc262680}.clash-card-value.def{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;box-shadow:0 4px 15px #2563eb80}.ttw-slash-effect{position:absolute;top:50%;left:100%;width:100px;height:4px;background:linear-gradient(to right,#ef4444,transparent);transform:translateY(-50%);opacity:0}.ttw-flying-card.attacker.clash .ttw-slash-effect,.ttw-flying-card.attacker.impact .ttw-slash-effect{opacity:1;animation:slashExtend .3s ease forwards}@keyframes slashExtend{0%{width:0}to{width:80px}}.ttw-shield-effect{position:absolute;top:50%;right:100%;width:40px;height:60px;background:radial-gradient(ellipse,rgba(59,130,246,.6),transparent);transform:translateY(-50%);opacity:0;border-radius:50%}.ttw-flying-card.defender.clash .ttw-shield-effect,.ttw-flying-card.defender.impact .ttw-shield-effect{opacity:1;animation:shieldPulse .5s ease}@keyframes shieldPulse{0%{transform:translateY(-50%) scale(.5);opacity:0}50%{transform:translateY(-50%) scale(1.2);opacity:1}to{transform:translateY(-50%) scale(1);opacity:.7}}.ttw-impact-zone{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:150px;height:150px;pointer-events:none;z-index:20}.ttw-center-burst{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:30px;height:30px;background:radial-gradient(circle,#fff,rgba(255,220,100,.8),transparent);border-radius:50%;animation:centerBurst .2s ease-out forwards}@keyframes centerBurst{0%{transform:translate(-50%,-50%) scale(.5);opacity:1}50%{transform:translate(-50%,-50%) scale(3);opacity:1}to{transform:translate(-50%,-50%) scale(5);opacity:0}}.ttw-particle{position:absolute;top:50%;left:50%;width:8px;height:8px;background:#fbbf24;border-radius:50%;box-shadow:0 0 6px currentColor}.ttw-particle.large{width:12px;height:12px}.ttw-particle:nth-child(1){animation:particleExplode1 .5s ease-out forwards}.ttw-particle:nth-child(2){animation:particleExplode2 .5s ease-out forwards}.ttw-particle:nth-child(3){animation:particleExplode3 .5s ease-out forwards}.ttw-particle:nth-child(4){animation:particleExplode4 .5s ease-out forwards}.ttw-particle:nth-child(5){animation:particleExplode5 .5s ease-out forwards}.ttw-particle:nth-child(6){animation:particleExplode6 .5s ease-out forwards}.ttw-particle:nth-child(7){animation:particleExplode7 .5s ease-out forwards}.ttw-particle:nth-child(8){animation:particleExplode8 .5s ease-out forwards}.ttw-particle:nth-child(9){animation:particleExplode9 .5s ease-out forwards}.ttw-particle:nth-child(10){animation:particleExplode10 .5s ease-out forwards}.ttw-particle:nth-child(11){animation:particleExplode11 .4s ease-out forwards}.ttw-particle:nth-child(12){animation:particleExplode12 .4s ease-out forwards}.ttw-particle:nth-child(13){animation:particleExplode13 .4s ease-out forwards}.ttw-particle:nth-child(14){animation:particleExplode14 .4s ease-out forwards}.ttw-particle:nth-child(15){animation:particleExplode15 .4s ease-out forwards}.ttw-particle:nth-child(16){animation:particleExplode16 .4s ease-out forwards}.ttw-particle:nth-child(17){animation:particleExplode17 .4s ease-out forwards}.ttw-particle:nth-child(18){animation:particleExplode18 .4s ease-out forwards}.ttw-particle:nth-child(19){animation:particleExplode19 .4s ease-out forwards}.ttw-particle:nth-child(20){animation:particleExplode20 .4s ease-out forwards}@keyframes particleExplode1{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(80px) scale(0);opacity:0}}@keyframes particleExplode2{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(70px,35px) scale(0);opacity:0}}@keyframes particleExplode3{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(40px,70px) scale(0);opacity:0}}@keyframes particleExplode4{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translateY(80px) scale(0);opacity:0}}@keyframes particleExplode5{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(-40px,70px) scale(0);opacity:0}}@keyframes particleExplode6{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(-70px,35px) scale(0);opacity:0}}@keyframes particleExplode7{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(-80px) scale(0);opacity:0}}@keyframes particleExplode8{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(-70px,-35px) scale(0);opacity:0}}@keyframes particleExplode9{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translate(-40px,-70px) scale(0);opacity:0}}@keyframes particleExplode10{0%{transform:translate(-50%,-50%) scale(1.5);opacity:1}to{transform:translateY(-80px) scale(0);opacity:0}}@keyframes particleExplode11{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(40px,-70px) scale(0);opacity:0}}@keyframes particleExplode12{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(70px,-35px) scale(0);opacity:0}}@keyframes particleExplode13{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(55px,55px) scale(0);opacity:0}}@keyframes particleExplode14{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(-55px,55px) scale(0);opacity:0}}@keyframes particleExplode15{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(-55px,-55px) scale(0);opacity:0}}@keyframes particleExplode16{0%{transform:translate(-50%,-50%) scale(1.2);opacity:1}to{transform:translate(55px,-55px) scale(0);opacity:0}}@keyframes particleExplode17{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(25px,75px) scale(0);opacity:0}}@keyframes particleExplode18{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-25px,75px) scale(0);opacity:0}}@keyframes particleExplode19{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(25px,-75px) scale(0);opacity:0}}@keyframes particleExplode20{0%{transform:translate(-50%,-50%) scale(1);opacity:1}to{transform:translate(-25px,-75px) scale(0);opacity:0}}.ttw-impact-zone.hit .ttw-particle{background:#ef4444;box-shadow:0 0 8px #ef4444}.ttw-impact-zone.crit .ttw-particle{background:#fbbf24;box-shadow:0 0 12px #fbbf24;width:14px;height:14px}.ttw-impact-zone.blocked .ttw-particle{background:#3b82f6;box-shadow:0 0 8px #3b82f6}.ttw-spark{position:absolute;top:50%;left:50%;width:3px;height:20px;background:linear-gradient(to bottom,#fff,#fbbf24,transparent);transform-origin:center bottom;animation:sparkFlash .3s ease-out forwards;animation-delay:var(--delay)}.ttw-spark:nth-child(odd){height:15px}.ttw-spark:nth-child(2n){height:25px}.ttw-spark:nth-child(1){transform:translate(-50%,-50%) rotate(0)}.ttw-spark:nth-child(2){transform:translate(-50%,-50%) rotate(22.5deg)}.ttw-spark:nth-child(3){transform:translate(-50%,-50%) rotate(45deg)}.ttw-spark:nth-child(4){transform:translate(-50%,-50%) rotate(67.5deg)}.ttw-spark:nth-child(5){transform:translate(-50%,-50%) rotate(90deg)}.ttw-spark:nth-child(6){transform:translate(-50%,-50%) rotate(112.5deg)}.ttw-spark:nth-child(7){transform:translate(-50%,-50%) rotate(135deg)}.ttw-spark:nth-child(8){transform:translate(-50%,-50%) rotate(157.5deg)}.ttw-spark:nth-child(9){transform:translate(-50%,-50%) rotate(180deg)}.ttw-spark:nth-child(10){transform:translate(-50%,-50%) rotate(202.5deg)}.ttw-spark:nth-child(11){transform:translate(-50%,-50%) rotate(225deg)}.ttw-spark:nth-child(12){transform:translate(-50%,-50%) rotate(247.5deg)}.ttw-spark:nth-child(13){transform:translate(-50%,-50%) rotate(270deg)}.ttw-spark:nth-child(14){transform:translate(-50%,-50%) rotate(292.5deg)}.ttw-spark:nth-child(15){transform:translate(-50%,-50%) rotate(315deg)}.ttw-spark:nth-child(16){transform:translate(-50%,-50%) rotate(337.5deg)}@keyframes sparkFlash{0%{opacity:0;height:5px}20%{opacity:1}to{opacity:0;height:40px}}.ttw-shockwave{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none}.ttw-shockwave.ring-1{width:20px;height:20px;border:4px solid rgba(255,220,100,.9);animation:shockwaveExpand .4s ease-out forwards}.ttw-shockwave.ring-2{width:20px;height:20px;border:3px solid rgba(255,200,100,.7);animation:shockwaveExpand .5s ease-out .05s forwards}.ttw-shockwave.ring-3{width:20px;height:20px;border:2px solid rgba(255,180,100,.5);animation:shockwaveExpand .6s ease-out .1s forwards}.ttw-impact-zone.hit .ttw-shockwave{border-color:#ff6464cc}.ttw-impact-zone.blocked .ttw-shockwave{border-color:#6496ffcc}@keyframes shockwaveExpand{0%{width:20px;height:20px;opacity:1}to{width:250px;height:250px;opacity:0}}.ttw-crit-flash{position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,rgba(255,220,100,.5),transparent 60%);animation:critFlashPulse .3s ease-out;pointer-events:none;z-index:1000}@keyframes critFlashPulse{0%,to{opacity:0}30%{opacity:1}60%{opacity:.5}}.ttw-crit-rays{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:300px;height:300px;background:conic-gradient(from 0deg,transparent,rgba(255,220,100,.4),transparent,rgba(255,220,100,.4),transparent,rgba(255,220,100,.4),transparent,rgba(255,220,100,.4),transparent);animation:critRaysSpin .5s linear;opacity:.8}@keyframes critRaysSpin{0%{transform:translate(-50%,-50%) rotate(0) scale(.5);opacity:1}to{transform:translate(-50%,-50%) rotate(90deg) scale(1.5);opacity:0}}.ttw-result-display{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);text-align:center;z-index:10;animation:resultPopIn .4s cubic-bezier(.175,.885,.32,1.275)}@keyframes resultPopIn{0%{transform:translate(-50%,-50%) scale(0);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}.ttw-crit-banner{font-size:1.5rem;font-weight:900;color:#fbbf24;text-shadow:0 0 20px rgba(251,191,36,.8),0 0 40px rgba(251,191,36,.5);animation:critBanner .5s ease infinite;margin-bottom:10px}@keyframes critBanner{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.ttw-damage-number{font-size:3rem;font-weight:900;color:#ef4444;text-shadow:0 4px 20px rgba(239,68,68,.8),0 0 40px rgba(239,68,68,.5);animation:damageNumber .6s ease}.ttw-result-display.crit .ttw-damage-number{font-size:4rem;color:#fbbf24;text-shadow:0 4px 20px rgba(251,191,36,.8),0 0 40px rgba(251,191,36,.5)}@keyframes damageNumber{0%{transform:translateY(20px) scale(.5);opacity:0}50%{transform:translateY(-10px) scale(1.2)}to{transform:translateY(0) scale(1);opacity:1}}.ttw-element-bonus{font-size:1rem;color:#a78bfa;margin-left:8px}.ttw-blocked-banner{font-size:2rem;font-weight:900;color:#3b82f6;text-shadow:0 0 20px rgba(59,130,246,.8),0 0 40px rgba(59,130,246,.5);animation:blockedBounce .5s ease}@keyframes blockedBounce{0%{transform:scale(0)}50%{transform:scale(1.3)}70%{transform:scale(.9)}to{transform:scale(1)}}.ttw-waiting-anim{display:flex;flex-direction:column;align-items:center;gap:1rem}.ttw-spinner{width:40px;height:40px;border:4px solid rgba(139,92,246,.2);border-top-color:#8b5cf6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.ttw-ready-alert{color:#fbbf24;font-weight:700;animation:readyPulse .5s ease infinite}@keyframes readyPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.05)}}.ttw-instruction{font-size:1.1rem;color:var(--text-muted)}.ttw-submitted-indicator{display:flex;align-items:center;gap:.5rem;color:#4ade80;font-weight:600}.ttw-check-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:#4ade80;color:#000;border-radius:50%;font-weight:900;animation:checkPop .3s ease}@keyframes checkPop{0%{transform:scale(0)}50%{transform:scale(1.3)}to{transform:scale(1)}}.ttw-confetti-container{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:99;overflow:hidden}.ttw-confetti{position:absolute;top:-20px;left:var(--x);width:10px;height:10px;background:var(--color);animation:confettiFall 3s ease-in forwards;animation-delay:var(--delay)}@keyframes confettiFall{0%{transform:translateY(0) rotate(0);opacity:1}to{transform:translateY(100vh) rotate(720deg);opacity:0}}.ttw-game-over-overlay.victory{background:radial-gradient(ellipse at center,#fbbf2433,#000000e6)}.ttw-game-over-overlay.defeat{background:radial-gradient(ellipse at center,#ef444433,#000000e6)}.ttw-victory-crown,.ttw-defeat-skull{font-size:5rem;animation:iconBounce 1s ease infinite}@keyframes iconBounce{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}.ttw-victory-text{font-size:4rem!important;background:linear-gradient(135deg,#fbbf24,#f59e0b,#fbbf24)!important;background-size:200% 200%!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;background-clip:text!important;animation:goldShimmer 2s ease infinite!important;text-shadow:0 0 30px rgba(251,191,36,.5)}@keyframes goldShimmer{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.ttw-defeat-text{font-size:4rem!important;background:linear-gradient(135deg,#ef4444,#991b1b)!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important}.ttw-victory-subtitle,.ttw-defeat-subtitle{font-size:1.2rem;color:var(--text-muted);margin-bottom:2rem}.ttw-final-stats{display:flex;align-items:center;justify-content:center;gap:2rem;margin-bottom:2rem}.ttw-final-hp{display:flex;flex-direction:column;align-items:center;padding:1rem 2rem;border-radius:12px;background:#0000004d}.ttw-final-hp.you .value{color:#4ade80}.ttw-final-hp.opponent .value{color:#ef4444}.ttw-final-hp .label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase}.ttw-final-hp .value{font-size:2rem;font-weight:900}.ttw-vs-final{font-size:1.5rem;font-weight:700;color:var(--text-muted)}.ttw-back-btn{padding:1rem 3rem!important;font-size:1.2rem!important;background:linear-gradient(135deg,#6366f1,#8b5cf6)!important;border-radius:12px!important;transition:all .3s ease!important}.ttw-back-btn:hover{transform:scale(1.1)!important;box-shadow:0 0 30px #8b5cf699!important}.ttw-timer{display:inline-block;padding:.3rem .8rem;background:#0006;border-radius:8px;font-family:Courier New,monospace;font-size:1rem;font-weight:700;color:#4ade80;margin-left:1rem}.ttw-timer.warning{color:#fbbf24;animation:timerPulse 1s ease infinite}.ttw-timer.critical{color:#ef4444;animation:timerPulse .5s ease infinite;background:#ef444433}@keyframes timerPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.05)}}.ttw-game-controls{display:flex;justify-content:center;gap:1rem;margin-top:1.5rem;padding:1rem;background:#0000004d;border-radius:8px;border:1px solid rgba(255,255,255,.05)}.ttw-surrender-btn,.ttw-stalemate-btn{padding:.5rem 1rem;border-radius:8px;font-size:.85rem;cursor:pointer;transition:all .2s ease;border:1px solid rgba(255,255,255,.2)}.ttw-surrender-btn{background:#ef444433;color:#fca5a5}.ttw-surrender-btn:hover{background:#ef444466;transform:scale(1.05)}.ttw-stalemate-btn{background:#6366f133;color:#a5b4fc}.ttw-stalemate-btn:hover{background:#6366f166;transform:scale(1.05)}.ttw-stalemate-pending{padding:.5rem 1rem;color:#a5b4fc;font-style:italic;animation:fadePulse 1.5s ease infinite}@keyframes fadePulse{0%,to{opacity:.6}50%{opacity:1}}.ttw-stalemate-dialog,.ttw-surrender-dialog{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease}.ttw-stalemate-content,.ttw-surrender-content{background:linear-gradient(145deg,#1e1e2e,#2a2a3e);border:2px solid rgba(99,102,241,.5);border-radius:16px;padding:2rem;text-align:center;max-width:400px;animation:scaleIn .3s ease}.ttw-surrender-content{border-color:#ef444480}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.ttw-stalemate-content h3,.ttw-surrender-content h3{font-size:1.5rem;margin-bottom:1rem;color:var(--text-primary)}.ttw-stalemate-content p,.ttw-surrender-content p{color:var(--text-muted);margin-bottom:1rem}.ttw-stalemate-buttons,.ttw-surrender-buttons{display:flex;justify-content:center;gap:1rem;margin-top:1.5rem}.ttw-accept-btn,.ttw-confirm-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.ttw-accept-btn:hover,.ttw-confirm-btn:hover{transform:scale(1.05);box-shadow:0 0 20px #22c55e66}.ttw-decline-btn,.ttw-cancel-btn{padding:.75rem 1.5rem;background:#ffffff1a;color:var(--text-muted);border:1px solid rgba(255,255,255,.2);border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s ease}.ttw-decline-btn:hover,.ttw-cancel-btn:hover{background:#fff3;transform:scale(1.05)}.ttw-game-over-overlay.draw{background:radial-gradient(ellipse at center,#6366f133,#000000e6)}.ttw-draw-icon{font-size:5rem;animation:iconBounce 1s ease infinite}.ttw-draw-text{font-size:4rem!important;background:linear-gradient(135deg,#818cf8,#6366f1,#818cf8)!important;background-size:200% 200%!important;-webkit-background-clip:text!important;-webkit-text-fill-color:transparent!important;animation:goldShimmer 2s ease infinite!important}.ttw-draw-subtitle{font-size:1.2rem;color:var(--text-muted);margin-bottom:2rem}@media (max-width: 768px){.ttw-game-container{gap:.5rem;padding:.5rem;min-height:auto}.ttw-arena{flex-wrap:wrap;gap:.5rem;padding:.5rem}.ttw-player{flex:1 1 calc(50% - .25rem);gap:.4rem;padding:.5rem}.ttw-player-left{order:1}.ttw-player-right{order:2}.ttw-battle-center{order:3;flex-basis:100%;min-height:auto;gap:.5rem}.ttw-avatar{display:grid;grid-template-columns:auto 1fr;gap:0 .4rem;align-items:center;width:100%}.ttw-avatar>.player-avatar,.ttw-avatar>.ai-avatar{grid-row:1 / 3;width:36px;height:48px}.ttw-avatar .player-avatar .avatar-body,.ttw-avatar .player-avatar .avatar-head{width:24px}.ttw-avatar>.ai-avatar{font-size:1.2rem}.ttw-player-name{font-size:.75rem;align-self:end;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ttw-role{font-size:.6rem;padding:.1rem .35rem;align-self:start;width:fit-content}.ttw-hp-container{height:16px}.ttw-hp-text{font-size:.6rem}.ttw-submitted-indicator{font-size:.7rem}.ttw-ai-cards-remaining{font-size:.7rem;margin-top:.25rem}.ttw-difficulty-badge{font-size:.6rem;padding:.15rem .5rem;margin-left:0}.ttw-round{font-size:1.1rem}.ttw-round-info{gap:.25rem}.ttw-hand-section{padding:.5rem}.ttw-hand-section h3{margin-bottom:.5rem;font-size:.85rem}.ttw-hand{gap:.5rem}.ttw-card{width:80px}.ttw-card .card-value{font-size:.7rem;width:18px;height:18px}.ttw-card-stats{font-size:.6rem}.ttw-atk,.ttw-def{padding:1px 4px}.ttw-clash-arena{height:150px}.ttw-flying-card{width:80px;height:112px}.ttw-damage-number{font-size:2rem}.ttw-result-display.crit .ttw-damage-number{font-size:2.5rem}.ttw-history{padding:.5rem;max-height:100px}.ttw-history h4{font-size:.75rem;margin-bottom:.25rem}.ttw-submit-btn{margin:.5rem auto 0;padding:.5rem 1.5rem;font-size:.85rem}}@media (max-width: 480px){.ttw-game-container,.ttw-arena{gap:.3rem;padding:.3rem}.ttw-player{padding:.3rem;gap:.3rem}.ttw-avatar>.player-avatar,.ttw-avatar>.ai-avatar{width:28px;height:36px}.ttw-avatar .player-avatar .avatar-body,.ttw-avatar .player-avatar .avatar-head{width:20px}.ttw-avatar>.ai-avatar{font-size:.9rem}.ttw-player-name{font-size:.65rem}.ttw-role{font-size:.5rem;padding:.1rem .2rem}.ttw-hp-container{height:14px}.ttw-hp-text{font-size:.5rem}.ttw-battle-center{gap:.3rem}.ttw-round{font-size:.95rem}.ttw-clash-arena{height:120px}.ttw-flying-card{width:60px;height:84px}.ttw-damage-number{font-size:1.5rem}.ttw-result-display.crit .ttw-damage-number{font-size:1.8rem}.ttw-hand-section h3{font-size:.75rem;margin-bottom:.3rem}.ttw-submit-btn{padding:.4rem 1rem;font-size:.8rem}}.ttw-difficulty-badge{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;padding:.25rem .75rem;border-radius:1rem;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;margin-left:.5rem}.ttw-ai-cards-remaining{text-align:center;font-size:.85rem;color:#9ca3af;margin-top:.5rem}.ttw-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;min-height:400px;color:#e5e7eb}.ttw-loading .ttw-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.1);border-top-color:#6366f1;border-radius:50%;animation:ttw-spin 1s linear infinite}@keyframes ttw-spin{to{transform:rotate(360deg)}}.ttw-wrapper{position:relative;min-height:calc(100vh - 60px)}.ttw-sidebar{position:fixed;left:0;top:60px;width:280px;height:calc(100vh - 60px);z-index:100;background:linear-gradient(135deg,#1e293b,#0f172a);border-right:1px solid rgba(99,102,241,.3);transition:transform .3s ease}.ttw-sidebar.collapsed{transform:translate(-100%)}.ttw-sidebar .sidebar-dock-content{height:calc(100vh - 110px);overflow-y:auto}.ttw-sidebar-tab{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:99}.ttw-sidebar-tab.hidden{display:none}.ttw-wrapper .ttw-game-container{padding-left:280px;transition:padding-left .3s ease}.ttw-wrapper.left-collapsed .ttw-game-container{padding-left:36px}@media (max-width: 768px){.ttw-sidebar{width:260px}.ttw-wrapper .ttw-game-container,.ttw-wrapper.left-collapsed .ttw-game-container{padding-left:0}}.ttm-game-container{display:flex;flex-direction:column;align-items:center;padding:1rem;min-height:calc(100vh - 80px);background:linear-gradient(135deg,#0f172a,#1e1b4b,#0f172a)}.ttm-game-layout{display:block;max-width:100%;padding:0;min-height:calc(100vh - 70px);overflow:hidden}.ttm-game-layout .ttm-game-container{margin-left:300px;transition:margin-left .3s ease}.ttm-game-layout.left-collapsed .ttm-game-container{margin-left:36px}@media (max-width: 900px){.ttm-game-layout .ttm-game-container,.ttm-game-layout.left-collapsed .ttm-game-container{margin-left:0}}@media (max-width: 480px){.ttm-game-layout .ttm-game-container{margin-left:0;padding:.5rem}}.ttm-header{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:800px;padding:1rem;margin-bottom:1rem;background:#1e293bcc;border-radius:12px;border:1px solid rgba(99,102,241,.3)}.ttm-player-info{display:flex;flex-direction:column;gap:.25rem}.ttm-player-left{align-items:flex-start}.ttm-player-right{align-items:flex-end}.ttm-player-name{font-size:1rem;font-weight:600;color:#e2e8f0}.ttm-player-score{font-size:2rem;font-weight:700;color:#6366f1}.ttm-game-status{display:flex;flex-direction:column;align-items:center;gap:.5rem}.ttm-turn-indicator{padding:.5rem 1rem;border-radius:20px;font-weight:600;text-transform:uppercase;letter-spacing:1px;font-size:.85rem}.ttm-turn-indicator.your-turn{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;animation:ttm-pulse 1.5s ease-in-out infinite}.ttm-turn-indicator.opponent-turn{background:#64748b80;color:#94a3b8}@keyframes ttm-pulse{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 8px #22c55e00}}.ttm-timer{font-size:1.5rem;font-weight:700;color:#e2e8f0}.ttm-timer.warning{color:#ef4444;animation:ttm-timer-warning .5s ease-in-out infinite}@keyframes ttm-timer-warning{0%,to{transform:scale(1)}50%{transform:scale(1.1)}}.ttm-pairs-count{font-size:.85rem;color:#94a3b8}.ttm-board{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(4,auto);gap:8px;padding:16px;background:#0f172acc;border-radius:16px;border:2px solid rgba(99,102,241,.3);box-shadow:0 0 40px #6366f11a,inset 0 0 60px #0000004d;width:100%;max-width:612px}.ttm-card{width:100%;aspect-ratio:5 / 7;perspective:1000px;cursor:default}.ttm-card.clickable{cursor:pointer}.ttm-card.clickable:hover .ttm-card-inner{transform:scale(1.05);box-shadow:0 0 20px #6366f180}.ttm-card-inner{position:relative;width:100%;height:100%;transition:transform .5s ease;transform-style:preserve-3d;border-radius:10px}.ttm-card.flipped .ttm-card-inner{transform:rotateY(180deg)}.ttm-card-front,.ttm-card-back{position:absolute;width:100%;height:100%;backface-visibility:hidden;border-radius:10px;display:flex;align-items:center;justify-content:center;overflow:hidden}.ttm-card-back{background:linear-gradient(135deg,#1e3a5f,#0f172a);border:2px solid #374151;box-shadow:inset 0 0 20px #00000080}.ttm-card-back-icon{font-size:2.5rem;font-weight:700;color:#6496c84d;-webkit-user-select:none;user-select:none}.ttm-card-front{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border:2px solid #3b82f6;transform:rotateY(180deg)}.ttm-card-art{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover;z-index:0}.ttm-card-frame{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:8px;pointer-events:none;z-index:1;box-shadow:inset 0 0 0 2px #3b82f666}.ttm-card-name{position:absolute;bottom:4px;left:4px;right:4px;font-size:.6rem;font-weight:600;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.8);text-align:center;z-index:2;background:#0009;padding:2px 4px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ttm-card.matched .ttm-card-front{border-color:#22c55e;box-shadow:0 0 15px #22c55e80}.ttm-card.matched .ttm-card-frame{box-shadow:inset 0 0 0 2px #22c55e99}.ttm-card.matched.player-1 .ttm-card-front{border-color:#3b82f6;box-shadow:0 0 15px #3b82f699}.ttm-card.matched.player-1 .ttm-card-frame{box-shadow:inset 0 0 0 3px #3b82f6b3}.ttm-card.matched.player-2 .ttm-card-front{border-color:#ef4444;box-shadow:0 0 15px #ef444499}.ttm-card.matched.player-2 .ttm-card-frame{box-shadow:inset 0 0 0 3px #ef4444b3}.ttm-card.match-highlight .ttm-card-inner{animation:ttm-match-glow .5s ease-out}@keyframes ttm-match-glow{0%{box-shadow:0 0 #22c55ecc}50%{box-shadow:0 0 30px 10px #22c55e99}to{box-shadow:0 0 15px #22c55e80}}.ttm-card.no-match-highlight .ttm-card-inner{animation:ttm-no-match-shake .4s ease-out}@keyframes ttm-no-match-shake{0%,to{transform:rotateY(180deg) translate(0)}25%{transform:rotateY(180deg) translate(-5px)}75%{transform:rotateY(180deg) translate(5px)}}.ttm-card.no-match-highlight .ttm-card-front{border-color:#ef4444;box-shadow:0 0 15px #ef444480}.ttm-actions{display:flex;gap:1rem;margin-top:1rem}.ttm-surrender-btn,.ttm-stalemate-btn{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s;border:1px solid}.ttm-surrender-btn{background:linear-gradient(135deg,#dc2626,#991b1b);border-color:#b91c1c;color:#fff}.ttm-surrender-btn:hover:not(:disabled){background:linear-gradient(135deg,#ef4444,#dc2626);transform:translateY(-2px)}.ttm-stalemate-btn{background:linear-gradient(135deg,#6366f1,#4f46e5);border-color:#4f46e5;color:#fff}.ttm-stalemate-btn:hover:not(:disabled){background:linear-gradient(135deg,#818cf8,#6366f1);transform:translateY(-2px)}.ttm-stalemate-btn.requested{background:#6366f14d;border-color:#6366f180;cursor:not-allowed}.ttm-surrender-btn:disabled,.ttm-stalemate-btn:disabled{opacity:.5;cursor:not-allowed}.ttm-modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000}.ttm-modal{background:linear-gradient(135deg,#1e293b,#0f172a);padding:2rem;border-radius:16px;border:1px solid rgba(99,102,241,.3);max-width:400px;text-align:center}.ttm-modal h3{color:#e2e8f0;margin-bottom:1rem;font-size:1.5rem}.ttm-modal p{color:#94a3b8;margin-bottom:1.5rem}.ttm-modal-actions{display:flex;gap:1rem;justify-content:center}.ttm-modal-btn{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;cursor:pointer;border:none}.ttm-modal-btn.confirm{background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.ttm-modal-btn.cancel{background:#64748b4d;color:#e2e8f0}.ttm-modal-btn:hover{transform:translateY(-2px)}.ttm-game-over-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:1000}.ttm-game-over-content{text-align:center;padding:3rem;background:linear-gradient(135deg,#1e293b,#0f172a);border-radius:24px;border:2px solid rgba(99,102,241,.3)}.ttm-result-title{font-size:3rem;font-weight:700;margin-bottom:1.5rem;text-transform:uppercase;letter-spacing:2px}.ttm-game-over-overlay.victory .ttm-result-title{background:linear-gradient(135deg,#fbbf24,#f59e0b);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-shadow:none}.ttm-game-over-overlay.defeat .ttm-result-title{color:#ef4444}.ttm-game-over-overlay.draw .ttm-result-title{color:#6366f1}.ttm-final-scores{display:flex;align-items:center;justify-content:center;gap:2rem;margin-bottom:1.5rem}.ttm-final-score .ttm-score-label{font-size:.9rem;color:#94a3b8}.ttm-final-score .ttm-score-value{font-size:2.5rem;font-weight:700;color:#e2e8f0}.ttm-score-divider{font-size:2rem;color:#475569}.ttm-gold-result{font-size:1.5rem;font-weight:600;margin-bottom:2rem}.ttm-gold-result.positive{color:#22c55e}.ttm-gold-result.negative{color:#ef4444}.ttm-back-btn{padding:1rem 2rem;background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.ttm-back-btn:hover{background:linear-gradient(135deg,#818cf8,#6366f1);transform:translateY(-2px)}.game-type-btn.ttm{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.game-type-btn.ttm:hover{background:linear-gradient(135deg,#a78bfa,#8b5cf6)}.mode-btn.game-type-ttm{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.mode-btn.game-type-ttm:hover{background:linear-gradient(135deg,#a78bfa,#8b5cf6)}.mode-btn.game-type-chin{background:linear-gradient(135deg,#b45309,#d97706,#f59e0b)}.mode-btn.game-type-chin:hover{background:linear-gradient(135deg,#d97706,#f59e0b,#fbbf24)}.mode-btn.game-type-sb{background:linear-gradient(135deg,#7e22ce,#a855f7,#c084fc)}.mode-btn.game-type-sb:hover{background:linear-gradient(135deg,#9333ea,#c084fc,#d8b4fe)}@media (max-width: 900px){.mode-options.game-type-grid{grid-template-columns:repeat(2,1fr);gap:.6rem}.mode-options.game-type-grid .mode-btn{padding:14px 8px;gap:6px;border-radius:12px}.mode-selector{padding:20px 10px 40px}.mode-btn{min-width:0;padding:16px 10px}.mode-icon{font-size:32px}.mode-title{font-size:16px}.mode-desc{font-size:11px;text-align:center;word-break:break-word;overflow-wrap:break-word}}@media (max-width: 400px){.mode-options.game-type-grid{grid-template-columns:1fr;gap:.5rem}.mode-options.game-type-grid .mode-btn{padding:12px 10px;flex-direction:row;gap:10px}.mode-icon{font-size:28px}.mode-desc{font-size:11px;text-align:left}}@media (max-width: 768px){.ttm-game-container{padding:.5rem;min-height:auto}.ttm-board,.ttm-ai-board{width:100%;gap:4px;padding:8px;max-width:calc(100vw - 16px);box-sizing:border-box}.ttm-card-back-icon{font-size:1.5rem}.ttm-card-name{font-size:.5rem;padding:1px 2px}.ttm-header{flex-direction:column;gap:.5rem;padding:.5rem;margin-bottom:.5rem}.ttm-player-info{flex-direction:row;gap:1rem;align-items:center}.ttm-player-score{font-size:1.5rem}.ttm-game-status{gap:.25rem}.ttm-timer{font-size:1.2rem}.ttm-turn-indicator{font-size:.75rem;padding:.3rem .75rem}.ttm-actions{gap:.5rem;margin-top:.5rem}.ttm-surrender-btn,.ttm-stalemate-btn{padding:.5rem 1rem;font-size:.8rem}}@media (max-width: 480px){.ttm-board,.ttm-ai-board{gap:3px;padding:4px;max-width:calc(100vw - 8px)}.ttm-card-name{font-size:.4rem}.ttm-card-back-icon{font-size:1rem}.ttm-header{padding:.4rem;gap:.3rem;margin-bottom:.3rem}.ttm-player-name{font-size:.8rem}.ttm-player-score{font-size:1.2rem}.ttm-timer{font-size:1rem}.ttm-pairs-count{font-size:.7rem}}.ttm-config-screen{max-width:500px;margin:0 auto}.ttm-config-content{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem}.ttm-description{font-size:1rem;color:#94a3b8;line-height:1.6;text-align:center;padding:1rem;background:#1e293b80;border-radius:8px;border:1px solid rgba(99,102,241,.2)}.ttm-ai-game{max-width:800px;width:100%;margin:0 auto}.ttm-ai-game .ttm-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.ttm-ai-game .ttm-header h2{margin:0;font-size:1.25rem;color:#e2e8f0}.ttm-ai-game .ttm-back-btn{padding:.5rem 1rem;background:#334155cc;border:1px solid rgba(99,102,241,.3);border-radius:8px;color:#e2e8f0;cursor:pointer;transition:all .2s}.ttm-ai-game .ttm-back-btn:hover{background:#475569cc}.ttm-ai-game .ttm-turn-indicator{padding:.5rem 1rem;border-radius:20px;font-weight:600;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff}.ttm-scores{display:flex;justify-content:center;align-items:center;gap:2rem;margin-bottom:1rem;padding:1rem;background:#1e293bcc;border-radius:12px;border:1px solid rgba(99,102,241,.3)}.ttm-score{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem 1.5rem;border-radius:8px;transition:all .3s}.ttm-score.player{background:#3b82f633;border:1px solid rgba(59,130,246,.3)}.ttm-score.ai{background:#ef444433;border:1px solid rgba(239,68,68,.3)}.ttm-score.active{transform:scale(1.1);box-shadow:0 0 20px #6366f166}.ttm-score .score-label{font-size:.85rem;color:#94a3b8;text-transform:uppercase;letter-spacing:1px}.ttm-score .score-value{font-size:2rem;font-weight:700;color:#e2e8f0}.ttm-pairs-remaining{font-size:.9rem;color:#6366f1;padding:.5rem 1rem;background:#6366f11a;border-radius:20px}.ttm-ai-board{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(4,auto);gap:8px;padding:16px;background:#0f172acc;border-radius:16px;border:2px solid rgba(99,102,241,.3);box-shadow:0 0 40px #6366f11a;max-width:612px}.ttm-ai-board .ttm-card:not(.clickable){cursor:default}.ttm-ai-board .ttm-card:not(.clickable):not(.flipped){opacity:.7}.ttm-game-over-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease-out}.ttm-game-over-content{background:linear-gradient(135deg,#1e293b,#0f172a);padding:2rem 3rem;border-radius:16px;border:2px solid rgba(99,102,241,.4);text-align:center;box-shadow:0 0 60px #6366f14d}.ttm-game-over-content h2{font-size:2rem;margin:0 0 1.5rem;color:#e2e8f0}.ttm-final-scores{display:flex;align-items:center;justify-content:center;gap:1.5rem;margin-bottom:1.5rem}.ttm-final-score{display:flex;flex-direction:column;gap:.25rem}.ttm-final-score .label{font-size:.9rem;color:#94a3b8}.ttm-final-score .value{font-size:2.5rem;font-weight:700;color:#6366f1}.ttm-vs{font-size:1rem;color:#64748b;font-weight:600}.ttm-play-again-btn{padding:.75rem 2rem;font-size:1rem;font-weight:600;background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s}.ttm-play-again-btn:hover{background:linear-gradient(135deg,#818cf8,#6366f1);transform:translateY(-2px)}.ttm-loading{display:flex;align-items:center;justify-content:center;min-height:300px;font-size:1.2rem;color:#94a3b8}@media (max-width: 768px){.ttm-scores{gap:1rem;padding:.5rem;margin-bottom:.5rem}.ttm-score{padding:.3rem 1rem}.ttm-score .score-value{font-size:1.5rem}.ttm-pairs-remaining{font-size:.75rem;padding:.3rem .75rem}.ttm-game-over-content{padding:1.5rem 2rem;margin:1rem}.ttm-final-score .value{font-size:2rem}}@media (max-width: 480px){.ttm-scores{gap:.5rem;padding:.4rem}.ttm-score{padding:.25rem .5rem}.ttm-score .score-label{font-size:.7rem}.ttm-score .score-value{font-size:1.2rem}.ttm-pairs-remaining{font-size:.65rem;padding:.25rem .5rem}}.chin-game-layout{min-height:calc(100vh - 60px)}.chin-game-container{flex:1;display:flex;flex-direction:column;align-items:center;padding:2rem;gap:1.5rem;margin-left:300px;transition:margin-left .3s ease}.chin-game-layout.left-collapsed .chin-game-container{margin-left:36px}.chin-game-header{display:flex;align-items:center;gap:2rem;width:100%;max-width:600px;justify-content:space-between}.chin-game-header h2{margin:0;color:#e2e8f0;font-size:1.5rem}.chin-back-btn{padding:.5rem 1rem;background:#64748b4d;border:1px solid rgba(100,116,139,.4);border-radius:6px;color:#94a3b8;cursor:pointer;transition:all .2s}.chin-back-btn:hover{background:#64748b80;color:#e2e8f0}.chin-wager-display{padding:.5rem 1rem;background:#eab30833;border:1px solid rgba(234,179,8,.4);border-radius:6px;color:#fbbf24;font-weight:600}.chin-players{display:flex;align-items:center;gap:2rem;width:100%;max-width:600px;justify-content:center}.chin-player{display:flex;flex-direction:column;align-items:center;padding:1rem 2rem;background:#1e293bcc;border:2px solid rgba(71,85,105,.4);border-radius:12px;min-width:150px;transition:all .3s}.chin-player.active{border-color:#6366f1;box-shadow:0 0 20px #6366f14d}.chin-player.you{border-color:#3b82f680}.chin-player-name{font-weight:600;color:#e2e8f0;font-size:1rem;margin-bottom:.5rem}.chin-player-score{font-size:2.5rem;font-weight:700;color:#fbbf24}.chin-player-rolls{font-size:.85rem;color:#94a3b8;margin-top:.5rem}.chin-vs{font-size:1.5rem;font-weight:700;color:#64748b}.chin-dice-area{padding:2rem;background:linear-gradient(135deg,#1e293be6,#0f172ae6);border-radius:16px;border:2px solid rgba(99,102,241,.3);perspective:800px;overflow:visible}.chin-dice-area.rolling .chin-dice-bowl{animation:bowl-shake .3s infinite}.chin-dice-area.revealing .chin-dice-bowl{animation:bowl-settle .4s ease-out}@keyframes bowl-shake{0%,to{transform:translate(0) translateY(0)}25%{transform:translate(-5px) translateY(-2px) rotate(-2deg)}50%{transform:translate(3px) translateY(2px)}75%{transform:translate(5px) translateY(-1px) rotate(2deg)}}@keyframes bowl-settle{0%{transform:translateY(-5px)}50%{transform:translateY(2px)}to{transform:translateY(0)}}.chin-dice-bowl{display:flex;gap:1rem;padding:1.5rem 2rem;background:linear-gradient(180deg,#1e3a5f,#0f172a);border-radius:50px;border:3px solid #374151;box-shadow:inset 0 5px 15px #00000080;transform-style:preserve-3d;overflow:visible}.chin-die{width:60px;height:60px;perspective:200px}.chin-die-inner{width:100%;height:100%;position:relative;transform-style:preserve-3d;transition:transform .15s ease-out}.chin-die-face{position:absolute;width:60px;height:60px;background:linear-gradient(145deg,#fff,#e8e8e8);border:2px solid #ccc;border-radius:8px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);padding:6px;box-sizing:border-box;backface-visibility:visible;box-shadow:inset 0 2px 4px #fffc,inset 0 -2px 4px #0000001a}.pip{width:10px;height:10px;background:radial-gradient(circle at 30% 30%,#444,#111);border-radius:50%;box-shadow:inset 0 2px 2px #fff3,0 1px 2px #0000004d}.pips-1{justify-items:center;align-items:center}.pips-1 .pip:nth-child(1){grid-area:2 / 2}.pips-2 .pip:nth-child(1){grid-area:1 / 3;justify-self:end;align-self:start}.pips-2 .pip:nth-child(2){grid-area:3 / 1;justify-self:start;align-self:end}.pips-3 .pip:nth-child(1){grid-area:1 / 3;justify-self:end;align-self:start}.pips-3 .pip:nth-child(2){grid-area:2 / 2;justify-self:center;align-self:center}.pips-3 .pip:nth-child(3){grid-area:3 / 1;justify-self:start;align-self:end}.pips-4 .pip:nth-child(1){grid-area:1 / 1;justify-self:start;align-self:start}.pips-4 .pip:nth-child(2){grid-area:1 / 3;justify-self:end;align-self:start}.pips-4 .pip:nth-child(3){grid-area:3 / 1;justify-self:start;align-self:end}.pips-4 .pip:nth-child(4){grid-area:3 / 3;justify-self:end;align-self:end}.pips-5 .pip:nth-child(1){grid-area:1 / 1;justify-self:start;align-self:start}.pips-5 .pip:nth-child(2){grid-area:1 / 3;justify-self:end;align-self:start}.pips-5 .pip:nth-child(3){grid-area:2 / 2;justify-self:center;align-self:center}.pips-5 .pip:nth-child(4){grid-area:3 / 1;justify-self:start;align-self:end}.pips-5 .pip:nth-child(5){grid-area:3 / 3;justify-self:end;align-self:end}.pips-6 .pip:nth-child(1){grid-area:1 / 1;justify-self:start;align-self:start}.pips-6 .pip:nth-child(2){grid-area:1 / 3;justify-self:end;align-self:start}.pips-6 .pip:nth-child(3){grid-area:2 / 1;justify-self:start;align-self:center}.pips-6 .pip:nth-child(4){grid-area:2 / 3;justify-self:end;align-self:center}.pips-6 .pip:nth-child(5){grid-area:3 / 1;justify-self:start;align-self:end}.pips-6 .pip:nth-child(6){grid-area:3 / 3;justify-self:end;align-self:end}.chin-die-front{transform:translateZ(30px)}.chin-die-back{transform:rotateY(180deg) translateZ(30px)}.chin-die-right{transform:rotateY(90deg) translateZ(30px)}.chin-die-left{transform:rotateY(-90deg) translateZ(30px)}.chin-die-top{transform:rotateX(90deg) translateZ(30px)}.chin-die-bottom{transform:rotateX(-90deg) translateZ(30px)}.chin-die.tumbling .chin-die-inner{animation:die-tumble .6s infinite ease-in-out;transition:none}.chin-die.tumbling:nth-child(1) .chin-die-inner{animation-duration:.55s}.chin-die.tumbling:nth-child(2) .chin-die-inner{animation-duration:.6s;animation-direction:reverse}.chin-die.tumbling:nth-child(3) .chin-die-inner{animation-duration:.65s}.chin-die.tumbling{animation:die-bounce .3s infinite ease-in-out}@keyframes die-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-8px)}}@keyframes die-tumble{0%{transform:rotateX(0) rotateY(0) rotate(0)}to{transform:rotateX(360deg) rotateY(720deg) rotate(360deg)}}.chin-die.landing .chin-die-inner{animation:die-land .5s cubic-bezier(.34,1.56,.64,1) forwards}@keyframes die-land{0%{transform:rotateX(180deg) rotateY(90deg)}40%{transform:rotateX(-15deg) rotateY(-10deg)}70%{transform:rotateX(8deg) rotateY(5deg)}to{transform:rotateX(0) rotateY(0)}}.chin-game-layout.shake-light .chin-game-container{animation:screen-shake-light .4s ease-out}@keyframes screen-shake-light{0%,to{transform:translate(0)}20%{transform:translate(-3px)}40%{transform:translate(3px)}60%{transform:translate(-2px)}80%{transform:translate(2px)}}.chin-game-layout.shake-heavy-red .chin-game-container{animation:screen-shake-heavy .5s ease-out}.chin-game-layout.shake-heavy-red:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,#ef44444d,#ef444400 70%);pointer-events:none;z-index:9999;animation:flash-fade .5s ease-out forwards}.chin-game-layout.shake-heavy-gold .chin-game-container{animation:screen-shake-heavy .5s ease-out}.chin-game-layout.shake-heavy-gold:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,#fbbf2466,#fbbf2400 70%);pointer-events:none;z-index:9999;animation:flash-fade .5s ease-out forwards}.chin-game-layout.shake-light-green .chin-game-container{animation:screen-shake-light .4s ease-out}.chin-game-layout.shake-light-green:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at center,#4ade8040,#4ade8000 70%);pointer-events:none;z-index:9999;animation:flash-fade .4s ease-out forwards}@keyframes screen-shake-heavy{0%,to{transform:translate(0) rotate(0)}10%{transform:translate(-6px,-3px) rotate(-.5deg)}20%{transform:translate(6px,2px) rotate(.5deg)}30%{transform:translate(-5px,4px) rotate(-.3deg)}40%{transform:translate(5px,-2px) rotate(.3deg)}50%{transform:translate(-4px,3px) rotate(-.2deg)}60%{transform:translate(4px,-3px) rotate(.2deg)}70%{transform:translate(-3px,2px) rotate(-.1deg)}80%{transform:translate(3px,-1px) rotate(.1deg)}90%{transform:translate(-1px,1px)}}@keyframes flash-fade{0%{opacity:1}to{opacity:0}}.chin-last-result{padding:.75rem 1.5rem;border-radius:8px;font-weight:600;text-align:center;animation:result-pop .3s ease-out}@keyframes result-pop{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.chin-last-result.scored{background:#22c55e33;border:1px solid rgba(34,197,94,.4);color:#4ade80}.chin-last-result.dead{background:#64748b33;border:1px solid rgba(100,116,139,.4);color:#94a3b8}.chin-last-result.storm,.chin-last-result.lowrun,.chin-last-result.diceout{background:#ef444433;border:1px solid rgba(239,68,68,.4);color:#f87171}.chin-last-result.highrun,.chin-last-result.triple{background:#eab30833;border:1px solid rgba(234,179,8,.4);color:#fbbf24}.chin-controls{display:flex;flex-direction:column;align-items:center;gap:1rem}.chin-turn-indicator{padding:.5rem 1.5rem;border-radius:20px;font-weight:600;font-size:1rem}.chin-turn-indicator.your-turn{background:#22c55e33;border:1px solid rgba(34,197,94,.4);color:#4ade80;animation:pulse-turn 1.5s infinite}@keyframes pulse-turn{0%,to{box-shadow:0 0 #22c55e66}50%{box-shadow:0 0 0 10px #22c55e00}}.chin-turn-indicator.opponent-turn{background:#64748b33;border:1px solid rgba(100,116,139,.4);color:#94a3b8}.chin-roll-btn{padding:1rem 3rem;font-size:1.25rem;font-weight:700;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:12px;color:#fff;cursor:pointer;transition:all .2s;box-shadow:0 4px 15px #6366f166}.chin-roll-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 20px #6366f180}.chin-roll-btn:disabled{background:linear-gradient(135deg,#475569,#334155);cursor:not-allowed;box-shadow:none}.chin-surrender-btn{padding:.5rem 1rem;background:#ef444433;border:1px solid rgba(239,68,68,.3);border-radius:6px;color:#f87171;cursor:pointer;font-size:.85rem;transition:all .2s}.chin-surrender-btn:hover{background:#ef44444d}.chin-activity-log{margin-top:1rem;padding-top:1rem;border-top:1px solid rgba(71,85,105,.3)}.chin-activity-log h4{margin:0 0 .75rem;color:#94a3b8;font-size:.85rem;text-transform:uppercase}.chin-history-list{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:.5rem}.chin-history-empty{color:#64748b;font-size:.85rem;text-align:center;padding:1rem}.chin-history-item{padding:.5rem;background:#1e293b80;border-radius:6px;font-size:.8rem;display:flex;flex-direction:column;gap:.25rem}.chin-history-player{font-weight:600;color:#e2e8f0}.chin-history-dice{font-family:monospace;color:#94a3b8}.chin-history-result{color:#64748b}.chin-history-item.scored .chin-history-result{color:#4ade80}.chin-history-item.highrun .chin-history-result,.chin-history-item.triple .chin-history-result{color:#fbbf24}.chin-history-item.storm .chin-history-result,.chin-history-item.lowrun .chin-history-result,.chin-history-item.diceout .chin-history-result{color:#f87171}.chin-game-over-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .3s ease-out}.chin-game-over-content{background:linear-gradient(135deg,#1e293b,#0f172a);padding:2rem 3rem;border-radius:16px;text-align:center;max-width:400px;border:2px solid rgba(99,102,241,.3)}.chin-result-title{margin:0 0 1.5rem;font-size:2rem}.chin-game-over-overlay.victory .chin-result-title{color:#4ade80;text-shadow:0 0 30px rgba(74,222,128,.5)}.chin-game-over-overlay.defeat .chin-result-title{color:#f87171}.chin-game-over-overlay.draw .chin-result-title{color:#fbbf24}.chin-final-scores{display:flex;align-items:center;justify-content:center;gap:1.5rem;margin-bottom:1rem}.chin-final-score{display:flex;flex-direction:column;align-items:center}.chin-score-label{font-size:.9rem;color:#94a3b8}.chin-score-value{font-size:2.5rem;font-weight:700;color:#e2e8f0}.chin-score-divider{font-size:2rem;color:#64748b}.chin-surrender-note{color:#f87171;font-size:.9rem;margin-bottom:1rem}.chin-gold-result{padding:.75rem 1.5rem;border-radius:8px;font-size:1.25rem;font-weight:600;margin-bottom:1.5rem}.chin-gold-result.positive{background:#22c55e33;color:#4ade80}.chin-gold-result.negative{background:#ef444433;color:#f87171}.chin-game-over-content .chin-back-btn{padding:.75rem 2rem;font-size:1rem}.game-type-btn.chin{background:linear-gradient(135deg,#b453094d,#f59e0b33);border-color:#f59e0b66}.game-type-btn.chin:hover{background:linear-gradient(135deg,#d9770666,#fbbf244d);border-color:#fbbf2499;transform:translateY(-2px)}.game-type-btn.chin .game-type-icon{background:linear-gradient(135deg,#fbbf24,#f59e0b);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}@media (max-width: 768px){.chin-game-container{padding:1rem;margin-left:36px}.chin-players{flex-direction:column;gap:1rem}.chin-player{width:100%;max-width:200px}.chin-vs{display:none}.chin-dice-bowl{padding:1rem 1.5rem}.chin-die{width:50px;height:50px}.chin-die-face{width:50px;height:50px;padding:5px}.pip{width:8px;height:8px}.chin-die-front{transform:translateZ(25px)}.chin-die-back{transform:rotateY(180deg) translateZ(25px)}.chin-die-right{transform:rotateY(90deg) translateZ(25px)}.chin-die-left{transform:rotateY(-90deg) translateZ(25px)}.chin-die-top{transform:rotateX(90deg) translateZ(25px)}.chin-die-bottom{transform:rotateX(-90deg) translateZ(25px)}.chin-roll-btn{padding:.75rem 2rem;font-size:1rem}}.chin-ai-game{max-width:700px;margin:0 auto;min-height:calc(100vh - 80px);padding-top:1rem}.chin-ai-game.shake-light{animation:screen-shake-light .4s ease-out}.chin-ai-game.shake-heavy-red,.chin-ai-game.shake-heavy-gold{animation:screen-shake-heavy .5s ease-out}.chin-ai-game.shake-light-green{animation:screen-shake-light .4s ease-out}.chin-ai-activity-log{width:100%;max-width:500px;background:#0f172ae6;border:1px solid rgba(71,85,105,.4);border-radius:8px;padding:1rem;margin-top:1rem}.chin-ai-activity-log h4{margin:0 0 .75rem;font-size:.9rem;color:#94a3b8;border-bottom:1px solid rgba(71,85,105,.4);padding-bottom:.5rem}.chin-difficulty-badge{padding:.25rem .75rem;background:#6366f133;border:1px solid rgba(99,102,241,.4);border-radius:4px;color:#a5b4fc;font-size:.85rem;font-weight:500}.chin-play-again-btn{padding:.75rem 2rem;background:linear-gradient(135deg,#4ade80,#22c55e);border:none;border-radius:8px;color:#0f172a;font-weight:600;cursor:pointer;transition:all .2s}.chin-play-again-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #4ade8066}.chin-game-over-buttons{display:flex;flex-direction:column;gap:.75rem;margin-top:1.5rem}.chin-game-over-buttons .chin-back-btn{padding:.75rem 2rem}.chin-rules-summary{margin:1.5rem 0;padding:1rem;background:#1e293b99;border-radius:8px;border:1px solid rgba(71,85,105,.3)}.chin-rules-summary h4{margin:0 0 .75rem;color:#e2e8f0;font-size:1rem}.chin-rules-summary ul{margin:0;padding-left:1.25rem;list-style:none}.chin-rules-summary li{position:relative;padding:.25rem 0;color:#94a3b8;font-size:.9rem}.chin-rules-summary li:before{content:"•";position:absolute;left:-1rem;color:#6366f1}.chin-rules-summary strong{color:#e2e8f0}@media (max-width: 768px){.chin-ai-game{padding:1rem}.chin-ai-activity-log{max-width:100%}}.app:has(.sb-game-container){padding:0}.app:has(.sb-game-container) .header{margin:0;padding:1rem}.sb-game-container{min-height:calc(100vh - 60px);background:var(--bg-darkest);overflow:hidden}.sb-game-container .sb-chat-sidebar{width:300px}.sb-game-container .sidebar-edge-tab .sb-edge-unread{writing-mode:horizontal-tb;background:#ef4444;color:#fff;font-size:.65rem;padding:.1rem .35rem;border-radius:10px;margin-top:.5rem;animation:pulse 1s infinite}.sb-game-area{display:flex;flex-direction:column;align-items:center;padding:1.5rem;gap:1rem;position:relative;margin-left:300px;min-height:calc(100vh - 60px);overflow:hidden;transition:margin .3s ease}.sb-game-container.left-collapsed .sb-game-area{margin-left:36px}.sb-game-container.sb-ai-game .sb-game-area{margin-left:0}.sb-game-area:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse at 50% 20%,rgba(0,170,212,.04) 0%,transparent 60%),radial-gradient(ellipse at 80% 80%,rgba(212,175,55,.03) 0%,transparent 50%);pointer-events:none;z-index:0}.sb-game-area:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);background-size:40px 40px;pointer-events:none;z-index:0}.sb-game-area>*{position:relative;z-index:1}.sb-score-panel{width:100%;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:8px;padding:1rem}.sb-score-row{display:flex;align-items:center;gap:1rem}.sb-player-score{flex:1;text-align:center}.sb-label{display:block;color:var(--text-secondary);font-size:.8rem;margin-bottom:.25rem}.sb-score-value{font-size:1.8rem;font-weight:700;color:var(--text-bright)}.sb-score-limit{font-size:.9rem;color:var(--text-muted);font-weight:400}.sb-score-bar{height:6px;background:#ffffff0d;border-radius:3px;margin-top:.4rem;overflow:hidden}.sb-score-fill{height:100%;border-radius:3px;transition:width .5s ease}.sb-score-fill.yours{background:var(--accent-primary)}.sb-score-fill.opponent{background:var(--player-red)}.sb-vs{font-size:.85rem;color:var(--text-muted);font-weight:700}.sb-info-row{display:flex;align-items:center;justify-content:center;gap:1rem;margin-top:.75rem;flex-wrap:wrap}.sb-turn-indicator{font-size:.8rem;font-weight:700;padding:.2rem .6rem;border-radius:12px;letter-spacing:.5px}.sb-turn-indicator.your-turn{background:#00aad433;color:var(--accent-primary);border:1px solid rgba(0,170,212,.3)}.sb-turn-indicator.opp-turn{background:#ffffff0d;color:var(--text-muted);border:1px solid var(--border-subtle)}.sb-turn-info{color:var(--text-secondary);font-size:.85rem}.sb-timer{font-size:1.1rem;font-weight:700;color:var(--accent-primary);min-width:40px;text-align:center}.sb-timer.low{color:var(--player-red);animation:sb-pulse 1s infinite}@keyframes sb-pulse{0%,to{opacity:1}50%{opacity:.5}}.sb-echo-info{display:flex;gap:.5rem}.sb-echo{font-size:.75rem;padding:.15rem .5rem;border-radius:12px;font-weight:600}.sb-echo.coin-echo{background:#d4af3733;color:var(--gold-accent);border:1px solid rgba(212,175,55,.3)}.sb-echo.multiple-echo{background:#3b82f633;color:var(--player-blue);border:1px solid rgba(59,130,246,.3)}.sb-frozen-tag{font-size:.75rem;padding:.15rem .5rem;border-radius:12px;background:#93c5fd26;color:#93c5fd;border:1px solid rgba(147,197,253,.3);font-weight:600}.sb-frozen-tag.opponent{background:#dc262626;color:#fca5a5;border-color:#dc26264d}.sb-wager-info{text-align:center;margin-top:.5rem;font-size:.8rem;color:var(--gold-accent)}.sb-center-section{display:flex;justify-content:center}.sb-center-coin{width:80px;height:80px;border-radius:50%;background:linear-gradient(135deg,#d4af37,#b8960c,#d4af37);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 0 20px #d4af3766,inset 0 2px 4px #ffffff4d;border:3px solid #e6c84b;animation:sb-center-glow 3s ease-in-out infinite}.sb-center-label{font-size:.55rem;text-transform:uppercase;color:#00000080;font-weight:600;letter-spacing:1px}.sb-center-value{font-size:1.8rem;font-weight:800;color:#1a1000;text-shadow:0 1px 2px rgba(255,255,255,.3)}.sb-coin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;width:100%;max-width:340px}.sb-coin{aspect-ratio:1;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:box-shadow .2s ease,border-color .2s ease;position:relative;-webkit-user-select:none;user-select:none}.sb-coin.border{background:linear-gradient(135deg,#a8b0b8,#7a8490,#a8b0b8);border:2px solid #c0c8d0;box-shadow:0 2px 8px #0000004d,inset 0 1px 3px #ffffff4d}.sb-coin.gold{background:linear-gradient(135deg,#d4af37,#b8960c,#d4af37);border:2px solid #e6c84b;box-shadow:0 2px 8px #d4af374d,inset 0 1px 3px #ffffff4d}.sb-coin.empty{background:#ffffff08;border:2px dashed rgba(255,255,255,.1);box-shadow:none;cursor:default}.sb-coin.selected{transform:scale(1.1);z-index:2;animation:sb-coin-bounce .3s ease forwards}.sb-coin.border.selected{box-shadow:0 0 15px #00aad499,0 0 30px #00aad44d;border-color:var(--accent-primary)}.sb-coin.gold.selected{box-shadow:0 0 15px #d4af3799,0 0 30px #d4af374d;border-color:#f0d060}.sb-coin.submitting{pointer-events:none}.sb-coin-grid.disabled{opacity:.5;pointer-events:none}.sb-coin:not(.empty):hover{transform:scale(1.05);transition:transform .15s ease,box-shadow .2s ease,border-color .2s ease}.sb-coin.selected:hover{transform:scale(1.1)}.sb-coin-value{font-size:1.2rem;font-weight:700;color:#1a1a2e;text-shadow:0 1px 1px rgba(255,255,255,.3)}.sb-sum-display{text-align:center;padding:.6rem 1rem;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:6px;width:100%;max-width:340px}.sb-sum-label{color:var(--text-secondary);font-size:.9rem}.sb-sum-value{font-size:1.3rem;font-weight:700;color:var(--text-bright)}.sb-sum-value.divisible{color:var(--accent-primary);text-shadow:0 0 10px rgba(0,170,212,.5)}.sb-divisible-indicator{color:var(--accent-primary);font-size:.85rem;font-weight:600}.sb-sum-hint{color:var(--text-muted);font-size:.85rem}.sb-turn-result{text-align:center;font-size:1rem;font-weight:700;color:var(--accent-primary);padding:.5rem;animation:sb-score-pop .5s ease}.sb-turn-result.big-score{font-size:1.3rem;color:var(--gold-accent);text-shadow:0 0 15px rgba(212,175,55,.5)}.sb-bonus{color:var(--gold-accent);font-size:.85rem}@keyframes sb-fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-score-pop{0%{opacity:0;transform:translateY(-10px) scale(.8)}50%{opacity:1;transform:translateY(0) scale(1.15)}to{opacity:1;transform:translateY(0) scale(1)}}.sb-activity-log{width:100%;max-width:340px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:6px;padding:.6rem}.sb-activity-log h4{margin:0 0 .4rem;color:var(--text-secondary);font-size:.75rem;text-transform:uppercase;letter-spacing:1px}.sb-log-entries{max-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:.2rem}.sb-log-entry{font-size:.75rem;padding:.2rem .4rem;border-radius:3px}.sb-log-entry.you,.sb-log-entry.you-skip{color:var(--accent-primary);background:#00aad40d}.sb-log-entry.opponent,.sb-log-entry.opponent-skip{color:var(--player-red);background:#dc26260d}.sb-actions{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}.sb-skip-btn,.sb-surrender-btn,.sb-back-btn{padding:.5rem 1rem;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:600;transition:all .2s ease}.sb-skip-btn{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-color)}.sb-skip-btn:hover{background:var(--bg-panel);color:var(--text-primary)}.sb-surrender-btn{background:#dc262626;color:#fca5a5;border:1px solid rgba(220,38,38,.3)}.sb-surrender-btn:hover{background:#dc262640}.sb-back-btn{background:var(--bg-card);color:var(--text-secondary);border:1px solid var(--border-color)}.sb-back-btn:hover{background:var(--bg-panel)}.sb-game-over-overlay{position:fixed;top:60px;right:0;bottom:0;transition:left .3s ease;background:#00000ad9;display:flex;align-items:center;justify-content:center;z-index:100}.sb-game-over-overlay.chat-open{left:300px}.sb-game-over-overlay.chat-closed{left:36px}.sb-ai-game .sb-game-over-overlay,.sb-ai-game .sb-game-over-overlay.chat-closed{left:0}.sb-game-over-panel{background:var(--bg-panel);border:1px solid var(--border-color);border-radius:12px;padding:2rem;text-align:center;min-width:300px;box-shadow:var(--shadow-heavy)}.sb-game-over-panel h2{margin:0 0 1rem;font-size:1.8rem;color:var(--accent-primary)}.sb-final-scores{display:flex;gap:2rem;justify-content:center;margin-bottom:1rem}.sb-final-player{display:flex;flex-direction:column;align-items:center;gap:.3rem;color:var(--text-secondary)}.sb-final-score{font-size:2rem;font-weight:700;color:var(--text-bright)}.sb-forfeit-msg{color:var(--text-muted);font-size:.85rem;margin:.5rem 0}.sb-gold-reward{margin:1rem 0;font-size:1.2rem;font-weight:700;color:var(--gold-accent)}.sb-game-over-panel .sb-back-btn{margin-top:.5rem;padding:.6rem 1.5rem;background:var(--btn-primary-bg);color:#fff;border:none}.game-type-btn.sb{border-left:3px solid #a855f7}.game-type-btn.sb .game-type-icon{color:#a855f7}@media (max-width: 900px){.sb-game-area,.sb-game-container.left-collapsed .sb-game-area{margin-left:0}}@media (max-width: 768px){.sb-game-area{margin-left:0}.sb-coin-grid{max-width:280px}.sb-center-coin{width:60px;height:60px}.sb-game-over-overlay.chat-open,.sb-game-over-overlay.chat-closed{left:0;top:60px}.sb-center-value{font-size:1.4rem}}@keyframes sb-coin-bounce{0%{transform:scale(1)}40%{transform:scale(1.18)}60%{transform:scale(1.05)}80%{transform:scale(1.12)}to{transform:scale(1.1)}}.sb-coin:not(.empty):active{transform:scale(.95)!important;transition:transform .05s ease}@keyframes sb-center-spin{0%{transform:rotateY(0) scale(1)}50%{transform:rotateY(180deg) scale(1.1)}to{transform:rotateY(360deg) scale(1)}}.sb-center-coin.turn-change{animation:sb-center-spin .7s ease!important}@keyframes sb-score-flash{0%{box-shadow:none}30%{box-shadow:0 0 12px #00aad4cc,0 0 24px #00aad466}to{box-shadow:none}}.sb-score-fill.yours.flash{animation:sb-score-flash .8s ease}@keyframes sb-center-glow{0%,to{box-shadow:0 0 20px #d4af3766,inset 0 2px 4px #ffffff4d}50%{box-shadow:0 0 30px #d4af3799,0 0 50px #d4af3726,inset 0 2px 4px #ffffff4d}}@keyframes sb-grid-activate{0%{opacity:.5}50%{opacity:1;filter:brightness(1.15)}to{opacity:1;filter:brightness(1)}}.sb-coin-grid.activated{animation:sb-grid-activate .5s ease}@keyframes sb-coin-wake{0%{transform:scale(.9);opacity:.6}50%{transform:scale(1.06)}to{transform:scale(1);opacity:1}}.sb-coin-grid.activated .sb-coin:not(.empty){animation:sb-coin-wake .4s ease forwards}.sb-coin-grid.activated .sb-coin:nth-child(1){animation-delay:0s}.sb-coin-grid.activated .sb-coin:nth-child(2){animation-delay:.02s}.sb-coin-grid.activated .sb-coin:nth-child(3){animation-delay:.04s}.sb-coin-grid.activated .sb-coin:nth-child(4){animation-delay:.06s}.sb-coin-grid.activated .sb-coin:nth-child(5){animation-delay:.08s}.sb-coin-grid.activated .sb-coin:nth-child(6){animation-delay:.1s}.sb-coin-grid.activated .sb-coin:nth-child(7){animation-delay:.12s}.sb-coin-grid.activated .sb-coin:nth-child(8){animation-delay:.14s}.sb-coin-grid.activated .sb-coin:nth-child(9){animation-delay:.16s}.sb-coin-grid.activated .sb-coin:nth-child(10){animation-delay:.18s}.sb-coin-grid.activated .sb-coin:nth-child(11){animation-delay:.2s}.sb-coin-grid.activated .sb-coin:nth-child(12){animation-delay:.22s}.sb-coin-grid.activated .sb-coin:nth-child(13){animation-delay:.24s}.sb-coin-grid.activated .sb-coin:nth-child(14){animation-delay:.26s}.sb-coin-grid.activated .sb-coin:nth-child(15){animation-delay:.28s}.sb-coin-grid.activated .sb-coin:nth-child(16){animation-delay:.3s}.sb-game-over-overlay.victory{background:radial-gradient(circle at 50% 50%,#000000a6,#00281ee6)}.sb-game-over-overlay.defeat{background:radial-gradient(circle at 50% 50%,#000000b3,#323237e6)}.sb-game-over-panel.victory h2{color:var(--gold-accent);text-shadow:0 0 20px rgba(212,175,55,.5);animation:sb-victory-pulse 1.5s ease-in-out infinite}.sb-game-over-panel.defeat h2{color:#9ca3af;text-shadow:0 0 15px rgba(156,163,175,.3)}@keyframes sb-victory-pulse{0%,to{transform:scale(1);text-shadow:0 0 20px rgba(212,175,55,.5)}50%{transform:scale(1.05);text-shadow:0 0 30px rgba(212,175,55,.8)}}.sb-confetti{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:101}.sb-confetti-piece{position:absolute;top:-10px;width:8px;height:8px;border-radius:2px;animation:sb-confetti-fall 3s ease-in forwards}.sb-confetti-piece:nth-child(odd){width:6px;height:10px;border-radius:1px}.sb-confetti-piece:nth-child(3n){width:10px;height:6px;border-radius:50%}@keyframes sb-confetti-fall{0%{transform:translateY(-10px) rotate(0) scale(1);opacity:1}70%{opacity:1}to{transform:translateY(calc(100vh + 20px)) rotate(720deg) scale(.5);opacity:0}}.sb-particles{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;pointer-events:none;z-index:0}.sb-particle{position:absolute;width:3px;height:3px;background:#00aad440;border-radius:50%;animation:sb-float 18s infinite ease-in-out}.sb-particle:nth-child(1){left:10%;animation-delay:0s;animation-duration:20s}.sb-particle:nth-child(2){left:25%;animation-delay:-4s;animation-duration:24s}.sb-particle:nth-child(3){left:42%;animation-delay:-8s;animation-duration:18s;background:#d4af3733;width:4px;height:4px}.sb-particle:nth-child(4){left:60%;animation-delay:-12s;animation-duration:22s}.sb-particle:nth-child(5){left:78%;animation-delay:-6s;animation-duration:26s;background:#d4af3726}.sb-particle:nth-child(6){left:90%;animation-delay:-10s;animation-duration:19s;width:2px;height:2px}@keyframes sb-float{0%{transform:translateY(100vh) scale(0);opacity:0}8%{opacity:.8;transform:translateY(85vh) scale(1)}50%{opacity:1}85%{opacity:.6}to{transform:translateY(-5vh) scale(.3);opacity:0}}.mode-btn.game-type-blitz{background:linear-gradient(135deg,#1e3a5f,#2563eb,#3b82f6)}.mode-btn.game-type-blitz:hover{background:linear-gradient(135deg,#2563eb,#3b82f6,#60a5fa)}.daily-blitz-container{display:flex;flex-direction:column;align-items:center;padding:20px;min-height:calc(100vh - 60px);background:radial-gradient(ellipse at center,#1a1a2e,#0a0a15)}.daily-blitz-loading{color:#ccc;font-size:1.2rem;margin-top:100px}.daily-blitz-header{text-align:center;margin-bottom:20px;position:relative;width:100%;max-width:500px}.daily-blitz-header .back-btn{position:absolute;left:0;top:5px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.daily-blitz-header .back-btn:hover{background:#fff3}.daily-blitz-header h2{color:gold;font-size:1.8rem;margin:0 0 4px;text-shadow:0 0 10px rgba(255,215,0,.5)}.daily-blitz-subtitle{color:#aaa;margin:0;font-size:.95rem}.daily-blitz-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;max-width:450px;width:100%;margin:0 auto 24px}.blitz-square{width:100%;aspect-ratio:1;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.15);transition:transform .15s,box-shadow .15s,border-color .15s;position:relative;overflow:hidden}.blitz-square.gold{background:linear-gradient(145deg,#3d2b00,#7a5a08 40%,#9e7310);border-color:#9e731066;overflow:hidden}.blitz-square.gold:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:linear-gradient(45deg,transparent 40%,rgba(218,165,32,.12) 45%,rgba(218,165,32,.25) 50%,rgba(218,165,32,.12) 55%,transparent 60%);animation:blitz-shimmer 3s ease-in-out infinite}.blitz-square.crystal{background:linear-gradient(145deg,#3b0764,#6b21a8 40%,#a78bfa);border-color:#a78bfa66;overflow:hidden}.blitz-square.crystal:before{content:"";position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:linear-gradient(45deg,transparent 40%,rgba(167,139,250,.15) 45%,rgba(200,180,255,.35) 50%,rgba(167,139,250,.15) 55%,transparent 60%);animation:blitz-shimmer 3.5s ease-in-out infinite}.blitz-square.sorry{background:linear-gradient(145deg,#1a1a1a,#2a2a3a 40%,#3a3a4a);border-color:#ffffff26}.blitz-square.highlight{transform:scale(1.08);box-shadow:inset 0 0 20px #d3ff3499,0 0 15px #d3ff3466;border-color:#d3ff34;z-index:2}.blitz-square.winner{transform:scale(1.12);animation:blitz-pulse .8s ease-in-out infinite alternate;border-color:gold;z-index:3}.blitz-prize-icon{font-size:1.6rem;line-height:1;position:relative;z-index:1}.blitz-square.gold .blitz-prize-icon{animation:blitz-coin-bounce 2s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(255,215,0,.6))}.blitz-square.crystal .blitz-prize-icon{animation:blitz-crystal-float 2.5s ease-in-out infinite;filter:drop-shadow(0 0 6px rgba(167,139,250,.7))}.blitz-square.sorry .blitz-prize-icon{color:#ffffff40;animation:none;font-size:1.2rem}.blitz-square:nth-child(5n+2) .blitz-prize-icon{animation-delay:-.4s}.blitz-square:nth-child(5n+3) .blitz-prize-icon{animation-delay:-.8s}.blitz-square:nth-child(5n+4) .blitz-prize-icon{animation-delay:-1.2s}.blitz-square:nth-child(5n+5) .blitz-prize-icon{animation-delay:-1.6s}.blitz-square:nth-child(n+6):nth-child(-n+10) .blitz-prize-icon{animation-delay:-.3s}.blitz-square:nth-child(n+11):nth-child(-n+15) .blitz-prize-icon{animation-delay:-.7s}.blitz-square:nth-child(n+16):nth-child(-n+20) .blitz-prize-icon{animation-delay:-1.1s}.blitz-square:nth-child(n+21) .blitz-prize-icon{animation-delay:-1.5s}.blitz-square:nth-child(5n+2):before{animation-delay:-.6s}.blitz-square:nth-child(5n+3):before{animation-delay:-1.2s}.blitz-square:nth-child(5n+4):before{animation-delay:-1.8s}.blitz-square:nth-child(5n+5):before{animation-delay:-2.4s}.blitz-square:nth-child(n+6):nth-child(-n+10):before{animation-delay:-.5s}.blitz-square:nth-child(n+11):nth-child(-n+15):before{animation-delay:-1s}.blitz-square:nth-child(n+16):nth-child(-n+20):before{animation-delay:-1.5s}.blitz-square:nth-child(n+21):before{animation-delay:-2s}.blitz-prize-amount{font-size:.75rem;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5);margin-top:2px;position:relative;z-index:1}.blitz-controls{text-align:center;margin-top:8px}.blitz-spin-btn{background:linear-gradient(135deg,#b8860b,gold);color:#1a1a2e;border:none;padding:14px 48px;font-size:1.4rem;font-weight:800;border-radius:12px;cursor:pointer;letter-spacing:2px;text-transform:uppercase;box-shadow:0 4px 20px #ffd70066;transition:transform .15s,box-shadow .15s}.blitz-spin-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 28px #ffd70099}.blitz-spin-btn:disabled{opacity:.5;cursor:not-allowed}.blitz-spin-btn.blitz-stop-btn{background:linear-gradient(135deg,#b91c1c,#ef4444);box-shadow:0 4px 20px #ef444466}.blitz-spin-btn.blitz-stop-btn:hover:not(:disabled){box-shadow:0 6px 28px #ef444499}.blitz-countdown{color:#aaa;font-size:1.1rem;padding:14px 0}.blitz-result-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;display:flex;align-items:center;justify-content:center;z-index:1000;cursor:pointer;animation:blitz-fade-in .3s ease-out}.blitz-result-card{background:linear-gradient(145deg,#1a1a2e,#2a2a4e);border:2px solid #ffd700;border-radius:16px;padding:40px 50px;text-align:center;animation:blitz-pop .4s ease-out;box-shadow:0 0 40px #ffd7004d}.blitz-result-icon{font-size:4rem;margin-bottom:12px}.blitz-result-text{color:#fff;font-size:1.3rem;margin-bottom:16px}.blitz-result-text strong{color:gold}.blitz-result-dismiss{background:none;border:none;color:#888;font-size:.85rem;cursor:pointer}@keyframes blitz-pulse{0%{box-shadow:0 0 10px #ffd70080,inset 0 0 10px #ffd70033}to{box-shadow:0 0 25px #ffd700cc,inset 0 0 20px #ffd70066}}@keyframes blitz-pop{0%{transform:scale(.5);opacity:0}60%{transform:scale(1.05)}to{transform:scale(1);opacity:1}}@keyframes blitz-fade-in{0%{opacity:0}to{opacity:1}}@keyframes blitz-shimmer{0%{transform:translate(-100%) rotate(0)}to{transform:translate(100%) rotate(0)}}@keyframes blitz-coin-bounce{0%,to{transform:translateY(0) rotate(0)}25%{transform:translateY(-3px) rotate(-5deg)}50%{transform:translateY(-5px) rotate(0) scale(1.1)}75%{transform:translateY(-3px) rotate(5deg)}}@keyframes blitz-crystal-float{0%,to{transform:translateY(0) scale(1);filter:drop-shadow(0 0 6px rgba(167,139,250,.7))}50%{transform:translateY(-4px) scale(1.12);filter:drop-shadow(0 0 12px rgba(167,139,250,.9))}}@keyframes blitz-sorry-wobble{0%,to{transform:rotate(0)}25%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}}@media (max-width: 600px){.daily-blitz-grid{gap:5px;max-width:320px}.blitz-prize-icon{font-size:1.2rem}.blitz-prize-amount{font-size:.65rem}.blitz-spin-btn{padding:12px 36px;font-size:1.2rem}.daily-blitz-header h2{font-size:1.4rem}}.mode-btn.game-type-bombsweep{background:linear-gradient(135deg,#7f1d1d,#b91c1c,#ef4444)}.mode-btn.game-type-bombsweep:hover{background:linear-gradient(135deg,#b91c1c,#ef4444,#f87171)}.mode-btn.game-type-materiamagic{background:linear-gradient(135deg,#4a1d7f,#7c3aed,#a78bfa)}.mode-btn.game-type-materiamagic:hover{background:linear-gradient(135deg,#7c3aed,#a78bfa,#c4b5fd)}.bomb-sweep-container{display:flex;flex-direction:column;align-items:center;padding:20px;min-height:calc(100vh - 60px);background:radial-gradient(ellipse at center,#1a0a0a,#0a0505)}.bomb-sweep-loading{color:#ccc;font-size:1.2rem;margin-top:100px}.bomb-sweep-header{text-align:center;margin-bottom:16px;position:relative;width:100%;max-width:520px}.bomb-sweep-header .back-btn{position:absolute;left:0;top:5px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.bomb-sweep-header .back-btn:hover{background:#fff3}.bomb-sweep-header h2{color:#ef4444;font-size:1.8rem;margin:0 0 4px;text-shadow:0 0 10px rgba(239,68,68,.5)}.bomb-sweep-subtitle{color:#aaa;margin:0;font-size:.95rem}.bomb-sweep-totals{display:flex;justify-content:space-between;align-items:center;width:100%;max-width:520px;padding:10px 16px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;margin-bottom:12px;color:#fff;font-size:.95rem}.bomb-sweep-loot{display:flex;gap:16px}.bomb-sweep-gold{color:gold;font-weight:700}.bomb-sweep-crystals{color:#a78bfa;font-weight:700}.bomb-sweep-empty{color:#888;font-style:italic}.bomb-sweep-count{color:#888;font-size:.85rem}.bomb-sweep-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;max-width:520px;width:100%;margin:0 auto 20px}.bomb-sweep-grid.shaking{animation:bomb-shake .5s ease-in-out}.bomb-tile{width:100%;aspect-ratio:1;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid rgba(255,255,255,.1);position:relative;overflow:hidden;transition:transform .15s,box-shadow .15s}.bomb-tile.hidden{background:linear-gradient(145deg,#1e293b,#334155 40%,#475569);border-color:#64748b66;cursor:pointer}.bomb-tile.hidden:hover{transform:scale(1.05);box-shadow:0 0 12px #64748b80;border-color:#94a3b899}.bomb-tile.revealed{animation:bomb-tile-flip .4s ease-out}.bomb-tile.revealed.gold{background:linear-gradient(145deg,#3d2b00,#7a5a08 40%,#9e7310);border-color:#9e731080}.bomb-tile.revealed.crystal{background:linear-gradient(145deg,#3b0764,#6b21a8 40%,#a78bfa);border-color:#a78bfa80}.bomb-tile.revealed.bomb{background:linear-gradient(145deg,#7f1d1d,#b91c1c 40%,#ef4444);border-color:#ef444499;cursor:default}.bomb-tile.exploding{animation:bomb-explode .6s ease-out;box-shadow:0 0 30px #ef4444cc,inset 0 0 20px #ffa50080}.bomb-tile-icon{font-size:1.4rem;line-height:1;position:relative;z-index:1}.bomb-tile.hidden .bomb-tile-icon{color:#94a3b866;font-size:1.1rem;font-weight:700}.bomb-tile.revealed.bomb .bomb-tile-icon{filter:drop-shadow(0 0 6px rgba(255,165,0,.8))}.bomb-tile.revealed.gold .bomb-tile-icon{filter:drop-shadow(0 0 4px rgba(255,215,0,.6))}.bomb-tile.revealed.crystal .bomb-tile-icon{filter:drop-shadow(0 0 6px rgba(167,139,250,.7))}.bomb-tile-label{font-size:.65rem;font-weight:700;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.5);margin-top:1px;position:relative;z-index:1}.bomb-sweep-actions{margin-top:8px;text-align:center}.bomb-sweep-start-btn{background:linear-gradient(135deg,#059669,#10b981);color:#fff;border:none;padding:14px 48px;font-size:1.3rem;font-weight:700;border-radius:12px;cursor:pointer;letter-spacing:1px;box-shadow:0 4px 20px #10b98166;transition:transform .15s,box-shadow .15s}.bomb-sweep-start-btn:hover{transform:translateY(-2px);box-shadow:0 6px 28px #10b98199}.bomb-sweep-cashout-btn{background:linear-gradient(135deg,#059669,#10b981);color:#fff;border:none;padding:12px 36px;font-size:1.1rem;font-weight:700;border-radius:10px;cursor:pointer;box-shadow:0 4px 16px #10b98166;transition:transform .15s,box-shadow .15s;animation:bomb-cashout-pulse 2s ease-in-out infinite}.bomb-sweep-cashout-btn:hover{transform:translateY(-2px);box-shadow:0 6px 24px #10b98199}.bomb-sweep-cooldown{color:#aaa;font-size:1.1rem;padding:14px 0;text-align:center}.bomb-sweep-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:1000;cursor:pointer;animation:blitz-fade-in .3s ease-out}.bomb-sweep-result-card{border-radius:16px;padding:40px 50px;text-align:center;animation:blitz-pop .4s ease-out}.bomb-sweep-result-card.victory{background:linear-gradient(145deg,#0a2e1a,#1a4a2e);border:2px solid #10b981;box-shadow:0 0 40px #10b9814d}.bomb-sweep-result-card.defeat{background:linear-gradient(145deg,#2e0a0a,#4a1a1a);border:2px solid #ef4444;box-shadow:0 0 40px #ef44444d}.bomb-sweep-result-icon{font-size:4rem;margin-bottom:12px}.bomb-sweep-result-title{font-size:1.6rem;font-weight:800;margin-bottom:8px}.bomb-sweep-result-card.victory .bomb-sweep-result-title{color:#10b981}.bomb-sweep-result-card.defeat .bomb-sweep-result-title{color:#ef4444}.bomb-sweep-result-text{color:#ddd;font-size:1.1rem;margin-bottom:16px}.bomb-sweep-result-text strong{color:gold}@keyframes bomb-tile-flip{0%{transform:scale(.8) rotateY(90deg);opacity:.5}50%{transform:scale(1.05) rotateY(0)}to{transform:scale(1) rotateY(0);opacity:1}}@keyframes bomb-explode{0%{transform:scale(1)}20%{transform:scale(1.3);box-shadow:0 0 40px #ff6400e6}50%{transform:scale(1.1)}to{transform:scale(1)}}@keyframes bomb-shake{0%,to{transform:translate(0)}10%{transform:translate(-6px) rotate(-1deg)}20%{transform:translate(6px) rotate(1deg)}30%{transform:translate(-5px) rotate(-.5deg)}40%{transform:translate(5px) rotate(.5deg)}50%{transform:translate(-3px)}60%{transform:translate(3px)}70%{transform:translate(-2px)}80%{transform:translate(2px)}90%{transform:translate(-1px)}}@keyframes bomb-cashout-pulse{0%,to{box-shadow:0 4px 16px #10b98166}50%{box-shadow:0 4px 24px #10b981b3}}@media (max-width: 600px){.bomb-sweep-grid{gap:4px;max-width:360px}.bomb-tile-icon{font-size:1.1rem}.bomb-tile-label{font-size:.55rem}.bomb-sweep-header h2{font-size:1.4rem}.bomb-sweep-totals{font-size:.85rem;padding:8px 12px}.bomb-sweep-cashout-btn{padding:10px 28px;font-size:1rem}}.materia-magic-container{display:flex;flex-direction:column;align-items:center;width:100%;background:radial-gradient(ellipse at center,#1a0a2e,#0a0515);min-height:calc(100vh - 60px);padding-top:20px}.materia-loading{color:#ccc;font-size:1.2rem;margin-top:100px}.materia-header{text-align:center;margin-bottom:16px;position:relative;width:100%;max-width:400px}.materia-header .back-btn{position:absolute;left:0;top:5px;background:#ffffff1a;color:#999;border:1px solid rgba(255,255,255,.2);padding:6px 12px;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.materia-header .back-btn:hover{background:#fff3}.materia-header h2{color:#a78bfa;font-size:1.8rem;margin:0 0 4px;text-shadow:0 0 10px rgba(167,139,250,.5)}.materia-subtitle{color:#aaa;margin:0;font-size:.95rem}.materia-jackpot-banner{display:flex;flex-direction:column;align-items:center;background:linear-gradient(135deg,#78500066,#c8960033);border:1px solid rgba(255,215,0,.4);border-radius:12px;padding:12px 30px;margin-bottom:20px;animation:materia-jackpot-pulse 2s ease-in-out infinite;max-width:400px;width:100%}.materia-jackpot-label{color:#cca800;font-size:.8rem;text-transform:uppercase;letter-spacing:2px;font-weight:700}.materia-jackpot-amount{color:gold;font-size:2rem;font-weight:800;text-shadow:0 0 15px rgba(255,215,0,.5)}.materia-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:330px;width:100%;margin:0 auto 20px}.materia-spot{width:100%;aspect-ratio:1;border-radius:14px;border:2px solid rgba(167,139,250,.4);display:flex;justify-content:center;align-items:center;transition:all .3s ease;position:relative;overflow:hidden}.materia-spot.covered{background:linear-gradient(145deg,#2d1b69,#4c1d95 40%,#6d28d9);border-color:#a78bfa80;cursor:pointer;animation:materia-shimmer 3s ease-in-out infinite}.materia-spot.covered:hover{transform:scale(1.06);box-shadow:0 0 16px #a78bfa80;border-color:#a78bfacc}.materia-spot.revealed{background:linear-gradient(145deg,#1e1b4b,#312e81,#3730a3);border-color:#6366f166;cursor:default;animation:materia-spot-reveal .4s ease-out}.materia-spot-inner{display:flex;flex-direction:column;align-items:center;gap:2px}.covered-inner{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.materia-question{font-size:2rem;font-weight:800;color:#a78bfa80;text-shadow:0 0 8px rgba(167,139,250,.3)}.materia-symbol-icon{font-size:1.8rem;line-height:1;filter:drop-shadow(0 0 6px currentColor)}.materia-symbol-name{font-size:.6rem;font-weight:700;color:#ffffff80;text-transform:uppercase;letter-spacing:.5px}.materia-info-bar{text-align:center;margin-bottom:12px;min-height:24px}.materia-spots-count{color:#aaa;font-size:.9rem}.materia-actions{display:flex;gap:12px;align-items:center;justify-content:center;margin-bottom:20px}.materia-start-btn{background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff;border:none;padding:12px 32px;font-size:1.1rem;font-weight:700;border-radius:10px;cursor:pointer;box-shadow:0 4px 20px #7c3aed66;transition:transform .15s,box-shadow .15s}.materia-start-btn:hover{transform:translateY(-2px);box-shadow:0 6px 28px #7c3aed99}.materia-paytable-btn{background:#ffffff1a;color:#ccc;border:1px solid rgba(255,255,255,.2);padding:10px 20px;font-size:.95rem;font-weight:600;border-radius:10px;cursor:pointer;transition:background .2s}.materia-paytable-btn:hover{background:#fff3}.materia-cooldown{color:#aaa;font-size:1.1rem;padding:14px 0;text-align:center}.materia-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;display:flex;justify-content:center;align-items:center;z-index:9999;animation:blitz-fade-in .3s ease-out}.materia-paytable-card{background:linear-gradient(145deg,#1e1b4b,#312e81);border:2px solid #7c3aed;border-radius:16px;padding:30px 35px;max-width:420px;width:90%;animation:blitz-pop .4s ease-out}.materia-paytable-card h3{color:#a78bfa;font-size:1.4rem;margin:0 0 16px;text-align:center}.materia-paytable-table{width:100%;border-collapse:collapse;margin-bottom:12px}.materia-paytable-table th{color:#888;font-size:.75rem;text-transform:uppercase;letter-spacing:1px;padding:6px 8px;border-bottom:1px solid rgba(255,255,255,.1);text-align:left}.materia-paytable-table td{padding:8px;color:#ddd;font-size:.9rem;border-bottom:1px solid rgba(255,255,255,.05)}.materia-pt-icon{font-size:1.1rem;margin-right:4px}.materia-pt-jackpot{color:gold;font-weight:800;text-shadow:0 0 6px rgba(255,215,0,.4)}.materia-paytable-note{color:#888;font-size:.8rem;text-align:center;margin:12px 0 0}.materia-close-btn{display:block;margin:16px auto 0;background:linear-gradient(135deg,#7c3aed,#a78bfa);color:#fff;border:none;padding:10px 28px;font-size:1rem;font-weight:700;border-radius:8px;cursor:pointer;transition:transform .15s}.materia-close-btn:hover{transform:translateY(-1px)}.materia-result-card{border-radius:16px;padding:40px 50px;text-align:center;animation:blitz-pop .4s ease-out}.materia-result-card.victory{background:linear-gradient(145deg,#0a2e1a,#1a4a2e);border:2px solid #10b981;box-shadow:0 0 40px #10b9814d}.materia-result-card.defeat{background:linear-gradient(145deg,#1e1b4b,#312e81);border:2px solid #6366f1;box-shadow:0 0 40px #6366f14d}.materia-result-card.jackpot-win{background:linear-gradient(145deg,#2e1a00,#4a3000);border:2px solid #ffd700;box-shadow:0 0 60px #ffd70080;animation:blitz-pop .4s ease-out,materia-jackpot-glow 1.5s ease-in-out infinite}.materia-result-icon{font-size:4rem;margin-bottom:12px}.materia-result-title{font-size:1.6rem;font-weight:800;margin-bottom:8px}.materia-result-card.victory .materia-result-title{color:#10b981}.materia-result-card.defeat .materia-result-title{color:#a78bfa}.materia-result-card.jackpot-win .materia-result-title{color:gold;text-shadow:0 0 20px rgba(255,215,0,.6)}.materia-result-text{color:#ddd;font-size:1.1rem;margin-bottom:16px}.materia-result-text strong{color:gold}@keyframes materia-shimmer{0%,to{opacity:1}50%{opacity:.85}}@keyframes materia-spot-reveal{0%{transform:scale(.7) rotateY(90deg);opacity:.4}50%{transform:scale(1.08) rotateY(0)}to{transform:scale(1) rotateY(0);opacity:1}}@keyframes materia-jackpot-pulse{0%,to{box-shadow:0 0 10px #ffd70033}50%{box-shadow:0 0 25px #ffd70066}}@keyframes materia-jackpot-glow{0%,to{box-shadow:0 0 40px #ffd70066}50%{box-shadow:0 0 80px #ffd700b3}}@media (max-width: 600px){.materia-grid{gap:6px;max-width:280px}.materia-symbol-icon{font-size:1.4rem}.materia-question{font-size:1.6rem}.materia-header h2{font-size:1.4rem}.materia-jackpot-amount{font-size:1.6rem}.materia-jackpot-banner{padding:10px 20px}.materia-result-card{padding:30px 25px}.materia-paytable-card{padding:20px 15px}}.ss-container{width:100%;min-height:100vh;background:radial-gradient(ellipse at center,#0a1520,#060a10 70%);display:flex;flex-direction:column;align-items:center;padding:20px;color:#e0e0e0;position:relative}.ss-title{font-size:2.5em;color:#00d4ff;text-shadow:0 0 20px rgba(0,212,255,.5);margin-bottom:5px}.ss-subtitle{color:#7a9aaa;margin-bottom:30px;font-size:1.1em}.ss-difficulty-select{display:flex;flex-direction:column;align-items:center;gap:10px;margin-bottom:25px}.ss-difficulty-select label{font-size:1.1em;color:#a0d4e8}.ss-diff-buttons{display:flex;gap:10px}.ss-diff-btn{padding:10px 24px;border:2px solid rgba(0,170,212,.4);border-radius:8px;background:#0a1e32cc;color:#a0d4e8;font-size:1em;cursor:pointer;transition:all .2s}.ss-diff-btn:hover{background:#143246cc;border-color:#00d4ff}.ss-diff-btn.active{background:#0a3c5ae6;border-color:#00d4ff;color:#fff;box-shadow:0 0 15px #00d4ff4d}.ss-start-btn{padding:14px 40px;border:2px solid #00d4ff;border-radius:10px;background:linear-gradient(135deg,#1a4a6a,#0a2a4a);color:#00d4ff;font-size:1.3em;font-weight:700;cursor:pointer;transition:all .3s;margin-bottom:15px}.ss-start-btn:hover{background:linear-gradient(135deg,#2a6a8a,#1a4a6a);box-shadow:0 0 25px #00d4ff66;transform:translateY(-2px)}.ss-back-btn{padding:10px 25px;border:1px solid rgba(0,170,212,.4);border-radius:8px;background:transparent;color:#7a9aaa;font-size:.95em;cursor:pointer;transition:all .2s}.ss-back-btn:hover{border-color:#00d4ff;color:#a0d4e8}.ss-stats-bar{display:flex;gap:20px;margin-bottom:10px;font-size:.95em;color:#a0d4e8;background:#0000004d;padding:8px 20px;border-radius:8px}.ss-arena{display:flex;align-items:flex-start;gap:15px;justify-content:center}.ss-player-side,.ss-ai-side{display:flex;flex-direction:column;align-items:center}.ss-board-label{font-size:1.1em;font-weight:700;color:#a0d4e8;margin-bottom:5px}.ss-board{display:grid;grid-template-columns:repeat(6,36px);grid-template-rows:repeat(12,36px);gap:1px;background:linear-gradient(135deg,#0a1520,#060a10);border:3px solid rgba(0,170,212,.25);border-radius:6px;padding:2px;box-shadow:inset 0 0 40px #00000080,0 0 20px #00aad41a}.ss-cell{width:36px;height:36px;background:#00141e99;border:1px solid rgba(0,170,212,.1);border-radius:3px;display:flex;align-items:center;justify-content:center;position:relative;overflow:visible}.ss-cell:before{content:"";position:absolute;top:2px;left:2px;width:10px;height:10px;background:radial-gradient(circle at 30% 30%,rgba(255,255,255,.08) 0%,transparent 70%);border-radius:2px;pointer-events:none;z-index:0}@keyframes ssBreathe{0%,to{transform:scale(1);filter:brightness(1)}50%{transform:scale(1.06);filter:brightness(1.15)}}@keyframes ssSquash{0%{transform:scaleX(1.25) scaleY(.75)}35%{transform:scaleX(.85) scaleY(1.15)}65%{transform:scaleX(1.08) scaleY(.92)}to{transform:scale(1)}}@keyframes ssJiggle{0%,to{transform:rotate(0)}20%{transform:rotate(4deg)}40%{transform:rotate(-3deg)}60%{transform:rotate(2deg)}80%{transform:rotate(-1deg)}}@keyframes ssHappy{0%,to{transform:translateY(0)}30%{transform:translateY(-4px)}50%{transform:translateY(0)}70%{transform:translateY(-2px)}}.ss-slime{width:30px;height:30px;position:relative;z-index:1;animation:ssBreathe 3s ease-in-out infinite;will-change:transform,filter}.ss-conn{position:absolute;z-index:0;width:12px;height:12px;border-radius:50%;opacity:.85}.ss-conn-r{right:-7px;top:50%;transform:translateY(-50%)}.ss-conn-b{bottom:-7px;left:50%;transform:translate(-50%)}.ss-svg{width:100%;height:100%;display:block;pointer-events:none}.ss-pupil{animation:ssEyeLook 4.5s ease-in-out infinite}.ss-eye{animation:ssEyeBlink 6s ease-in-out infinite}.ss-mouth{transform-origin:center;animation:ssMouthBreathe 3s ease-in-out infinite}@keyframes ssEyeLook{0%,to{transform:translate(0)}18%{transform:translate(-.8px,.3px)}38%{transform:translate(.8px,-.3px)}58%{transform:translate(1px)}78%{transform:translate(-.5px,.4px)}}@keyframes ssEyeBlink{0%,42%,48%,to{transform:scaleY(1)}45%{transform:scaleY(.1)}}@keyframes ssMouthBreathe{0%,to{transform:scaleY(1)}50%{transform:scaleY(1.05) translateY(.3px)}}.ss-landed{animation:ssSquash .35s ease-out!important}.ss-jiggle{animation:ssJiggle .3s ease-in-out!important}.ss-happy{animation:ssHappy .45s ease-in-out!important}.ss-slime.ss-garbage{animation:none}.ss-mini{width:22px;height:22px;animation-duration:2.5s}@keyframes ssPop{0%{transform:scale(1);opacity:1}50%{transform:scale(1.3);opacity:.7}to{transform:scale(0);opacity:0}}.ss-popping{animation:ssPop .35s ease-out forwards}@keyframes ssChainFlash{0%{box-shadow:0 0 5px #ffd7004d}50%{box-shadow:0 0 25px #ffd700cc}to{box-shadow:0 0 5px #ffd7004d}}.ss-chain-flash{animation:ssChainFlash .4s ease-in-out}.ss-next-preview{display:flex;flex-direction:column;align-items:center;margin-bottom:8px;background:#0000004d;padding:6px 12px;border-radius:6px;border:1px solid rgba(0,170,212,.2)}.ss-next-label{font-size:.75em;color:#7a9aaa;margin-bottom:4px}.ss-next-pieces{display:flex;flex-direction:column;align-items:center;gap:2px}.ss-garbage-meter{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:10px 8px;min-width:50px}.ss-garbage-incoming{display:flex;flex-direction:column;align-items:center;background:#0000004d;padding:6px 10px;border-radius:6px;border:1px solid #4a3a3a}.ss-garbage-label{font-size:.7em;color:#a66}.ss-garbage-count{font-size:1.4em;font-weight:700;color:#f66}.ss-vs{font-size:1.5em;font-weight:700;color:#00d4ff;text-shadow:0 0 10px rgba(0,212,255,.5)}.ss-touch-controls{display:none;gap:10px;margin-top:15px;justify-content:center;flex-wrap:wrap}.ss-touch-btn{width:55px;height:55px;border:2px solid rgba(0,170,212,.4);border-radius:12px;background:#0a1e32e6;color:#00d4ff;font-size:1.5em;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.ss-touch-btn:active{background:#143c64e6;transform:scale(.95)}.ss-touch-drop{width:auto;padding:0 20px;font-size:1em;font-weight:700}.ss-quit-btn{margin-top:15px;padding:8px 20px;border:1px solid #6a3a3a;border-radius:6px;background:#3c1414b3;color:#f88;font-size:.9em;cursor:pointer;transition:all .2s}.ss-quit-btn:hover{border-color:#f66;background:#501e1ecc}.ss-bottom-buttons{display:flex;gap:12px;margin-top:15px}.ss-pause-btn{padding:8px 20px;border:1px solid rgba(0,170,212,.4);border-radius:6px;background:#0a1e32b3;color:#a0d4e8;font-size:.9em;cursor:pointer;transition:all .2s}.ss-pause-btn:hover{border-color:#00d4ff;color:#00d4ff}.ss-pause-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:flex;align-items:center;justify-content:center;z-index:100}.ss-pause-card{background:linear-gradient(135deg,#0a1520,#060a10);border:2px solid rgba(0,170,212,.4);border-radius:16px;padding:40px;text-align:center}.ss-pause-card h2{color:#00d4ff;font-size:2em;margin-bottom:10px}.ss-pause-card p{color:#7a9aaa;margin-bottom:25px}.ss-gameover-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000bf;display:flex;align-items:center;justify-content:center;z-index:100}.ss-result-card{background:linear-gradient(135deg,#0a1520,#060a10);border:2px solid rgba(0,170,212,.3);border-radius:16px;padding:35px;text-align:center;min-width:300px;max-width:400px}.ss-victory{border-color:#00d4ff;box-shadow:0 0 40px #00d4ff4d}.ss-victory h2{color:#00d4ff;font-size:2em;text-shadow:0 0 20px rgba(0,212,255,.5);margin-bottom:20px}.ss-defeat{border-color:#f44;box-shadow:0 0 40px #f443}.ss-defeat h2{color:#f66;font-size:2em;margin-bottom:20px}.ss-result-stats{margin-bottom:25px}.ss-stat-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:1.05em}.ss-gold-reward{color:gold;font-weight:700;font-size:1.15em;border-bottom:none;margin-top:5px}.ss-result-buttons{display:flex;flex-direction:column;gap:10px;align-items:center}@media (max-width: 600px){.ss-board{grid-template-columns:repeat(6,28px);grid-template-rows:repeat(12,28px)}.ss-cell{width:28px;height:28px}.ss-slime{width:23px;height:23px}.ss-conn{width:10px;height:10px}.ss-conn-r{right:-6px}.ss-conn-b{bottom:-6px}.ss-arena{flex-direction:row;gap:8px}.ss-touch-controls{display:flex}.ss-stats-bar{flex-wrap:wrap;gap:10px;font-size:.85em}.ss-garbage-meter{min-width:35px;padding:5px 4px}}.site-footer{position:fixed;bottom:0;left:0;right:0;z-index:100;display:flex;justify-content:center;align-items:center;gap:8px;padding:6px 16px;background:#081420;border-top:2px solid #1a4a6a;box-shadow:inset 0 1px #3098b8;font-size:12px}.site-footer a{color:#00aad499;font-size:12px;cursor:pointer;padding:2px 4px;text-decoration:none;transition:color .2s}.site-footer a:hover{color:var(--accent-primary);text-decoration:underline}.footer-separator{color:#fff3}.px-icon{display:inline-block;width:1em;height:1em;vertical-align:-.125em;background-size:contain;background-repeat:no-repeat;background-position:center;image-rendering:pixelated}.px-icon-lg{width:48px;height:48px}.px-icon-md{width:32px;height:32px}.px-icon-sm{width:20px;height:20px}.px-coin{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%23c49922'/%3E%3Crect x='3' y='2' width='2' height='1' fill='%23c49922'/%3E%3Crect x='5' y='2' width='6' height='1' fill='%23e8b832'/%3E%3Crect x='11' y='2' width='2' height='1' fill='%23c49922'/%3E%3Crect x='2' y='3' width='1' height='1' fill='%23c49922'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23e8b832'/%3E%3Crect x='13' y='3' width='1' height='1' fill='%23c49922'/%3E%3Crect x='1' y='4' width='1' height='8' fill='%23c49922'/%3E%3Crect x='2' y='4' width='12' height='8' fill='%23e8b832'/%3E%3Crect x='14' y='4' width='1' height='8' fill='%23c49922'/%3E%3Crect x='7' y='4' width='2' height='1' fill='%23ffd700'/%3E%3Crect x='6' y='5' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='7' y='5' width='2' height='1' fill='%23c49922'/%3E%3Crect x='6' y='6' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='7' y='7' width='2' height='1' fill='%23ffd700'/%3E%3Crect x='8' y='8' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='7' y='9' width='2' height='1' fill='%23c49922'/%3E%3Crect x='8' y='9' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='7' y='10' width='2' height='1' fill='%23ffd700'/%3E%3Crect x='2' y='12' width='1' height='1' fill='%23c49922'/%3E%3Crect x='3' y='12' width='10' height='1' fill='%23e8b832'/%3E%3Crect x='13' y='12' width='1' height='1' fill='%23c49922'/%3E%3Crect x='3' y='13' width='2' height='1' fill='%23c49922'/%3E%3Crect x='5' y='13' width='6' height='1' fill='%23e8b832'/%3E%3Crect x='11' y='13' width='2' height='1' fill='%23c49922'/%3E%3Crect x='5' y='14' width='6' height='1' fill='%23c49922'/%3E%3C/svg%3E")}.px-crystal{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%23d4b5ff'/%3E%3Crect x='6' y='2' width='1' height='1' fill='%23d4b5ff'/%3E%3Crect x='7' y='2' width='2' height='1' fill='%23c49bfa'/%3E%3Crect x='9' y='2' width='1' height='1' fill='%23a78bfa'/%3E%3Crect x='5' y='3' width='1' height='1' fill='%23d4b5ff'/%3E%3Crect x='6' y='3' width='2' height='1' fill='%23c49bfa'/%3E%3Crect x='8' y='3' width='2' height='1' fill='%23a78bfa'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%238b6fd4'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23d4b5ff'/%3E%3Crect x='5' y='4' width='3' height='1' fill='%23c49bfa'/%3E%3Crect x='8' y='4' width='2' height='1' fill='%23a78bfa'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%238b6fd4'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%237055b0'/%3E%3Crect x='3' y='5' width='1' height='2' fill='%23d4b5ff'/%3E%3Crect x='4' y='5' width='3' height='2' fill='%23c49bfa'/%3E%3Crect x='7' y='5' width='3' height='2' fill='%23a78bfa'/%3E%3Crect x='10' y='5' width='2' height='2' fill='%238b6fd4'/%3E%3Crect x='12' y='5' width='1' height='2' fill='%237055b0'/%3E%3Crect x='4' y='7' width='1' height='2' fill='%23c49bfa'/%3E%3Crect x='5' y='7' width='3' height='2' fill='%23a78bfa'/%3E%3Crect x='8' y='7' width='2' height='2' fill='%238b6fd4'/%3E%3Crect x='10' y='7' width='1' height='2' fill='%237055b0'/%3E%3Crect x='11' y='7' width='1' height='2' fill='%235a4090'/%3E%3Crect x='5' y='9' width='1' height='1' fill='%23a78bfa'/%3E%3Crect x='6' y='9' width='2' height='1' fill='%238b6fd4'/%3E%3Crect x='8' y='9' width='2' height='1' fill='%237055b0'/%3E%3Crect x='10' y='9' width='1' height='1' fill='%235a4090'/%3E%3Crect x='6' y='10' width='1' height='1' fill='%238b6fd4'/%3E%3Crect x='7' y='10' width='2' height='1' fill='%237055b0'/%3E%3Crect x='9' y='10' width='1' height='1' fill='%235a4090'/%3E%3Crect x='7' y='11' width='1' height='1' fill='%237055b0'/%3E%3Crect x='8' y='11' width='1' height='1' fill='%235a4090'/%3E%3Crect x='7' y='12' width='2' height='1' fill='%235a4090'/%3E%3C/svg%3E")}.px-sword{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='2' height='2' fill='%23c0c0c0'/%3E%3Crect x='12' y='2' width='2' height='2' fill='%23c0c0c0'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%23e0e0e0'/%3E%3Crect x='10' y='4' width='2' height='2' fill='%23e0e0e0'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%23c0c0c0'/%3E%3Crect x='8' y='6' width='2' height='2' fill='%23c0c0c0'/%3E%3Crect x='6' y='8' width='2' height='1' fill='%23c0c0c0'/%3E%3Crect x='8' y='8' width='2' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='9' width='2' height='1' fill='%238b6914'/%3E%3Crect x='9' y='9' width='2' height='1' fill='%238b6914'/%3E%3Crect x='4' y='10' width='2' height='1' fill='%23e8b832'/%3E%3Crect x='10' y='10' width='2' height='1' fill='%23e8b832'/%3E%3Crect x='3' y='11' width='2' height='2' fill='%238b6914'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%238b6914'/%3E%3C/svg%3E")}.px-shield{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='10' height='1' fill='%234a4aaa'/%3E%3Crect x='2' y='2' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%2300d4aa'/%3E%3Crect x='13' y='2' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='1' y='3' width='1' height='6' fill='%234a4aaa'/%3E%3Crect x='2' y='3' width='12' height='6' fill='%2300d4aa'/%3E%3Crect x='14' y='3' width='1' height='6' fill='%234a4aaa'/%3E%3Crect x='7' y='3' width='2' height='1' fill='%2300f0c0'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%2300f0c0'/%3E%3Crect x='9' y='4' width='1' height='1' fill='%2300f0c0'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%2300f0c0'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%2300f0c0'/%3E%3Crect x='5' y='6' width='6' height='1' fill='%2300f0c0'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%2300f0c0'/%3E%3Crect x='7' y='8' width='2' height='1' fill='%2300f0c0'/%3E%3Crect x='2' y='9' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='3' y='9' width='10' height='1' fill='%2300d4aa'/%3E%3Crect x='13' y='9' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='3' y='10' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='4' y='10' width='8' height='1' fill='%2300d4aa'/%3E%3Crect x='12' y='10' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%2300d4aa'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='5' y='12' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%2300d4aa'/%3E%3Crect x='10' y='12' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='6' y='13' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='7' y='13' width='2' height='1' fill='%2300d4aa'/%3E%3Crect x='9' y='13' width='1' height='1' fill='%234a4aaa'/%3E%3Crect x='7' y='14' width='2' height='1' fill='%234a4aaa'/%3E%3C/svg%3E")}.px-cards{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='8' height='11' fill='%23e8f0f8' rx='1'/%3E%3Crect x='6' y='2' width='6' height='9' fill='%23d0d8e8'/%3E%3Crect x='8' y='4' width='2' height='2' fill='%23ef4444'/%3E%3Crect x='7' y='5' width='1' height='1' fill='%23ef4444'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23ef4444'/%3E%3Crect x='3' y='3' width='8' height='11' fill='%23e8f0f8' rx='1'/%3E%3Crect x='4' y='4' width='6' height='9' fill='%23c0c8d8'/%3E%3Crect x='6' y='6' width='2' height='2' fill='%231a1a44'/%3E%3Crect x='5' y='7' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='8' y='7' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='6' y='9' width='2' height='1' fill='%231a1a44'/%3E%3C/svg%3E")}.px-shop{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='2' width='3' height='2' fill='%23e8b832'/%3E%3Crect x='4' y='3' width='10' height='1' fill='%23e8b832'/%3E%3Crect x='3' y='4' width='10' height='1' fill='%23e8b832'/%3E%3Crect x='3' y='5' width='9' height='1' fill='%23c49922'/%3E%3Crect x='4' y='6' width='8' height='1' fill='%23c49922'/%3E%3Crect x='4' y='7' width='7' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='9' width='5' height='1' fill='%23c49922'/%3E%3Crect x='5' y='10' width='4' height='1' fill='%23c49922'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%23a0a0a0'/%3E%3Crect x='10' y='12' width='2' height='2' fill='%23a0a0a0'/%3E%3C/svg%3E")}.px-book{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='2' width='10' height='12' fill='%238b6914'/%3E%3Crect x='4' y='2' width='1' height='12' fill='%23a07818'/%3E%3Crect x='5' y='3' width='7' height='10' fill='%23e8e0c8'/%3E%3Crect x='6' y='4' width='5' height='1' fill='%23a0a0a0'/%3E%3Crect x='6' y='6' width='5' height='1' fill='%23a0a0a0'/%3E%3Crect x='6' y='8' width='4' height='1' fill='%23a0a0a0'/%3E%3Crect x='6' y='10' width='5' height='1' fill='%23a0a0a0'/%3E%3C/svg%3E")}.px-craft{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='2' width='6' height='3' fill='%23a0a0a0'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='10' y='3' width='1' height='1' fill='%23808080'/%3E%3Crect x='4' y='2' width='6' height='1' fill='%23c0c0c0'/%3E%3Crect x='7' y='5' width='2' height='1' fill='%23a0a0a0'/%3E%3Crect x='7' y='6' width='2' height='7' fill='%238b6914'/%3E%3Crect x='6' y='13' width='4' height='1' fill='%238b6914'/%3E%3C/svg%3E")}.px-brain{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='2' width='6' height='1' fill='%23ec4899'/%3E%3Crect x='3' y='3' width='3' height='1' fill='%23ec4899'/%3E%3Crect x='10' y='3' width='3' height='1' fill='%23ec4899'/%3E%3Crect x='2' y='4' width='5' height='2' fill='%23f472b6'/%3E%3Crect x='9' y='4' width='5' height='2' fill='%23f472b6'/%3E%3Crect x='7' y='4' width='2' height='1' fill='%23ec4899'/%3E%3Crect x='2' y='6' width='12' height='2' fill='%23ec4899'/%3E%3Crect x='3' y='8' width='10' height='2' fill='%23f472b6'/%3E%3Crect x='7' y='6' width='2' height='2' fill='%23db2777'/%3E%3Crect x='4' y='10' width='8' height='1' fill='%23ec4899'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%23db2777'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%23ec4899'/%3E%3C/svg%3E")}.px-dice{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='12' height='12' fill='%23e8f0f8' rx='1'/%3E%3Crect x='3' y='3' width='10' height='10' fill='%23d0d8e8'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%231a1a44'/%3E%3Crect x='10' y='4' width='2' height='2' fill='%231a1a44'/%3E%3Crect x='7' y='7' width='2' height='2' fill='%231a1a44'/%3E%3Crect x='4' y='10' width='2' height='2' fill='%231a1a44'/%3E%3Crect x='10' y='10' width='2' height='2' fill='%231a1a44'/%3E%3C/svg%3E")}.px-grid3{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='6' y='2' width='3' height='3' fill='%230a8f7a'/%3E%3Crect x='10' y='2' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='2' y='6' width='3' height='3' fill='%230a8f7a'/%3E%3Crect x='6' y='6' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='10' y='6' width='3' height='3' fill='%230a8f7a'/%3E%3Crect x='2' y='10' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='6' y='10' width='3' height='3' fill='%230a8f7a'/%3E%3Crect x='10' y='10' width='3' height='3' fill='%2300d4aa'/%3E%3C/svg%3E")}.px-grid5{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='4' y='1' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='7' y='1' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='10' y='1' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='13' y='1' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='1' y='4' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='4' y='4' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='7' y='4' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='10' y='4' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='13' y='4' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='1' y='7' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='4' y='7' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='7' y='7' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='10' y='7' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='13' y='7' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='1' y='10' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='4' y='10' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='7' y='10' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='10' y='10' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='13' y='10' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='1' y='13' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='4' y='13' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='7' y='13' width='2' height='2' fill='%2300f0c0'/%3E%3Crect x='10' y='13' width='2' height='2' fill='%2300d4aa'/%3E%3Crect x='13' y='13' width='2' height='2' fill='%2300f0c0'/%3E%3C/svg%3E")}.px-team{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='2' width='3' height='3' fill='%2322c55e'/%3E%3Crect x='7' y='2' width='3' height='3' fill='%2322c55e'/%3E%3Crect x='1' y='6' width='5' height='2' fill='%2316a34a'/%3E%3Crect x='6' y='6' width='5' height='2' fill='%2316a34a'/%3E%3Crect x='2' y='8' width='3' height='4' fill='%2322c55e'/%3E%3Crect x='7' y='8' width='3' height='4' fill='%2322c55e'/%3E%3Crect x='12' y='3' width='2' height='2' fill='%2322c55e'/%3E%3Crect x='11' y='6' width='4' height='1' fill='%2316a34a'/%3E%3Crect x='12' y='7' width='2' height='3' fill='%2322c55e'/%3E%3C/svg%3E")}.px-numpad{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='1' width='12' height='14' fill='%23282828' rx='1'/%3E%3Crect x='3' y='2' width='3' height='2' fill='%23f59e0b'/%3E%3Crect x='7' y='2' width='3' height='2' fill='%23f59e0b'/%3E%3Crect x='11' y='2' width='2' height='2' fill='%23f59e0b'/%3E%3Crect x='3' y='5' width='3' height='2' fill='%23d97706'/%3E%3Crect x='7' y='5' width='3' height='2' fill='%23d97706'/%3E%3Crect x='11' y='5' width='2' height='2' fill='%23d97706'/%3E%3Crect x='3' y='8' width='3' height='2' fill='%23f59e0b'/%3E%3Crect x='7' y='8' width='3' height='2' fill='%23f59e0b'/%3E%3Crect x='11' y='8' width='2' height='2' fill='%23f59e0b'/%3E%3Crect x='3' y='11' width='10' height='2' fill='%23d97706'/%3E%3C/svg%3E")}.px-golem{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%23a0a0a0'/%3E%3Crect x='4' y='2' width='8' height='1' fill='%23c0c0c0'/%3E%3Crect x='3' y='3' width='10' height='6' fill='%23a0a0a0'/%3E%3Crect x='4' y='3' width='8' height='1' fill='%23c0c0c0'/%3E%3Crect x='5' y='5' width='2' height='2' fill='%2322c55e'/%3E%3Crect x='9' y='5' width='2' height='2' fill='%2322c55e'/%3E%3Crect x='6' y='7' width='4' height='1' fill='%23808080'/%3E%3Crect x='5' y='9' width='6' height='1' fill='%23c0c0c0'/%3E%3Crect x='4' y='10' width='8' height='3' fill='%23a0a0a0'/%3E%3Crect x='2' y='10' width='2' height='3' fill='%23808080'/%3E%3Crect x='12' y='10' width='2' height='3' fill='%23808080'/%3E%3Crect x='5' y='13' width='2' height='1' fill='%23808080'/%3E%3Crect x='9' y='13' width='2' height='1' fill='%23808080'/%3E%3C/svg%3E")}.px-party{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='2' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='10' y='2' width='3' height='3' fill='%2300d4aa'/%3E%3Crect x='2' y='6' width='5' height='2' fill='%230a8f7a'/%3E%3Crect x='9' y='6' width='5' height='2' fill='%230a8f7a'/%3E%3Crect x='3' y='8' width='3' height='4' fill='%2300d4aa'/%3E%3Crect x='10' y='8' width='3' height='4' fill='%2300d4aa'/%3E%3Crect x='3' y='12' width='1' height='2' fill='%230a8f7a'/%3E%3Crect x='5' y='12' width='1' height='2' fill='%230a8f7a'/%3E%3Crect x='10' y='12' width='1' height='2' fill='%230a8f7a'/%3E%3Crect x='12' y='12' width='1' height='2' fill='%230a8f7a'/%3E%3C/svg%3E")}.px-person{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='6' y='1' width='4' height='4' fill='%2300d4aa'/%3E%3Crect x='4' y='6' width='8' height='2' fill='%230a8f7a'/%3E%3Crect x='5' y='8' width='6' height='4' fill='%2300d4aa'/%3E%3Crect x='5' y='12' width='2' height='2' fill='%230a8f7a'/%3E%3Crect x='9' y='12' width='2' height='2' fill='%230a8f7a'/%3E%3C/svg%3E")}.px-gear{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='6' y='1' width='4' height='2' fill='%23a0a0a0'/%3E%3Crect x='6' y='13' width='4' height='2' fill='%23a0a0a0'/%3E%3Crect x='1' y='6' width='2' height='4' fill='%23a0a0a0'/%3E%3Crect x='13' y='6' width='2' height='4' fill='%23a0a0a0'/%3E%3Crect x='3' y='3' width='2' height='2' fill='%23a0a0a0'/%3E%3Crect x='11' y='3' width='2' height='2' fill='%23a0a0a0'/%3E%3Crect x='3' y='11' width='2' height='2' fill='%23a0a0a0'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%23a0a0a0'/%3E%3Crect x='4' y='4' width='8' height='8' fill='%23c0c0c0'/%3E%3Crect x='6' y='6' width='4' height='4' fill='%23808080'/%3E%3C/svg%3E")}.px-star{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='6' y='3' width='4' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='4' width='6' height='1' fill='%23ffd700'/%3E%3Crect x='2' y='5' width='12' height='2' fill='%23e8b832'/%3E%3Crect x='5' y='5' width='6' height='2' fill='%23ffd700'/%3E%3Crect x='4' y='7' width='8' height='1' fill='%23e8b832'/%3E%3Crect x='3' y='8' width='3' height='1' fill='%23e8b832'/%3E%3Crect x='10' y='8' width='3' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='8' width='6' height='1' fill='%23ffd700'/%3E%3Crect x='3' y='9' width='2' height='2' fill='%23c49922'/%3E%3Crect x='11' y='9' width='2' height='2' fill='%23c49922'/%3E%3Crect x='5' y='9' width='2' height='2' fill='%23e8b832'/%3E%3Crect x='9' y='9' width='2' height='2' fill='%23e8b832'/%3E%3Crect x='2' y='11' width='2' height='2' fill='%23c49922'/%3E%3Crect x='12' y='11' width='2' height='2' fill='%23c49922'/%3E%3C/svg%3E")}.px-fire{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='6' y='2' width='3' height='1' fill='%23ef4444'/%3E%3Crect x='7' y='2' width='1' height='1' fill='%23f59e0b'/%3E%3Crect x='5' y='3' width='5' height='1' fill='%23ef4444'/%3E%3Crect x='6' y='3' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='10' y='3' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='4' y='4' width='7' height='2' fill='%23ef4444'/%3E%3Crect x='10' y='4' width='2' height='2' fill='%23f59e0b'/%3E%3Crect x='5' y='4' width='3' height='2' fill='%23f59e0b'/%3E%3Crect x='6' y='5' width='2' height='1' fill='%23fbbf24'/%3E%3Crect x='3' y='6' width='10' height='2' fill='%23ef4444'/%3E%3Crect x='5' y='6' width='4' height='2' fill='%23f59e0b'/%3E%3Crect x='6' y='7' width='2' height='1' fill='%23fbbf24'/%3E%3Crect x='3' y='8' width='10' height='2' fill='%23dc2626'/%3E%3Crect x='5' y='8' width='5' height='2' fill='%23ef4444'/%3E%3Crect x='6' y='9' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='4' y='10' width='8' height='2' fill='%23dc2626'/%3E%3Crect x='5' y='10' width='5' height='2' fill='%23ef4444'/%3E%3Crect x='5' y='12' width='6' height='1' fill='%23b91c1c'/%3E%3Crect x='6' y='13' width='4' height='1' fill='%23991b1b'/%3E%3C/svg%3E")}.px-ice{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='14' fill='%2360a5fa'/%3E%3Crect x='1' y='7' width='14' height='2' fill='%2360a5fa'/%3E%3Crect x='3' y='3' width='2' height='2' fill='%2393c5fd'/%3E%3Crect x='11' y='3' width='2' height='2' fill='%2393c5fd'/%3E%3Crect x='3' y='11' width='2' height='2' fill='%2393c5fd'/%3E%3Crect x='11' y='11' width='2' height='2' fill='%2393c5fd'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%2360a5fa'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%2360a5fa'/%3E%3Crect x='5' y='10' width='1' height='1' fill='%2360a5fa'/%3E%3Crect x='10' y='10' width='1' height='1' fill='%2360a5fa'/%3E%3C/svg%3E")}.px-water{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%2393c5fd'/%3E%3Crect x='6' y='2' width='4' height='1' fill='%233b82f6'/%3E%3Crect x='5' y='3' width='6' height='1' fill='%233b82f6'/%3E%3Crect x='7' y='2' width='1' height='2' fill='%2393c5fd'/%3E%3Crect x='4' y='4' width='8' height='2' fill='%233b82f6'/%3E%3Crect x='5' y='4' width='2' height='1' fill='%2360a5fa'/%3E%3Crect x='3' y='6' width='10' height='3' fill='%232563eb'/%3E%3Crect x='4' y='6' width='3' height='1' fill='%233b82f6'/%3E%3Crect x='4' y='9' width='8' height='2' fill='%232563eb'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%231d4ed8'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%231d4ed8'/%3E%3Crect x='7' y='13' width='2' height='1' fill='%231d4ed8'/%3E%3C/svg%3E")}.px-earth{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='3' width='7' height='2' fill='%23a07818'/%3E%3Crect x='3' y='5' width='10' height='3' fill='%238b6914'/%3E%3Crect x='5' y='5' width='4' height='1' fill='%23a07818'/%3E%3Crect x='2' y='7' width='12' height='3' fill='%23705510'/%3E%3Crect x='4' y='7' width='3' height='2' fill='%238b6914'/%3E%3Crect x='9' y='8' width='2' height='1' fill='%238b6914'/%3E%3Crect x='3' y='10' width='10' height='2' fill='%23604a0e'/%3E%3Crect x='5' y='12' width='6' height='1' fill='%23504008'/%3E%3C/svg%3E")}.px-wind{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='3' width='8' height='1' fill='%23a0d0a0'/%3E%3Crect x='12' y='3' width='2' height='2' fill='%2380b080'/%3E%3Crect x='2' y='6' width='10' height='1' fill='%23a0d0a0'/%3E%3Crect x='1' y='7' width='2' height='2' fill='%2380b080'/%3E%3Crect x='5' y='9' width='8' height='1' fill='%23a0d0a0'/%3E%3Crect x='13' y='9' width='1' height='2' fill='%2380b080'/%3E%3Crect x='3' y='12' width='6' height='1' fill='%2380b080'/%3E%3C/svg%3E")}.px-lightning{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='8' y='1' width='3' height='1' fill='%23fbbf24'/%3E%3Crect x='7' y='2' width='3' height='1' fill='%23fbbf24'/%3E%3Crect x='6' y='3' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='5' y='4' width='3' height='1' fill='%23fbbf24'/%3E%3Crect x='4' y='5' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='3' y='6' width='8' height='2' fill='%23fbbf24'/%3E%3Crect x='7' y='8' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='6' y='9' width='3' height='1' fill='%23fbbf24'/%3E%3Crect x='5' y='10' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='4' y='11' width='3' height='1' fill='%23fbbf24'/%3E%3Crect x='3' y='12' width='3' height='1' fill='%23f59e0b'/%3E%3Crect x='3' y='13' width='2' height='1' fill='%23d97706'/%3E%3C/svg%3E")}.px-holy{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='2' fill='%23f0f0f0'/%3E%3Crect x='1' y='7' width='2' height='2' fill='%23e0e0e0'/%3E%3Crect x='13' y='7' width='2' height='2' fill='%23e0e0e0'/%3E%3Crect x='7' y='13' width='2' height='2' fill='%23e0e0e0'/%3E%3Crect x='7' y='3' width='2' height='10' fill='%23f0f0f0'/%3E%3Crect x='3' y='7' width='10' height='2' fill='%23f0f0f0'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='12' y='3' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='3' y='12' width='1' height='1' fill='%23ffd700'/%3E%3Crect x='12' y='12' width='1' height='1' fill='%23ffd700'/%3E%3C/svg%3E")}.px-poison{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%23a855f7'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%23c084fc'/%3E%3Crect x='2' y='3' width='12' height='4' fill='%23a855f7'/%3E%3Crect x='4' y='4' width='3' height='2' fill='%231a1a44'/%3E%3Crect x='9' y='4' width='3' height='2' fill='%231a1a44'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23c084fc'/%3E%3Crect x='10' y='4' width='1' height='1' fill='%23c084fc'/%3E%3Crect x='3' y='7' width='10' height='2' fill='%23a855f7'/%3E%3Crect x='6' y='7' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='8' y='7' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='4' y='9' width='8' height='1' fill='%239333ea'/%3E%3Crect x='5' y='10' width='6' height='1' fill='%237e22ce'/%3E%3Crect x='4' y='11' width='2' height='2' fill='%23a855f7'/%3E%3Crect x='7' y='11' width='2' height='2' fill='%23a855f7'/%3E%3Crect x='10' y='11' width='2' height='2' fill='%23a855f7'/%3E%3C/svg%3E")}.px-trophy{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='10' height='1' fill='%23ffd700'/%3E%3Crect x='2' y='2' width='12' height='2' fill='%23e8b832'/%3E%3Crect x='1' y='2' width='1' height='4' fill='%23c49922'/%3E%3Crect x='14' y='2' width='1' height='4' fill='%23c49922'/%3E%3Crect x='3' y='4' width='10' height='2' fill='%23e8b832'/%3E%3Crect x='2' y='5' width='1' height='2' fill='%23c49922'/%3E%3Crect x='13' y='5' width='1' height='2' fill='%23c49922'/%3E%3Crect x='4' y='6' width='8' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='7' width='6' height='1' fill='%23c49922'/%3E%3Crect x='6' y='8' width='4' height='1' fill='%23e8b832'/%3E%3Crect x='7' y='9' width='2' height='2' fill='%23c49922'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%23e8b832'/%3E%3Crect x='4' y='12' width='8' height='2' fill='%23c49922'/%3E%3Crect x='5' y='12' width='6' height='1' fill='%23e8b832'/%3E%3C/svg%3E")}.px-skull{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='2' width='6' height='1' fill='%23e8f0f8'/%3E%3Crect x='3' y='3' width='10' height='1' fill='%23d0d8e8'/%3E%3Crect x='2' y='4' width='12' height='4' fill='%23e8f0f8'/%3E%3Crect x='4' y='5' width='3' height='2' fill='%231a1a44'/%3E%3Crect x='9' y='5' width='3' height='2' fill='%231a1a44'/%3E%3Crect x='5' y='5' width='1' height='1' fill='%23e8f0f8'/%3E%3Crect x='10' y='5' width='1' height='1' fill='%23e8f0f8'/%3E%3Crect x='3' y='8' width='10' height='2' fill='%23d0d8e8'/%3E%3Crect x='6' y='8' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='9' y='8' width='1' height='2' fill='%231a1a44'/%3E%3Crect x='4' y='10' width='8' height='1' fill='%23d0d8e8'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%23c0c8d8'/%3E%3Crect x='4' y='12' width='2' height='2' fill='%23e8f0f8'/%3E%3Crect x='7' y='12' width='2' height='2' fill='%23e8f0f8'/%3E%3Crect x='10' y='12' width='2' height='2' fill='%23e8f0f8'/%3E%3C/svg%3E")}.px-warning{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='6' y='2' width='4' height='1' fill='%23f59e0b'/%3E%3Crect x='5' y='3' width='6' height='1' fill='%23f59e0b'/%3E%3Crect x='4' y='4' width='8' height='1' fill='%23f59e0b'/%3E%3Crect x='4' y='5' width='8' height='1' fill='%23d97706'/%3E%3Crect x='3' y='6' width='10' height='2' fill='%23f59e0b'/%3E%3Crect x='2' y='8' width='12' height='2' fill='%23d97706'/%3E%3Crect x='1' y='10' width='14' height='2' fill='%23f59e0b'/%3E%3Crect x='1' y='12' width='14' height='2' fill='%23d97706'/%3E%3Crect x='7' y='4' width='2' height='5' fill='%231a1a44'/%3E%3Crect x='7' y='10' width='2' height='2' fill='%231a1a44'/%3E%3C/svg%3E")}.px-clock{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%2300d4aa'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%2300d4aa'/%3E%3Crect x='2' y='3' width='12' height='10' fill='%2300f0c0'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%2300d4aa'/%3E%3Crect x='3' y='13' width='10' height='1' fill='%2300d4aa'/%3E%3Crect x='5' y='14' width='6' height='1' fill='%2300d4aa'/%3E%3Crect x='7' y='4' width='2' height='5' fill='%23e8f0f8'/%3E%3Crect x='9' y='7' width='3' height='2' fill='%23e8f0f8'/%3E%3C/svg%3E")}.px-flag{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='1' width='2' height='14' fill='%23a0a0a0'/%3E%3Crect x='5' y='2' width='8' height='6' fill='%23e8f0f8'/%3E%3Crect x='5' y='2' width='8' height='1' fill='%23d0d8e8'/%3E%3Crect x='5' y='7' width='8' height='1' fill='%23d0d8e8'/%3E%3C/svg%3E")}.px-target{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%23ef4444'/%3E%3Crect x='3' y='2' width='2' height='1' fill='%23ef4444'/%3E%3Crect x='11' y='2' width='2' height='1' fill='%23ef4444'/%3E%3Crect x='2' y='3' width='1' height='2' fill='%23ef4444'/%3E%3Crect x='13' y='3' width='1' height='2' fill='%23ef4444'/%3E%3Crect x='1' y='5' width='1' height='6' fill='%23ef4444'/%3E%3Crect x='14' y='5' width='1' height='6' fill='%23ef4444'/%3E%3Crect x='2' y='11' width='1' height='2' fill='%23ef4444'/%3E%3Crect x='13' y='11' width='1' height='2' fill='%23ef4444'/%3E%3Crect x='3' y='13' width='2' height='1' fill='%23ef4444'/%3E%3Crect x='11' y='13' width='2' height='1' fill='%23ef4444'/%3E%3Crect x='5' y='14' width='6' height='1' fill='%23ef4444'/%3E%3Crect x='7' y='1' width='2' height='14' fill='%23ef4444'/%3E%3Crect x='1' y='7' width='14' height='2' fill='%23ef4444'/%3E%3Crect x='6' y='6' width='4' height='4' fill='%23dc2626'/%3E%3Crect x='7' y='7' width='2' height='2' fill='%23ef4444'/%3E%3C/svg%3E")}.px-sparkle{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='7' y='1' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='7' y='13' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='1' y='7' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='13' y='7' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='6' y='3' width='4' height='1' fill='%23e8b832'/%3E%3Crect x='3' y='6' width='1' height='4' fill='%23e8b832'/%3E%3Crect x='12' y='6' width='1' height='4' fill='%23e8b832'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%23e8b832'/%3E%3Crect x='5' y='5' width='6' height='6' fill='%23ffd700'/%3E%3Crect x='6' y='6' width='4' height='4' fill='%23e8b832'/%3E%3Crect x='7' y='7' width='2' height='2' fill='%23ffd700'/%3E%3Crect x='4' y='4' width='1' height='1' fill='%23e8b832'/%3E%3Crect x='11' y='4' width='1' height='1' fill='%23e8b832'/%3E%3Crect x='4' y='11' width='1' height='1' fill='%23e8b832'/%3E%3Crect x='11' y='11' width='1' height='1' fill='%23e8b832'/%3E%3C/svg%3E")}.px-ticket{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='4' width='14' height='8' fill='%23e8b832'/%3E%3Crect x='2' y='5' width='12' height='6' fill='%23ffd700'/%3E%3Crect x='10' y='4' width='1' height='2' fill='%23c49922'/%3E%3Crect x='10' y='10' width='1' height='2' fill='%23c49922'/%3E%3Crect x='10' y='6' width='1' height='4' fill='%23c49922' opacity='0.5'/%3E%3Crect x='3' y='6' width='2' height='1' fill='%23c49922'/%3E%3Crect x='3' y='8' width='4' height='1' fill='%23c49922'/%3E%3Crect x='12' y='7' width='2' height='2' fill='%23e8b832'/%3E%3C/svg%3E")}.px-orb{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%23c084fc'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%23a855f7'/%3E%3Crect x='2' y='3' width='12' height='8' fill='%23a855f7'/%3E%3Crect x='4' y='3' width='3' height='2' fill='%23c084fc'/%3E%3Crect x='5' y='4' width='1' height='1' fill='%23d4b5ff'/%3E%3Crect x='3' y='11' width='10' height='1' fill='%239333ea'/%3E%3Crect x='5' y='12' width='6' height='1' fill='%237e22ce'/%3E%3Crect x='4' y='13' width='8' height='1' fill='%23a0a0a0'/%3E%3Crect x='3' y='14' width='10' height='1' fill='%23808080'/%3E%3C/svg%3E")}.px-meteor{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='1' y='1' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='2' y='2' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='3' y='3' width='2' height='1' fill='%23f97316'/%3E%3Crect x='7' y='3' width='4' height='2' fill='%23f97316'/%3E%3Crect x='8' y='3' width='2' height='1' fill='%23fbbf24'/%3E%3Crect x='5' y='5' width='6' height='4' fill='%23f97316'/%3E%3Crect x='6' y='5' width='3' height='2' fill='%23fbbf24'/%3E%3Crect x='7' y='6' width='1' height='1' fill='%23fef3c7'/%3E%3Crect x='4' y='8' width='6' height='2' fill='%23ea580c'/%3E%3Crect x='5' y='10' width='3' height='1' fill='%23dc2626'/%3E%3Crect x='11' y='5' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='12' y='6' width='2' height='1' fill='%23f59e0b'/%3E%3Crect x='13' y='7' width='1' height='1' fill='%23f97316'/%3E%3C/svg%3E")}.px-gem{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='3' width='8' height='2' fill='%2322c55e'/%3E%3Crect x='5' y='3' width='3' height='1' fill='%234ade80'/%3E%3Crect x='3' y='5' width='10' height='1' fill='%2316a34a'/%3E%3Crect x='2' y='6' width='12' height='3' fill='%2322c55e'/%3E%3Crect x='4' y='6' width='3' height='1' fill='%234ade80'/%3E%3Crect x='3' y='9' width='10' height='1' fill='%2316a34a'/%3E%3Crect x='4' y='10' width='8' height='1' fill='%2315803d'/%3E%3Crect x='5' y='11' width='6' height='1' fill='%23166534'/%3E%3Crect x='6' y='12' width='4' height='1' fill='%23166534'/%3E%3C/svg%3E")}.px-shadow{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='5' y='1' width='6' height='1' fill='%234b5563'/%3E%3Crect x='3' y='2' width='10' height='1' fill='%234b5563'/%3E%3Crect x='2' y='3' width='12' height='10' fill='%23374151'/%3E%3Crect x='4' y='4' width='3' height='2' fill='%234b5563'/%3E%3Crect x='3' y='13' width='10' height='1' fill='%234b5563'/%3E%3Crect x='5' y='14' width='6' height='1' fill='%23374151'/%3E%3C/svg%3E")}.px-paw{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='3' y='2' width='2' height='3' fill='%23ec4899'/%3E%3Crect x='7' y='1' width='2' height='3' fill='%23ec4899'/%3E%3Crect x='11' y='2' width='2' height='3' fill='%23ec4899'/%3E%3Crect x='1' y='6' width='2' height='2' fill='%23ec4899'/%3E%3Crect x='13' y='6' width='2' height='2' fill='%23ec4899'/%3E%3Crect x='4' y='7' width='8' height='4' fill='%23f472b6'/%3E%3Crect x='3' y='8' width='1' height='2' fill='%23ec4899'/%3E%3Crect x='12' y='8' width='1' height='2' fill='%23ec4899'/%3E%3Crect x='5' y='11' width='6' height='2' fill='%23ec4899'/%3E%3Crect x='6' y='13' width='4' height='1' fill='%23db2777'/%3E%3C/svg%3E")}.px-package{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='2' y='3' width='12' height='3' fill='%23a07818'/%3E%3Crect x='7' y='3' width='2' height='3' fill='%23c49922'/%3E%3Crect x='2' y='6' width='12' height='8' fill='%238b6914'/%3E%3Crect x='7' y='6' width='2' height='8' fill='%23a07818'/%3E%3Crect x='6' y='7' width='4' height='2' fill='%23c49922'/%3E%3C/svg%3E")}.px-scroll{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' shape-rendering='crispEdges'%3E%3Crect x='4' y='1' width='9' height='2' fill='%23d4c8a0'/%3E%3Crect x='3' y='1' width='1' height='2' fill='%23b0a070'/%3E%3Crect x='13' y='1' width='1' height='2' fill='%23b0a070'/%3E%3Crect x='4' y='3' width='8' height='10' fill='%23e8e0c8'/%3E%3Crect x='5' y='4' width='6' height='1' fill='%23c0b898'/%3E%3Crect x='5' y='6' width='6' height='1' fill='%23c0b898'/%3E%3Crect x='5' y='8' width='5' height='1' fill='%23c0b898'/%3E%3Crect x='5' y='10' width='6' height='1' fill='%23c0b898'/%3E%3Crect x='3' y='13' width='1' height='2' fill='%23b0a070'/%3E%3Crect x='4' y='13' width='9' height='2' fill='%23d4c8a0'/%3E%3Crect x='13' y='13' width='1' height='2' fill='%23b0a070'/%3E%3C/svg%3E")}.profile-page{max-width:900px;margin:0 auto;padding:20px;--profile-accent: #00aad4}.profile-header-bar{display:flex;align-items:center;gap:16px;margin-bottom:20px}.profile-header-bar h2{color:var(--text-primary);margin:0;font-size:1.3rem}.profile-loading,.profile-error,.profile-empty{color:var(--text-secondary);text-align:center;padding:40px 20px}.profile-error{color:#ef4444}.profile-header-card{background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;padding:20px;margin-bottom:20px}.profile-header-top{display:flex;gap:20px;align-items:flex-start}.profile-avatar-section{flex-shrink:0}.profile-avatar-section .player-avatar{width:80px;height:80px}.profile-info-section{flex:1;min-width:0}.profile-name-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}.profile-name{font-size:1.4rem;font-weight:700;color:var(--text-bright)}.profile-badge{background:var(--profile-accent);color:#000;font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:10px;text-transform:uppercase}.profile-title{color:var(--profile-accent);font-style:italic;font-size:.95rem}.profile-meta{color:var(--text-secondary);font-size:.85rem;margin-bottom:4px}.profile-sep{margin:0 8px;color:var(--text-muted)}.profile-status{font-weight:700}.profile-status.online{color:#22c55e}.profile-status.offline{color:var(--text-muted)}.profile-bio{margin-top:16px;padding-top:16px;border-top:1px solid var(--border-subtle)}.profile-bio-content{color:var(--text-primary);line-height:1.6;word-break:break-word}.profile-border-default{border-color:var(--profile-accent);border-width:1px}.profile-border-gold{border:2px solid #e8b832;box-shadow:0 0 12px #e8b8324d}.profile-border-crystal{border:2px solid #88ddff;box-shadow:0 0 15px #88ddff40}.profile-border-fire{border:2px solid #ff6633;box-shadow:0 0 15px #ff66334d}.profile-border-ice{border:2px solid #66ccff;box-shadow:0 0 15px #66ccff40}.profile-border-lightning{border:2px solid #ffee44;box-shadow:0 0 15px #ffee444d}.profile-border-shadow{border:2px solid #8855cc;box-shadow:0 0 15px #8855cc4d}.profile-border-nature{border:2px solid #44cc66;box-shadow:0 0 15px #44cc6640}.profile-tabs{display:flex;gap:4px;border-bottom:2px solid var(--border-subtle);margin-bottom:20px;flex-wrap:wrap}.profile-tab{background:none;border:none;color:var(--text-secondary);padding:10px 16px;cursor:pointer;font-size:.9rem;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .2s,border-color .2s}.profile-tab:hover{color:var(--text-primary)}.profile-tab.active{color:var(--profile-accent);border-bottom-color:var(--profile-accent)}.profile-tab-edit{margin-left:auto;color:var(--profile-accent)}.profile-tab-edit:hover{color:var(--text-bright)}.profile-tab-content{min-height:200px}.profile-stats-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-bottom:20px}.profile-stat-card{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:6px;padding:16px;text-align:center}.profile-stat-value{font-size:1.6rem;font-weight:700;color:var(--profile-accent)}.profile-stat-label{font-size:.8rem;color:var(--text-secondary);margin-top:4px}.profile-featured-deck{color:var(--text-secondary);font-size:.9rem;padding:12px;background:var(--bg-panel);border-radius:6px}.profile-label{color:var(--text-muted);font-weight:700}.profile-deck-desc{color:var(--text-muted);font-style:italic}.profile-record-table{width:100%;border-collapse:collapse;margin-bottom:16px}.profile-record-table th{text-align:left;padding:8px 12px;color:var(--profile-accent);font-size:.85rem;border-bottom:1px solid var(--border-subtle)}.profile-record-table td{padding:8px 12px;color:var(--text-primary);font-size:.9rem;border-bottom:1px solid rgba(100,120,140,.1)}.profile-record-table tr:nth-child(2n) td{background:#00000026}.profile-record-total td{font-weight:700;border-top:2px solid var(--profile-accent);color:var(--text-bright)}.stat-win{color:#22c55e}.stat-loss{color:#ef4444}.stat-draw{color:#f59e0b}.profile-streak-info{color:var(--text-secondary);font-size:.9rem;padding:12px;background:var(--bg-panel);border-radius:6px}.profile-matches-filter{margin-bottom:16px}.profile-matches-filter select{background:var(--input-bg);border:1px solid var(--border-color);color:var(--text-primary);padding:6px 10px;border-radius:4px}.profile-match-list{display:flex;flex-direction:column;gap:4px}.profile-match-item{display:flex;align-items:center;gap:12px;padding:10px 12px;background:var(--bg-panel);border-radius:4px;border-left:3px solid var(--text-muted)}.profile-match-item.match-win{border-left-color:#22c55e}.profile-match-item.match-loss{border-left-color:#ef4444}.profile-match-item.match-draw{border-left-color:#f59e0b}.match-result-badge{font-weight:700;font-size:.85rem;width:24px;text-align:center}.match-win .match-result-badge{color:#22c55e}.match-loss .match-result-badge{color:#ef4444}.match-draw .match-result-badge{color:#f59e0b}.match-type{color:var(--text-muted);font-size:.8rem;width:40px}.match-opponent{flex:1;color:var(--text-primary);cursor:pointer}.match-opponent:hover{color:var(--profile-accent)}.match-date{color:var(--text-muted);font-size:.8rem}.profile-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:16px}.profile-pagination button{background:var(--bg-panel);border:1px solid var(--border-color);color:var(--text-primary);padding:6px 12px;border-radius:4px;cursor:pointer}.profile-pagination button:disabled{opacity:.4;cursor:default}.profile-pagination span{color:var(--text-secondary);font-size:.85rem}.profile-achievement-grid{display:flex;flex-direction:column;gap:8px}.profile-achievement-item{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg-panel);border-radius:6px;border:1px solid var(--border-subtle)}.achievement-icon{font-size:1.4rem;width:36px;text-align:center;flex-shrink:0}.achievement-info{flex:1}.achievement-name{color:var(--text-bright);font-weight:700;font-size:.95rem}.achievement-desc{color:var(--text-secondary);font-size:.8rem;margin-top:2px}.achievement-title-award{color:var(--profile-accent);font-size:.75rem;font-style:italic;margin-top:4px}.achievement-date{color:var(--text-muted);font-size:.75rem;flex-shrink:0}.profile-trophy-list{display:flex;flex-direction:column;gap:8px}.profile-trophy-item{display:flex;align-items:center;gap:12px;padding:12px;background:var(--bg-panel);border-radius:6px;border:1px solid var(--border-subtle)}.trophy-icon{font-size:1.4rem;flex-shrink:0}.trophy-info{flex:1}.trophy-name{color:var(--gold-accent);font-weight:700}.trophy-desc{color:var(--text-secondary);font-size:.8rem;margin-top:2px}.trophy-date{color:var(--text-muted);font-size:.75rem;flex-shrink:0}.profile-showcase{margin-top:24px;padding-top:20px;border-top:1px solid var(--border-subtle)}.profile-showcase-title{color:var(--profile-accent);font-size:1rem;margin:0 0 12px}.profile-showcase-cards{display:flex;gap:12px;flex-wrap:wrap}.profile-showcase-card{width:100px;text-align:center}.showcase-card-img{width:100px;height:130px;object-fit:cover;border-radius:6px;border:2px solid var(--profile-accent);box-shadow:0 0 10px rgba(var(--profile-accent),.3)}.showcase-card-placeholder{width:100px;height:130px;background:var(--bg-panel);border:2px solid var(--profile-accent);border-radius:6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.showcase-card-name{font-size:.7rem;color:var(--text-secondary)}.showcase-card-values{font-size:.75rem;color:var(--text-muted);display:flex;flex-direction:column;align-items:center}.showcase-card-label{font-size:.75rem;color:var(--text-secondary);margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-editor-section{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px;padding:16px;margin-bottom:16px}.profile-editor-section h3{color:var(--profile-accent);font-size:.95rem;margin:0 0 12px}.bio-format-bar{display:flex;gap:4px;margin-bottom:8px;position:relative;align-items:center}.bio-format-bar .format-dropdown{position:relative}.bio-format-bar .format-dropdown-menu{display:none;position:absolute;top:100%;left:0;margin-top:.35rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:.5rem;z-index:100;min-width:80px}.bio-format-bar .format-dropdown:hover .format-dropdown-menu{display:block}.bio-format-bar .format-dropdown-menu button{display:block;width:100%;padding:.35rem .75rem;background:transparent;border:none;color:var(--text-primary);font-size:.85rem;text-align:left;cursor:pointer;border-radius:4px}.bio-format-bar .format-dropdown-menu button:hover{background:#ffffff1a}.bio-format-bar .color-picker-popup{position:absolute;top:100%;left:0;margin-top:.35rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:6px;padding:.5rem;display:grid;grid-template-columns:repeat(6,1fr);gap:.35rem;z-index:100;min-width:180px}.bio-format-bar .emoji-picker-container{position:relative}.bio-format-bar .emoji-picker{position:absolute;top:100%;right:0;margin-top:.35rem;background:#1f2937;border:1px solid rgba(255,255,255,.15);border-radius:8px;padding:.5rem;z-index:200;max-width:240px;max-height:220px;overflow-y:auto}.bio-format-bar .emoji-picker .emoji-grid{grid-template-columns:repeat(5,1fr)}.bio-textarea{width:100%;background:var(--input-bg);border:1px solid var(--border-color);color:var(--text-primary);padding:10px;border-radius:4px;resize:vertical;font-family:inherit;font-size:.9rem;box-sizing:border-box}.bio-textarea:focus{outline:none;border-color:var(--profile-accent)}.bio-preview{margin-top:10px;padding:10px;background:var(--bg-panel);border-radius:4px;min-height:40px}.bio-preview-label{color:var(--text-muted);font-size:.75rem;display:block;margin-bottom:6px}.bio-preview-content{color:var(--text-primary);line-height:1.5}.bio-char-count{text-align:right;color:var(--text-muted);font-size:.75rem;margin-top:4px}.accent-color-grid{display:flex;gap:8px;flex-wrap:wrap}.accent-color-swatch{width:36px;height:36px;border-radius:6px;border:2px solid transparent;cursor:pointer;transition:transform .15s,border-color .15s;background-image:none!important;box-shadow:none;padding:0}.accent-color-swatch:hover{transform:scale(1.15)}.accent-color-swatch.selected{border-color:var(--text-bright);box-shadow:0 0 8px #ffffff4d}.border-style-grid{display:flex;gap:8px;flex-wrap:wrap}.border-style-option{padding:10px 16px;background:var(--bg-panel);border-radius:6px;color:var(--text-secondary);cursor:pointer;font-size:.8rem;text-transform:capitalize;transition:transform .15s}.border-style-option:hover{transform:scale(1.05)}.border-style-option.selected{color:var(--text-bright);box-shadow:0 0 0 2px var(--profile-accent)}.showcase-selected-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.showcase-selected-item{display:flex;align-items:center;gap:6px;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:4px;padding:4px 8px;font-size:.8rem;color:var(--text-primary)}.showcase-selected-item button{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1rem;padding:0}.showcase-selected-item button:hover{color:#ef4444}.profile-editor-btn{background:var(--bg-panel);border:1px solid var(--profile-accent);color:var(--profile-accent);padding:8px 16px;border-radius:4px;cursor:pointer;font-size:.85rem}.profile-editor-btn:hover{background:#00aad41a}.profile-editor-select{background:var(--input-bg);border:1px solid var(--border-color);color:var(--text-primary);padding:8px 12px;border-radius:4px;width:100%;max-width:400px}.profile-editor-actions{display:flex;align-items:center;gap:16px;margin-top:20px}.profile-save-btn{background:var(--btn-primary-bg);border:none;color:#fff;padding:12px 32px;border-radius:6px;font-size:1rem;font-weight:700;cursor:pointer;box-shadow:var(--btn-primary-shadow)}.profile-save-btn:hover{background:var(--btn-primary-hover);box-shadow:var(--btn-primary-shadow-hover)}.profile-save-btn:disabled{opacity:.6;cursor:default}.profile-save-msg{font-size:.85rem}.profile-save-msg.success{color:#22c55e}.profile-save-msg.error{color:#ef4444}.showcase-picker-modal{background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;width:90vw;max-width:600px;max-height:80vh;display:flex;flex-direction:column;box-shadow:var(--shadow-heavy)}.showcase-picker-header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--border-subtle)}.showcase-picker-header h3{color:var(--text-bright);margin:0;font-size:1rem}.showcase-picker-search{margin:12px 16px;padding:8px 12px;background:var(--input-bg);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:.9rem}.showcase-picker-search:focus{outline:none;border-color:var(--accent-primary)}.showcase-picker-grid{padding:0 16px;overflow-y:auto;flex:1;display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;align-content:start}.showcase-picker-card{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:4px;padding:10px;cursor:pointer;text-align:center;transition:border-color .15s}.showcase-picker-card:hover{border-color:var(--accent-primary)}.showcase-picker-card.selected{border-color:var(--accent-primary);background:#00aad41a}.showcase-picker-card.disabled{opacity:.4;cursor:default}.showcase-picker-card-name{color:var(--text-primary);font-size:.85rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.showcase-picker-card-level{color:var(--text-muted);font-size:.75rem;margin-top:2px}.showcase-picker-footer{padding:12px 16px;border-top:1px solid var(--border-subtle);text-align:right}.lobby-online-user.clickable{cursor:pointer}.lobby-online-user.clickable:hover{color:var(--accent-primary);text-decoration:underline}.lobby-chat-username.clickable{cursor:pointer}.lobby-chat-username.clickable:hover{color:var(--accent-primary);text-decoration:underline}@media (max-width: 600px){.profile-header-top{flex-direction:column;align-items:center;text-align:center}.profile-name-row{justify-content:center}.profile-meta{text-align:center}.profile-stats-grid{grid-template-columns:repeat(3,1fr)}.profile-showcase-cards,.accent-color-grid,.border-style-grid{justify-content:center}.profile-tabs{overflow-x:auto}}.mail-container{max-width:800px;margin:0 auto;padding:1rem}.mail-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.mail-header h2{color:var(--text-bright);margin:0;font-size:1.3rem;flex:1}.mail-unread-badge{background:#ef4444;color:#fff;font-size:.75rem;font-weight:700;padding:.2rem .6rem;border-radius:10px}.mail-toolbar{margin-bottom:1rem}.mail-compose-btn{padding:.5rem 1.2rem;background:var(--accent-primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:.85rem;transition:background .15s}.mail-compose-btn:hover{background:var(--accent-hover)}.mail-list{display:flex;flex-direction:column;border:1px solid var(--border-color);border-radius:8px;overflow:hidden}.mail-row{display:grid;grid-template-columns:24px 1fr auto auto auto 32px;align-items:center;gap:.5rem;padding:.65rem .75rem;background:var(--bg-card);border-bottom:1px solid var(--border-subtle);cursor:pointer;transition:background .1s}.mail-row:last-child{border-bottom:none}.mail-row:hover{background:#00aad40d}.mail-row.mail-unread{background:#00aad414}.mail-row.mail-unread .mail-row-subject{font-weight:700;color:var(--text-bright)}.mail-row-status{display:flex;align-items:center;justify-content:center}.mail-unread-dot{width:8px;height:8px;border-radius:50%;background:var(--accent-primary)}.mail-row-subject{color:var(--text-primary);font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mail-row-icons{display:flex;gap:.3rem;font-size:.75rem}.mail-icon-gold{color:#f59e0b}.mail-icon-card{color:#60a5fa}.mail-row-sender{color:var(--text-muted);font-size:.8rem;white-space:nowrap;max-width:100px;overflow:hidden;text-overflow:ellipsis}.mail-row-date{color:var(--text-muted);font-size:.75rem;white-space:nowrap}.mail-row-delete{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1.1rem;padding:0;line-height:1;opacity:.5;transition:opacity .15s,color .15s}.mail-row-delete:hover{opacity:1;color:#ef4444}.mail-system-sender{font-style:italic;color:var(--text-muted)}.mail-empty{text-align:center;padding:3rem 1rem;color:var(--text-muted)}.mail-empty-icon{font-size:3rem;margin-bottom:.5rem;opacity:.4}.mail-view{background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;padding:1.25rem}.mail-view-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;flex-wrap:wrap;gap:.5rem}.mail-view-from{color:var(--text-primary);font-size:.9rem}.mail-view-date{color:var(--text-muted);font-size:.8rem}.mail-view-subject{color:var(--text-bright);margin:0 0 1rem;font-size:1.1rem;border-bottom:1px solid var(--border-subtle);padding-bottom:.75rem}.mail-view-body{color:var(--text-primary);font-size:.9rem;line-height:1.6;margin-bottom:1.25rem;word-break:break-word}.mail-view-attachments{background:#00000026;border:1px solid var(--border-subtle);border-radius:6px;padding:1rem;margin-bottom:1rem}.mail-view-attachments h4{color:var(--text-bright);margin:0 0 .75rem;font-size:.9rem}.mail-attachment-item{display:flex;align-items:center;gap:.5rem;padding:.4rem 0;color:var(--text-primary);font-size:.85rem}.mail-attachment-icon{font-size:1rem}.mail-gold-icon{color:#f59e0b}.mail-card-icon{color:#60a5fa}.mail-collected-badge{background:#22c55e26;color:#22c55e;padding:.15rem .5rem;border-radius:4px;font-size:.75rem;font-weight:600}.mail-collect-btn{margin-top:.75rem;padding:.45rem 1rem;background:#22c55e;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;font-size:.85rem;transition:background .15s}.mail-collect-btn:hover{background:#16a34a}.mail-collect-btn:disabled{opacity:.5;cursor:not-allowed}.mail-view-actions{display:flex;gap:.5rem;padding-top:.75rem;border-top:1px solid var(--border-subtle)}.mail-action-btn{padding:.4rem 1rem;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:6px;color:var(--text-primary);cursor:pointer;font-size:.85rem;transition:all .15s}.mail-action-btn:hover{border-color:var(--accent-primary);color:var(--text-bright)}.mail-delete-btn:hover{border-color:#ef4444;color:#ef4444}.mail-compose-form{background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;padding:1.25rem}.mail-field{margin-bottom:1rem;position:relative}.mail-field label{display:block;color:var(--text-muted);font-size:.8rem;margin-bottom:.3rem;font-weight:600}.mail-field input,.mail-field textarea{width:100%;padding:.5rem .75rem;background:var(--input-bg);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:.9rem;font-family:inherit;box-sizing:border-box}.mail-field input:focus,.mail-field textarea:focus{outline:none;border-color:var(--accent-primary)}.mail-field textarea{resize:vertical;min-height:100px}.mail-char-count{position:absolute;right:8px;bottom:6px;color:var(--text-muted);font-size:.7rem}.mail-attachments-section{margin:1rem 0;padding:1rem;background:#0000001a;border:1px solid var(--border-subtle);border-radius:6px}.mail-attachments-section h4{color:var(--text-bright);margin:0 0 .75rem;font-size:.9rem}.mail-attachment-row{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.mail-attachment-row label{color:var(--text-muted);font-size:.8rem;font-weight:600;min-width:45px}.mail-attachment-row input[type=number]{width:120px;padding:.35rem .5rem;background:var(--input-bg);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:.85rem}.mail-gold-avail{color:var(--text-muted);font-size:.75rem}.mail-attached-card{display:inline-flex;align-items:center;gap:.35rem;background:#00aad41a;border:1px solid rgba(0,170,212,.3);border-radius:4px;padding:.3rem .6rem;color:var(--text-primary);font-size:.85rem}.mail-remove-card{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1rem;padding:0;line-height:1}.mail-remove-card:hover{color:#ef4444}.mail-choose-card-btn{padding:.35rem .75rem;background:var(--bg-panel);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);cursor:pointer;font-size:.85rem;transition:border-color .15s}.mail-choose-card-btn:hover{border-color:var(--accent-primary)}.mail-preview{margin-bottom:1rem;padding:.75rem;background:#0000001a;border:1px solid var(--border-subtle);border-radius:4px}.mail-preview label{display:block;color:var(--text-muted);font-size:.75rem;margin-bottom:.4rem;font-weight:600}.mail-preview-content{color:var(--text-primary);font-size:.85rem;line-height:1.5;word-break:break-word}.mail-send-btn{width:100%;padding:.6rem;background:var(--accent-primary);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:700;font-size:.95rem;transition:background .15s}.mail-send-btn:hover:not(:disabled){background:var(--accent-hover)}.mail-send-btn:disabled{opacity:.5;cursor:not-allowed}.mail-error{color:#ef4444;font-size:.85rem;margin-bottom:.75rem;padding:.5rem;background:#ef44441a;border-radius:4px}.mail-success{text-align:center;padding:3rem 1rem}.mail-success-icon{font-size:3rem;margin-bottom:.5rem}.mail-success h3{color:#22c55e;margin:.5rem 0}.mail-success p{color:var(--text-muted)}.mode-btn.mode-mail{position:relative}.mail-menu-badge{position:absolute;top:12px;right:12px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:700;padding:.15rem .4rem;border-radius:10px;min-width:18px;text-align:center}.px-icon.px-mail{font-style:normal;font-size:1.5rem}.profile-tab-mail{color:var(--accent-primary)!important;border-color:var(--accent-primary)!important}.profile-tab-mail:hover{background:#00aad41a!important}@media (max-width: 640px){.mail-row{grid-template-columns:20px 1fr auto 28px;padding:.5rem;gap:.3rem}.mail-row-sender,.mail-row-date{display:none}.mail-view-meta{flex-direction:column;align-items:flex-start}.mail-attachment-row{flex-wrap:wrap}.mail-compose-form{padding:.75rem}}.admin-announcements{padding:0}.ann-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.ann-header h3{margin:0}.ann-status-badge{display:inline-block;padding:2px 10px;border-radius:12px;font-size:.8em;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.ann-status-draft{background:#444;color:#ccc}.ann-status-scheduled{background:#1a3a5c;color:#5bb8f0}.ann-status-sending{background:#0a3a3a;color:#00e5ff}.ann-status-paused{background:#3a3000;color:#fc0}.ann-status-completed{background:#0a3a0a;color:#4caf50}.ann-status-cancelled{background:#3a0a0a;color:#f44336}.ann-status-sent{background:#0a3a0a;color:#4caf50}.ann-status-failed{background:#3a0a0a;color:#f44336}.ann-status-bounced{background:#3a2000;color:#ff9800}.ann-status-pending{background:#333;color:#aaa}.ann-actions{display:flex;gap:4px;flex-wrap:wrap}.ann-compose{max-width:800px}.ann-compose .mail-field{margin-bottom:12px}.ann-compose textarea{width:100%;min-height:200px;resize:vertical}.ann-preview{margin:12px 0;border:1px solid #333;border-radius:6px;overflow:hidden}.ann-preview label{display:block;padding:6px 12px;background:#1a1a2e;font-size:.85em;color:#888;border-bottom:1px solid #333}.ann-preview-content{padding:12px;background:#0f0f1a;color:#e0e0e0;line-height:1.6;min-height:60px;word-break:break-word}.ann-schedule-section{margin:16px 0;padding:12px;background:#1a1a2e;border-radius:6px}.ann-schedule-section>label{display:block;margin-bottom:8px;font-weight:600;color:#aaa}.ann-schedule-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ann-radio{display:flex;align-items:center;gap:6px;cursor:pointer;color:#ccc}.ann-datetime{padding:6px 10px;background:#16213e;border:1px solid #333;border-radius:4px;color:#e0e0e0;font-size:.9em}.ann-eligible{margin:8px 0;color:#888;font-size:.9em}.ann-compose-actions{display:flex;gap:10px;margin-top:16px}.ann-stats-view h3{margin:12px 0 8px}.ann-progress-bar-container{display:flex;align-items:center;gap:12px;margin:16px 0}.ann-progress-bar{flex:1;height:22px;background:#1a1a2e;border-radius:11px;overflow:hidden;border:1px solid #333}.ann-progress-fill{height:100%;background:linear-gradient(90deg,#00aad4,#00e5ff);transition:width .5s ease;border-radius:11px}.ann-progress-text{font-weight:700;font-size:.95em;min-width:40px;color:#00e5ff}.ann-stats-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px;margin:16px 0}.ann-stat-card{text-align:center;padding:12px 8px;background:#16213e;border-radius:8px;border:1px solid #333}.ann-stat-card.sent{border-color:#4caf50}.ann-stat-card.pending{border-color:#666}.ann-stat-card.failed{border-color:#f44336}.ann-stat-card.bounced{border-color:#ff9800}.ann-stat-value{font-size:1.6em;font-weight:700;color:#fff}.ann-stat-label{font-size:.8em;color:#888;margin-top:4px;text-transform:uppercase}.ann-error-msg{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.85em;color:#f44336}.ann-test-section{margin:16px 0;padding:12px;background:#1a1a2e;border-radius:6px;border:1px dashed #333}.ann-test-section>label{display:block;margin-bottom:8px;font-weight:600;color:#aaa;font-size:.9em}.ann-test-row{display:flex;gap:8px;align-items:center}.ann-test-input{flex:1;padding:6px 10px;background:#16213e;border:1px solid #333;border-radius:4px;color:#e0e0e0;font-size:.9em}.ann-test-results{margin-top:8px;font-size:.85em}.ann-test-result{padding:4px 0;border-bottom:1px solid #222}.ann-test-result.sent{color:#4caf50}.ann-test-result.error{color:#f44336}.ann-status-published{background:#0a3a0a;color:#66bb6a}.ann-template-buttons{display:flex;align-items:center;gap:6px;margin-bottom:16px;flex-wrap:wrap}.ann-featured-preview{position:relative;display:inline-block;max-width:300px;border-radius:6px;overflow:hidden;border:1px solid #333}.ann-featured-preview img{display:block;width:100%;height:auto}.ann-featured-remove{position:absolute;top:6px;right:6px;width:24px;height:24px;border-radius:50%;background:#000000b3;color:#f44336;border:1px solid #f44336;cursor:pointer;font-size:.8em;font-weight:700;display:flex;align-items:center;justify-content:center;line-height:1}.ann-featured-remove:hover{background:#f44336;color:#fff}.ann-publish-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.ann-category-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:.75em;font-weight:600;text-transform:capitalize}.ann-cat-version_update{background:#1a3a5c;color:#5bb8f0}.ann-cat-bug_fix{background:#3a1a1a;color:#f08080}.ann-cat-improvement{background:#1a3a1a;color:#80f080}.ann-cat-event{background:#3a3a00;color:#f0f050}.ann-cat-general{background:#2a2a3a;color:#b0b0d0}.ann-mode-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:.75em;font-weight:600}.ann-mode-email_only{background:#2a2a3a;color:#b0b0d0}.ann-mode-site_only{background:#0a3a3a;color:#00e5ff}.ann-mode-site_and_email{background:#1a3a1a;color:#80f080}.news-banner{width:100%;max-width:800px;margin:12px auto;padding:8px 14px;display:flex;align-items:center;gap:10px;background:#00aad40f;border:1px solid rgba(0,170,212,.18);border-radius:8px;cursor:pointer;transition:background .2s ease,border-color .2s ease;overflow:hidden;box-sizing:border-box}.news-banner:hover{background:#00aad41f;border-color:#00aad459}.news-banner-category{flex-shrink:0;padding:1px 8px;border-radius:8px;font-size:.65em;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.news-banner-title{flex:1;min-width:0;color:var(--text-primary);font-size:.88em;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.news-banner-date{flex-shrink:0;color:#666;font-size:.75em}.news-banner-arrow{flex-shrink:0;color:#00aad499;font-size:.9em}.news-carousel{max-width:800px;margin:24px auto;padding:0 1rem}.news-carousel-header{margin-bottom:12px}.news-carousel-title{font-size:1.1rem;font-weight:700;color:var(--text-primary)}.news-carousel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.news-card{position:relative;border-radius:8px;overflow:hidden;border:1px solid var(--border-color);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.news-card:hover{transform:translateY(-3px);box-shadow:0 6px 24px #00aad433}.news-card-image{aspect-ratio:16 / 9;background-color:#0c1a28;background-size:cover;background-position:center;background-image:linear-gradient(135deg,#0c1a28,#162030);display:flex;flex-direction:column;justify-content:flex-end}.news-card-overlay{background:linear-gradient(transparent 0%,#000000d9);padding:40px 12px 12px;display:flex;flex-direction:column;gap:4px}.news-card-category{display:inline-block;width:fit-content;padding:1px 8px;border-radius:8px;font-size:.65em;font-weight:700;text-transform:uppercase;letter-spacing:.5px}.news-cat-version_update{background:#1a3a5c;color:#5bb8f0}.news-cat-bug_fix{background:#3a1a1a;color:#f08080}.news-cat-improvement{background:#1a3a1a;color:#80f080}.news-cat-event{background:#3a3a00;color:#f0f050}.news-cat-general{background:#2a2a3a;color:#b0b0d0}.news-card-title{color:#fff;font-weight:700;font-size:.95em;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.news-card-date{color:#888;font-size:.75em}.news-post-page{max-width:800px;margin:0 auto;padding:1rem}.news-post-hero{width:100%;height:300px;background-size:cover;background-position:center;border-radius:10px;position:relative;margin-bottom:20px;overflow:hidden}.news-post-hero-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(transparent 40%,#0009)}.news-post-content{background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;padding:24px}.news-post-meta{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}.news-post-date{color:#888;font-size:.85em}.news-post-author{color:#666;font-size:.85em}.news-post-title{font-size:1.5rem;font-weight:700;color:var(--text-bright);margin:0 0 16px;line-height:1.3}.news-post-body{color:var(--text-secondary);line-height:1.7;font-size:.95em;word-break:break-word}.news-post-body strong{color:var(--text-primary)}.news-post-body img{max-width:100%;height:auto;border-radius:6px;margin:8px 0}.news-post-body br{display:block;content:"";margin-top:.4em}@media (max-width: 600px){.news-carousel-grid{grid-template-columns:1fr}.news-post-hero{height:200px}.news-post-title{font-size:1.2rem}.news-post-content{padding:16px}}.admin-tab-guide{margin-left:auto;color:var(--accent-primary);font-weight:600}.admin-guide{max-width:800px}.admin-guide>h3{font-size:1.3rem;margin-bottom:.25rem;color:var(--text-primary)}.admin-guide-intro{color:var(--text-muted);font-size:.9rem;margin-bottom:1.5rem}.admin-guide-section{border:1px solid rgba(0,170,212,.15);border-radius:8px;margin-bottom:.5rem;background:#00141e66;overflow:hidden}.admin-guide-section summary{padding:.75rem 1rem;cursor:pointer;font-weight:600;font-size:.95rem;color:var(--text-primary);background:#00aad40d;-webkit-user-select:none;user-select:none;list-style:none;display:flex;align-items:center;gap:.5rem}.admin-guide-section summary:before{content:"▸";font-size:.8rem;color:var(--accent-primary);transition:transform .2s}.admin-guide-section[open] summary:before{transform:rotate(90deg)}.admin-guide-section summary:hover{background:#00aad41a}.admin-guide-section summary::-webkit-details-marker{display:none}.admin-guide-body{padding:1rem 1.25rem;font-size:.9rem;line-height:1.65;color:var(--text-secondary);border-top:1px solid rgba(0,170,212,.1)}.admin-guide-body h4{font-size:.9rem;color:var(--accent-primary);margin:1rem 0 .4rem;font-weight:600}.admin-guide-body h4:first-child{margin-top:0}.admin-guide-body p{margin-bottom:.5rem}.admin-guide-body ul,.admin-guide-body ol{padding-left:1.25rem;margin-bottom:.5rem}.admin-guide-body li{margin-bottom:.3rem}.admin-guide-body code{background:#00aad41a;padding:.1rem .4rem;border-radius:3px;font-size:.85rem;color:var(--accent-primary)}.admin-guide-body strong{color:var(--text-primary)}@media (max-width: 900px){.app:has(.game-layout.with-sidebar){overflow:auto;overflow-x:hidden;height:auto;min-height:100vh}}@media (max-width: 480px){.mp-board.ott-board{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));aspect-ratio:5 / 7;width:100%;min-width:0;max-width:calc(100vw - 40px);padding:8px}.mp-board.ott-board .mp-cell{width:100%;height:100%}.board.ott-board{grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,auto);max-width:calc(100vw - 32px)}.board.ott-board .cell{aspect-ratio:5 / 7}.board.ott-board .cardTT{width:100%;height:auto;aspect-ratio:5 / 7}}@media (max-width: 360px){.mp-board.ott-board,.board.ott-board{gap:2px;padding:4px}}@media (max-width: 480px){.game-layout.with-sidebar:not(.mp-game-layout).sidebar-collapsed .game-main{margin-right:16px;margin-left:16px}.game-layout.with-sidebar:not(.mp-game-layout) .game-main{margin-right:16px;margin-left:16px}.welcome-section .player-avatar{width:100px;height:120px}.tott-score-display{gap:6px;max-width:100%}.tott-team{padding:4px 8px;min-width:0}.tott-team .team-players{flex-wrap:wrap;justify-content:center;white-space:normal;gap:4px}.tott-player{font-size:11px;overflow:hidden;text-overflow:ellipsis;max-width:120px}}@media (max-width: 480px){.sidebar-docked{width:min(280px,85vw)}}@media (max-width: 380px){.mp-hand-card{width:45px}.mp-hand-card .card-value{font-size:.5rem;width:14px;height:14px}.hand .cardTT{width:45px}.hand .cardTT .num{font-size:.5rem;width:12px;height:12px}}@media (max-width: 600px){.rule-hint,.trade-card-name,.game-chat-message,.in-game-rules-list .rule-name{font-size:.75rem}}@media (max-width: 768px){.game-chat-quick-btns button,.sidebar-toggle,.close-btn{min-height:44px;min-width:44px}}@media (max-width: 480px){.ai-deck-selection{padding:1rem}.rules-config-screen,.lobby-container{padding:.5rem}}@media (max-width: 400px){.profile-stats-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 480px){.ttw-card{width:65px}.ttw-card .card-value{font-size:.6rem;width:15px;height:15px}.ttw-hand{gap:.3rem}}@media (max-width: 600px){.board:not(.ott-board){grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,auto);width:100%;max-width:min(calc(100vw - 24px),320px);box-sizing:border-box}.board:not(.ott-board) .cell{aspect-ratio:5 / 7}.board:not(.ott-board) .cardTT{width:100%;height:100%}.mp-game-layout .mp-board:not(.ott-board){width:100%;min-width:0;max-width:min(calc(100vw - 24px),320px)}.mp-game-layout .mp-board.ott-board{width:100%;min-width:0;max-width:min(calc(100vw - 40px),400px)}.sb-coin-grid{max-width:calc(100vw - 48px)}.multiplayer-game,.chin-game-container,.sb-game-area{overflow-x:auto}}.leaderboard-widget{background:var(--bg-card);border:1px solid var(--border-color);border-radius:12px;padding:16px;max-width:480px;width:100%;margin:16px auto}.lb-widget-loading{color:var(--text-muted);text-align:center;padding:12px 0;font-size:.85rem}.lb-widget-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border-subtle)}.lb-widget-title{font-size:.95rem;font-weight:700;color:var(--text-primary);letter-spacing:.5px;text-transform:uppercase}.lb-widget-subtitle{font-size:.75rem;color:var(--text-muted)}.lb-widget-list{display:flex;flex-direction:column;gap:6px}.lb-widget-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:6px;transition:background .15s}.lb-widget-row:hover{background:#00aad40f}.lb-widget-pos{width:28px;height:28px;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;color:var(--text-secondary);border-radius:50%;flex-shrink:0}.lb-medal-gold{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#000!important;box-shadow:0 0 8px #fbbf2466}.lb-medal-gold:after{content:"1"}.lb-medal-silver{background:linear-gradient(135deg,#d1d5db,#9ca3af);color:#000!important;box-shadow:0 0 8px #9ca3af66}.lb-medal-silver:after{content:"2"}.lb-medal-bronze{background:linear-gradient(135deg,#d97706,#92400e);color:#fff!important;box-shadow:0 0 8px #d977064d}.lb-medal-bronze:after{content:"3"}.lb-widget-name{flex:1;font-size:.9rem;font-weight:600;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-rank-badge{font-size:.75rem;font-weight:700;letter-spacing:.3px;text-transform:uppercase;white-space:nowrap}.lb-widget-elo{font-size:.85rem;font-weight:600;color:var(--text-secondary);min-width:36px;text-align:right}.lb-widget-viewall{display:block;width:100%;margin-top:12px;padding:8px 0;background:transparent;border:1px solid var(--accent-primary);border-radius:8px;color:var(--accent-primary);font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.lb-widget-viewall:hover{background:var(--accent-subtle);color:var(--accent-hover)}.full-leaderboard{max-width:900px;margin:0 auto;padding:24px 16px}.lb-header{display:flex;align-items:center;gap:16px;margin-bottom:20px}.lb-back-btn{background:var(--bg-card);border:1px solid var(--border-color);color:var(--text-secondary);padding:8px 16px;border-radius:8px;cursor:pointer;font-size:.85rem;transition:all .2s}.lb-back-btn:hover{background:var(--accent-subtle);color:var(--accent-primary);border-color:var(--accent-primary)}.lb-title{font-size:1.4rem;color:var(--text-primary);margin:0}.lb-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}.lb-tab{padding:8px 16px;background:var(--bg-card);border:1px solid var(--border-color);border-radius:8px;color:var(--text-secondary);font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s}.lb-tab:hover{background:var(--accent-subtle);color:var(--text-primary)}.lb-tab.active{background:var(--accent-primary);color:#fff;border-color:var(--accent-primary);box-shadow:0 0 12px #00aad44d}.lb-mode-name{font-size:.85rem;color:var(--text-muted);margin-bottom:20px}.lb-loading{text-align:center;color:var(--text-muted);padding:40px 0}.lb-top3{display:flex;justify-content:center;align-items:flex-end;gap:12px;margin-bottom:24px}.lb-top3-card{background:var(--bg-card);border:2px solid var(--border-color);border-radius:12px;padding:16px 20px;text-align:center;cursor:pointer;transition:all .2s;width:160px}.lb-top3-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-medium)}.lb-top3-empty{visibility:hidden}.lb-podium-gold{border-color:#fbbf24;box-shadow:0 0 20px #fbbf2433;order:2;transform:translateY(-8px)}.lb-podium-gold:hover{box-shadow:0 0 30px #fbbf244d;transform:translateY(-10px)}.lb-podium-silver{border-color:#9ca3af;box-shadow:0 0 15px #9ca3af26;order:1}.lb-podium-bronze{border-color:#d97706;box-shadow:0 0 15px #d9770626;order:3}.lb-top3-trophy{font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:1px;margin-bottom:8px}.lb-podium-gold .lb-top3-trophy{color:#fbbf24}.lb-podium-silver .lb-top3-trophy{color:#9ca3af}.lb-podium-bronze .lb-top3-trophy{color:#d97706}.lb-top3-avatar{display:flex;justify-content:center;margin-bottom:8px}.lb-avatar-mini{width:36px;height:36px;border-radius:50%;border:2px solid var(--border-color)}.lb-top3-name{font-size:.95rem;font-weight:700;color:var(--text-primary);margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lb-top3-elo{font-size:1.1rem;font-weight:800;color:var(--accent-primary);margin-bottom:4px}.lb-top3-record{font-size:.75rem;color:var(--text-muted)}.lb-my-rank{background:var(--accent-subtle);border:1px solid var(--accent-primary);border-radius:8px;padding:10px 16px;text-align:center;color:var(--accent-primary);font-weight:600;font-size:.9rem;margin-bottom:16px}.lb-my-rank-inlist{margin-top:16px;margin-bottom:0}.lb-table-wrapper{overflow-x:auto;border-radius:12px;border:1px solid var(--border-color)}.lb-table{width:100%;border-collapse:collapse;background:var(--bg-card)}.lb-table th{background:var(--bg-panel);padding:10px 12px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted);text-align:left;border-bottom:1px solid var(--border-color)}.lb-table td{padding:10px 12px;font-size:.85rem;color:var(--text-secondary);border-bottom:1px solid var(--border-subtle)}.lb-table tbody tr{transition:background .15s}.lb-table tbody tr:hover{background:#00aad40f}.lb-table tbody tr.lb-row-me{background:#00aad41a;border-left:3px solid var(--accent-primary)}.lb-top3-card.lb-row-me{box-shadow:0 0 20px #00aad44d}.lb-table-pos{font-weight:700;color:var(--text-muted);width:40px}.lb-table-name{font-weight:600;color:var(--text-primary)}.lb-table-elo{font-weight:700;color:var(--accent-primary)}.lb-table-record{color:var(--text-muted);font-size:.8rem}.mode-btn.mode-rankings{border-color:#fbbf244d}.mode-btn.mode-rankings:hover{border-color:#fbbf2480;box-shadow:0 0 15px #fbbf2426}@media (max-width: 700px){.lb-top3{flex-direction:column;align-items:center}.lb-top3-card{width:100%;max-width:280px}.lb-podium-gold{order:1;transform:none}.lb-podium-gold:hover{transform:translateY(-2px)}.lb-podium-silver{order:2}.lb-podium-bronze{order:3}.lb-tabs{gap:4px}.lb-tab{padding:6px 10px;font-size:.8rem}.lb-title{font-size:1.1rem}.leaderboard-widget{margin:12px 8px}}
