*,:before,:after{box-sizing:border-box}*{margin:0}html,body,#root{height:100%}body{-webkit-font-smoothing:antialiased;background:radial-gradient(circle at top, #d100d126, transparent 40%), var(--bg);line-height:1.5}:root{--primary:#d100d1;--primary-hover:#ec00ec;--primary-focus:#707;--bg:#050508;--card:#0d0d14;--panel-bg:#13131c;--border:#1e1e2a;--input-bg:#1c1c26;--text-on-dark:#fff;--text-strong:#e8e6f0;--text:#8b8a96;--error:#ef4444;--success:#22c55e;--shadow-sm:0 2px 8px #00000040;--shadow-md:0 8px 20px #00000059;--radius-sm:6px;--radius-md:10px;--space-xs:6px;--space-sm:10px;--space-md:16px;--space-lg:24px;--font-sans:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;font-family:var(--font-sans);color:var(--text);background:var(--bg);font-size:16px}#root{flex-direction:column;min-height:100%;display:flex}h1,h2,h3{color:var(--text-strong);font-weight:500}h1{font-size:32px}h2{font-size:22px}p{color:var(--text)}a{color:var(--primary);text-decoration:none;transition:color .2s}a:hover{color:var(--primary-hover)}a:visited{color:var(--primary)}input,textarea,select{width:100%;padding:var(--space-sm);border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--input-bg);color:var(--text-strong);font:inherit;resize:none;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:var(--primary);outline:none;box-shadow:0 0 0 3px #ff00ff80}button{padding:var(--space-sm);border-radius:var(--radius-sm);background:var(--primary);color:var(--text-on-dark);font:inherit;cursor:pointer;border:none;transition:background .2s}button:hover{background:var(--primary-hover)}button:disabled{opacity:.6;cursor:not-allowed}.container{width:100%;max-width:420px;padding:var(--space-lg);margin:0 auto}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-lg);box-shadow:var(--shadow-sm)}.panel{background:var(--panel-bg);border:1px solid var(--border);border-radius:var(--radius-md);padding:var(--space-lg);box-shadow:var(--shadow-sm)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.toast-container{z-index:9999;flex-direction:column;align-items:center;gap:12px;display:flex;position:fixed;top:90px;left:50%;transform:translate(-50%)}.toast{color:#f1f1f1;background:#171923;border:1px solid #2b2d36;border-radius:8px;min-width:300px;max-width:460px;padding:14px 45px 18px 18px;font-size:14px;animation:.25s toast-show;position:relative;overflow:hidden;box-shadow:0 10px 30px #00000059}.toast.success{border-color:#22c55e}.toast.error{border-color:#ef4444}.toast-message{line-height:1.4;display:block}.toast-close{color:#aaa;cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:14px;transition:all .15s;display:flex;position:absolute;top:12px;right:10px}.toast-close:hover{color:#fff}.toast-progress{opacity:.7;background:currentColor;width:100%;height:3px;animation:4s linear forwards toast-progress;position:absolute;bottom:0;left:0}.toast.success .toast-progress{color:#22c55e}.toast.error .toast-progress{color:#ef4444}@keyframes toast-progress{0%{width:100%}to{width:0%}}@keyframes toast-show{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@media (width<=640px){.toast-container{align-items:stretch;top:75px;left:12px;right:12px;transform:none}.toast{width:100%;min-width:0}}.default-box{box-sizing:border-box;background:var(--panel-bg);border-radius:12px;flex-direction:column;gap:12px;width:min(360px,100%);margin:100px auto;padding:24px;display:flex}.default-box h2{text-align:center;color:var(--text-on-dark);margin:0}.default-box input{box-sizing:border-box;background:var(--input-bg);width:100%;color:var(--text-on-dark);border:none;border-radius:8px;padding:10px}.default-box button{width:100%;color:var(--text-on-dark);cursor:pointer;border:none;border-radius:8px;padding:10px}.msg{text-align:center;min-height:20px;color:var(--text-on-dark);overflow-wrap:anywhere;word-break:break-word;font-size:14px}@media (width<=640px){.default-box{border-radius:10px;gap:10px;width:calc(100% - 16px);margin:24px auto;padding:16px}.default-box h2{font-size:20px}.default-box input,.default-box button{height:42px;font-size:14px}.msg{font-size:13px}}.navbar{padding:var(--space-md) var(--space-lg);background:var(--panel-bg);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex}.navbar-brand{font-size:24px;font-weight:800;color:#fff!important}.navbar-brand:hover{color:var(--primary-hover)!important}.navbar-links{gap:var(--space-md);display:flex}.navbar a{color:var(--text);padding:var(--space-xs) 0;border-bottom:2px solid #0000;font-size:15px;text-decoration:none;transition:color .2s}.navbar a:hover{color:var(--primary-hover)}.navbar a.active{color:var(--primary);border-bottom-color:var(--primary)}.navbar-link{color:var(--text);padding:var(--space-xs) 0;border-bottom:2px solid #0000;font-size:15px;text-decoration:none;transition:color .2s}.navbar-link:hover{color:var(--primary-hover)}#nav-toggle{display:none}.navbar-burger{cursor:pointer;color:var(--text-strong);font-size:22px;display:none}@media (width<=640px){.navbar{flex-wrap:wrap}.navbar-burger{display:block}.navbar-links{gap:var(--space-sm);width:100%;padding-top:var(--space-sm);flex-direction:column;align-items:flex-start;display:none}#nav-toggle:checked~.navbar-links{display:flex}}.card-stack-wrapper{align-items:center;gap:var(--space-md);flex-direction:column;display:flex}.card-stack{perspective:1000px;width:320px;height:320px;position:relative}.card-item{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-md);flex-direction:column;justify-content:center;align-items:center;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;inset:0}.card-item.center{box-shadow:0 10px 30px #00000026;z-index:100!important}.card-item.left{transform-origin:100%}.card-item.right{transform-origin:0}.card-word{color:var(--text-strong);box-sizing:border-box;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:break-word;-webkit-hyphens:auto;hyphens:auto;max-width:100%;padding:0 16px;font-size:22px}.card-item.guessed{border-color:var(--success);box-shadow:0 0 15px #4caf504d}.card-item.not-guessed{border-color:#f44336}.card-actions{margin-top:var(--space-md);gap:var(--space-sm);display:flex}.card-actions button{cursor:pointer;border:none;border-radius:8px;padding:8px 16px;font-weight:500;transition:all .2s}.card-actions button:first-child{color:#fff;background:#4caf50}.card-actions button:last-child{color:#fff;background:#f44336}.card-nav{gap:var(--space-sm);align-items:center;display:flex}.card-nav button{border:1px solid var(--border);background:var(--primary);cursor:pointer;border-radius:8px;padding:8px 16px}.card-nav button:disabled{opacity:.5;cursor:not-allowed}@media (width<=900px){.card-stack{width:280px;height:280px}.card-word{padding:0 14px;font-size:20px}.card-actions{flex-wrap:wrap;justify-content:center}}@media (width<=640px){.card-stack{width:min(85vw,260px);height:min(85vw,260px)}.card-item.left,.card-item.right{pointer-events:none;visibility:hidden;opacity:0!important}.card-item.center{visibility:visible;opacity:1!important;filter:none!important;transform:translate(0)scale(1)!important}.card-word{white-space:normal;overflow-wrap:anywhere;word-break:break-word;-webkit-hyphens:auto;hyphens:auto;padding:0 12px;font-size:18px;line-height:1.3}.card-actions{box-sizing:border-box;flex-direction:column;gap:8px;width:100%;padding:0 12px}.card-actions button{width:100%;padding:10px}.card-nav{gap:8px}.card-nav button{padding:6px 12px}}@media (width<=420px){.card-stack{width:min(90vw,220px);height:min(90vw,220px)}.card-word{padding:0 10px;font-size:16px}.card-actions button,.card-nav{font-size:13px}}.team-grid{justify-content:center;gap:16px;width:fit-content;margin:12px auto;display:flex}.game-result{text-align:center}.team-box{border:1px solid var(--primary);border-radius:10px;flex-direction:column;width:160px;height:160px;padding:8px;display:flex;overflow:hidden}.team-title{text-align:center;margin-bottom:8px;font-size:15px;font-weight:600}.team-players{flex-direction:column;flex:1;gap:4px;font-size:12px;display:flex;overflow-y:auto}.player{border-radius:6px;justify-content:space-between;align-items:center;padding:2px 4px;display:flex}.player.turn{background:#7850b41f;border:1px solid #a0a0a099;font-weight:600}.player-name{flex:1;align-items:center;gap:6px;min-width:0;display:flex;position:relative}.name-text{white-space:nowrap;text-overflow:ellipsis;color:#fff;overflow:hidden}.name-text.offline{color:#ffffff59}.me-tag{opacity:.8;color:#fff;font-size:11px}.host-icon{color:#fff;flex-shrink:0;justify-content:center;align-items:center;font-size:24px;line-height:1;display:flex;transform:translateY(-15%)}.host-icon.offline{color:#ffffff59}.player-right{justify-content:flex-end;align-items:center;min-width:34px;display:flex;position:relative}.player-score{color:#fff;white-space:nowrap}.player-score.offline{color:#ffffff59}.kick-btn{all:unset;cursor:pointer;width:auto;height:auto;color:var(--primary);text-shadow:0 0 6px var(--primary-hover);-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;margin:0;padding:0;font-size:14px;line-height:1;transition:color .15s,text-shadow .15s;display:inline-flex;box-shadow:none!important;background:0 0!important;border:none!important}.kick-btn:hover{color:var(--primary-hover);text-shadow:0 0 10px var(--primary-hover)}.kick-btn:active{transform:scale(.9)}.player.disconnected .name-text,.player.disconnected .player-score,.player.disconnected .host-icon{color:#ffffff59}.empty{opacity:.3;text-align:center}.join-btn{background:var(--primary);color:#fff;cursor:pointer;border:none;border-radius:6px;margin-top:auto;padding:4px;font-size:12px}.team-box.winner{border-color:var(--success);box-shadow:0 0 20px #22c55e59}.team-box.winner .team-title{color:var(--success)}@media (width<=900px){.team-grid{box-sizing:border-box;flex-wrap:wrap;gap:12px;width:100%;max-width:720px;padding:0 12px}.team-box{width:160px}}@media (width<=640px){.team-grid{box-sizing:border-box;flex-wrap:wrap;justify-content:center;gap:8px;width:100%;padding:0 8px}.team-box{width:calc(50% - 4px);min-width:140px;height:160px}.team-title{margin-bottom:6px;font-size:13px}.team-players{gap:2px;font-size:11px}.player{padding:2px}.host-icon{font-size:18px}.player-score{font-size:11px}.me-tag{font-size:10px}.join-btn{height:28px;font-size:11px}}@media (width<=420px){.team-grid{gap:6px;padding:0 6px}.team-box{width:calc(50% - 3px);min-width:0}.team-title{font-size:12px}.host-icon{font-size:16px}.player-score,.name-text{font-size:10px}}.action-container{margin-top:var(--space-lg);justify-content:center;display:flex}.action-button{border-radius:var(--radius-md);background:var(--primary);box-shadow:var(--shadow-md);padding:14px 28px;font-size:18px}.action-button:hover{background:var(--primary-hover)}.edit-pack-layout{box-sizing:border-box;justify-content:center;width:100%;height:90%;padding:10px;display:flex}.edit-pack-window{background:#0c0d12;border:1px solid #23242c;border-radius:8px;flex-direction:column;width:90%;max-width:1280px;height:100%;display:flex;overflow:hidden}.edit-pack-header{background:#101118;border-bottom:1px solid #2a2c35;justify-content:space-between;align-items:center;height:78px;padding:0 24px;display:flex}.edit-pack-header h2{color:#f1f1f1;font-size:clamp(20px,2vw,28px);font-weight:500}.edit-pack-info{color:#d0d0d0;font-size:clamp(14px,1.5vw,18px)}.edit-pack-content{flex:1;grid-template-columns:360px 1fr;min-height:0;display:grid}.pack-panel{border-right:1px solid #2a2c35;flex-direction:column;min-height:0;display:flex}.pack-form{flex-direction:column;flex:1;gap:12px;padding:24px;display:flex}.pack-form label{color:#c8c8c8;font-size:14px}.pack-form textarea{resize:none;border-radius:6px}.words-panel{flex-direction:column;min-height:0;display:flex}.words-input{border-bottom:1px solid #2a2c35;padding:12px}.words-input input{border-radius:6px;height:42px}.words-list{flex-wrap:wrap;flex:1;align-content:flex-start;gap:10px;min-height:0;padding:24px;display:flex;overflow-y:auto}.word-item{color:#f1f1f1;cursor:pointer;-webkit-user-select:none;user-select:none;white-space:normal;overflow-wrap:anywhere;word-break:break-word;background:#171923;border:1px solid #2b2d36;border-radius:6px;align-items:center;gap:8px;max-width:100%;min-height:38px;padding:0 12px;font-size:15px;font-weight:500;transition:background .15s,border-color .15s;display:flex}.input-hint{color:#888;margin-top:6px;font-size:12px;line-height:1.3}.word-input-wrapper{align-items:center;gap:10px;display:flex;position:relative}.word-input-wrapper input{flex:1}.info-button{color:#cfcfcf;cursor:pointer;background:#171923;border:1px solid #2b2d36;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;font-size:18px;font-weight:600;transition:all .15s;display:flex}.info-button:hover{border-color:var(--primary);color:#fff;background:#ffffff0d}.info-button:active{transform:scale(.96)}.info-popup{color:#d6d6d6;z-index:100;background:#171923;border:1px solid #2b2d36;border-radius:8px;width:290px;padding:14px 16px;font-size:14px;line-height:1.6;position:absolute;top:calc(100% + 10px);right:0;box-shadow:0 12px 30px #00000073}.info-popup:before{content:"";background:#171923;border-top:1px solid #2b2d36;border-left:1px solid #2b2d36;width:10px;height:10px;position:absolute;top:-6px;right:14px;transform:rotate(45deg)}.info-popup div+div{margin-top:6px}.word-item:hover{background:#ffffff0a}.word-item.active{border-color:var(--primary);background:#d100d11f}.remove-word{border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:22px;height:22px;padding:0;font-size:12px;line-height:1;display:flex}.pack-actions,.words-actions{background:#0f1016;border-top:1px solid #2a2c35;flex-shrink:0;gap:12px;padding:20px 24px;display:flex}.pack-actions button,.words-actions button{border-radius:6px;flex:1;height:44px}.danger-btn{background:var(--error)}.danger-btn:hover{background:#dc2626}@media (width<=900px){.edit-pack-content{grid-template-columns:1fr}.pack-panel{border-bottom:1px solid #2a2c35;border-right:none}.edit-pack-layout{padding:12px}.edit-pack-window{width:100%;height:calc(100dvh - 24px)}.edit-pack-content{flex-direction:column;min-height:0;display:flex}.pack-panel{border-bottom:1px solid #2a2c35;border-right:none;flex-direction:column;flex:0 0 320px;min-height:320px;max-height:320px;display:flex}.pack-form{flex:1;min-height:0;overflow-y:auto}.words-panel{flex-direction:column;flex:1;min-height:0;display:flex}.words-list{flex:1;min-height:0;overflow-y:auto}.word-item{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%}}@media (width<=640px){.edit-pack-layout{padding:8px}.edit-pack-window{border-radius:8px;width:100%;height:calc(100dvh - 16px)}.edit-pack-header{flex-direction:column;align-items:flex-start;gap:4px;height:auto;padding:12px}.edit-pack-header h2{margin:0;font-size:20px}.edit-pack-info{font-size:14px}.edit-pack-content{flex-direction:column;min-height:0;display:flex}.pack-panel{border-bottom:1px solid #2a2c35;border-right:none;flex-direction:column;flex:0 0 260px;min-height:260px;max-height:260px;display:flex}.pack-form{flex:1;gap:8px;min-height:0;padding:12px;overflow-y:auto}.pack-form label{font-size:13px}.pack-form input,.pack-form textarea{font-size:14px}.pack-form textarea{min-height:90px}.pack-actions{gap:10px;padding:12px}.words-panel{flex-direction:column;flex:1;min-height:0;display:flex}.words-input{padding:8px}.words-input input{box-sizing:border-box;width:100%;height:36px}.words-list{flex:1;gap:8px;min-height:0;padding:12px;overflow-y:auto}.word-item{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%;min-height:36px;padding:6px 10px;font-size:14px}.remove-word{flex-shrink:0;width:20px;height:20px}.pack-actions,.words-actions{padding:12px}.words-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.pack-actions button,.words-actions button{width:100%;height:42px}.word-input-wrapper{gap:8px}.info-button{width:36px;height:36px;font-size:16px}.info-popup{width:220px;font-size:13px;right:0}}.my-packs-page{gap:var(--space-lg);flex-direction:column;display:flex}.packs-list{gap:var(--space-sm);flex-direction:column;display:flex}.pack-card{padding:var(--space-md);border-radius:var(--radius-md);background:var(--card);border:1px solid var(--border);cursor:pointer;transition:transform .15s,border-color .15s}.pack-card:hover{border-color:var(--primary)}.pack-name{color:var(--text-strong);font-size:16px}.pack-meta{color:var(--text);margin-top:4px;font-size:13px}.pagination{margin-top:var(--space-lg);justify-content:space-between;align-items:center;display:flex}.page-info{color:var(--text)}.create-game-layout{box-sizing:border-box;justify-content:center;width:100%;min-height:100dvh;padding:16px;display:flex}.create-game-window{background:#0c0d12;border:1px solid #23242c;border-radius:8px;flex-direction:column;width:min(1280px,100%);height:calc(90dvh - 32px);display:flex;overflow:hidden}.create-game-header{background:#101118;border-bottom:1px solid #2a2c35;flex-shrink:0;justify-content:space-between;align-items:center;height:78px;padding:0 24px;display:flex}.create-game-header h2{color:#f1f1f1;margin:0;font-size:clamp(20px,2vw,28px);font-weight:500}.create-game-info{color:#d0d0d0;font-size:clamp(14px,1.5vw,18px)}.create-game-content{flex:1;grid-template-columns:320px 1fr;min-height:0;display:grid}.packs-panel{border-right:1px solid #2a2c35;flex-direction:column;min-height:0;display:flex}.packs-search{border-bottom:1px solid #2a2c35;flex-shrink:0;padding:12px}.packs-search input{color:#f1f1f1;box-sizing:border-box;background:#171923;border:1px solid #2b2d36;border-radius:6px;width:100%;height:42px;padding:0 12px}.packs-list{flex:1;min-height:0;overflow-y:auto}.pack-item{color:#ececec;cursor:pointer;border-bottom:1px solid #ffffff0a;padding:16px 20px;font-size:18px;font-weight:600;transition:background .15s}.pack-item:hover{background:#ffffff08}.pack-item.active{background:#d100d114}.packs-loader{color:#7b7d87;justify-content:center;align-items:center;height:60px;display:flex}.cards-panel{flex-direction:column;min-width:0;min-height:0;display:flex}.cards-list{flex-wrap:wrap;flex:1;align-content:flex-start;gap:10px;min-height:0;padding:24px;display:flex;overflow-y:auto}.card-chip{color:#f1f1f1;background:#171923;border:1px solid #2b2d36;border-radius:6px;align-items:center;padding:8px 14px;font-size:14px;font-weight:500;line-height:1;display:inline-flex}.game-form{background:#0f1016;border-top:1px solid #2a2c35;flex-shrink:0;align-items:flex-end;gap:16px;padding:20px 24px;display:flex}.game-field{flex-direction:column;gap:6px;min-width:120px;display:flex}.game-field-password{flex:1}.game-field label{color:#8f93a1;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:600}.game-field input{color:#f1f1f1;box-sizing:border-box;background:#171923;border:1px solid #2b2d36;border-radius:6px;width:100%;height:44px;padding:0 12px}.game-field input:focus{border-color:var(--primary);outline:none}.game-form button{border-radius:6px;flex:0 0 160px;height:44px;margin-left:auto}.game-field input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.game-field input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.game-field input[type=number]{appearance:textfield}.field-status{opacity:.6;font-size:.85em}@media (width<=900px){.card-chip{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%;line-height:1.3}.create-game-content{flex-direction:column;min-height:0;display:flex}.packs-panel{border-bottom:1px solid #2a2c35;border-right:none;flex-direction:column;flex:0 0 260px;min-height:260px;max-height:260px;display:flex}.packs-list{flex:1;min-height:0;overflow-y:auto}.pack-item{box-sizing:border-box;align-items:center;min-height:52px;font-size:16px;display:flex}.cards-panel{flex-direction:column;flex:1;min-height:0;display:flex}.cards-list{flex:1;min-height:0;overflow-y:auto}}@media (width<=640px){.create-game-layout{padding:8px}.create-game-window{border-radius:8px;width:100%;height:calc(100dvh - 16px)}.create-game-header{flex-direction:column;align-items:flex-start;gap:4px;height:auto;padding:12px}.create-game-header h2{font-size:20px}.create-game-content{flex-direction:column;min-height:0;display:flex}.packs-panel{border-bottom:1px solid #2a2c35;border-right:none;flex-direction:column;flex:0 0 220px;min-height:220px;max-height:220px;display:flex}.packs-search{flex-shrink:0;padding:8px}.packs-search input{height:36px}.packs-list{flex:1;min-height:0;overflow-y:auto}.pack-item{box-sizing:border-box;white-space:nowrap;text-overflow:ellipsis;align-items:center;min-height:48px;padding:0 12px;font-size:14px;display:flex;overflow:hidden}.cards-panel{flex-direction:column;flex:1;min-height:0;display:flex}.cards-list{flex:1;gap:6px;min-height:0;padding:12px;overflow-y:auto}.card-chip{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%;padding:6px 10px;font-size:13px}.game-form{flex-shrink:0;grid-template-columns:1fr 1fr;gap:10px;padding:12px;display:grid}.game-field{min-width:0}.game-field-password{grid-column:1/-1}.game-form button{grid-column:1/-1;width:100%;margin-left:0}}.main-page{flex-direction:column;flex:1;display:flex;overflow:hidden}.hero{justify-content:space-between;align-items:center;gap:40px;width:100%;max-width:1100px;margin:0 auto;padding:75px 40px 30px;display:flex}.hero-content{max-width:520px}.logo{color:#fff;letter-spacing:4px;margin-bottom:25px;font-size:24px;font-weight:800}.logo span,.hero h1 span{color:var(--primary)}.hero h1{margin-bottom:20px;font-size:48px;line-height:1.1}.hero p{max-width:450px;margin-bottom:25px;font-size:17px}.hero-buttons{gap:15px;display:flex}.main-button,.secondary-button{border-radius:10px;padding:12px 26px;font-weight:600;text-decoration:none;transition:all .2s}.main-button{background:var(--primary);color:#fff!important}.main-button:hover{background:var(--primary-hover);transform:translateY(-2px)}.secondary-button{background:var(--card);border:1px solid var(--border);color:#fff!important}.secondary-button:hover{border-color:var(--primary)}.game-preview{flex-shrink:0;width:320px;height:360px;position:relative}.word-card{color:#fff;background:linear-gradient(145deg, #171722, var(--card));border:1px solid #292936;border-radius:18px;width:230px;padding:20px;position:absolute;box-shadow:0 20px 50px #00000080}.word-card span{color:var(--text);font-size:14px}.word-card strong{margin-top:10px;font-size:28px;display:block}.card-one{top:20px;left:10px;transform:rotate(-8deg)}.card-two{top:100px;right:0;transform:rotate(8deg)}.card-three{bottom:20px;left:40px;transform:rotate(-3deg)}.features{grid-template-columns:repeat(3,1fr);gap:15px;width:100%;max-width:1100px;margin:30px auto 0;padding:0 40px 25px;display:grid}.features div{background:linear-gradient(145deg, #171722, var(--card));border:1px solid var(--border);border-radius:14px;padding:18px}.features h3{color:#fff;margin-bottom:6px}@media (width<=800px){.main-page{overflow:auto}.hero{text-align:center;flex-direction:column;gap:25px;padding:25px 20px}.hero-buttons{flex-direction:column;gap:10px;width:100%}.main-button,.secondary-button{text-align:center;width:100%}.game-preview{width:280px;height:360px;margin-top:10px}.word-card{width:200px;padding:18px}.word-card strong{font-size:24px}.card-one{top:15px;left:0;transform:rotate(-8deg)}.card-two{top:100px;right:0;transform:rotate(8deg)}.card-three{top:215px;bottom:auto;left:30px;transform:rotate(-3deg)}.features{grid-template-columns:1fr;padding:0 20px 20px}.hero h1{font-size:38px}.hero p{font-size:16px}}.rules-page{gap:var(--space-md);flex-direction:column;max-width:720px;padding-top:40px;padding-bottom:40px;display:flex}.rules-header{text-align:center}.rules-header h1{margin-bottom:var(--space-sm)}.rules-section{gap:var(--space-sm);flex-direction:column;display:flex}.rules-section h2{color:var(--primary)}.rules-section ul{color:var(--text);padding-left:20px}.rules-section li{margin-bottom:8px}.example-box{margin-top:var(--space-sm);padding:var(--space-md);background:var(--input-bg);border:1px solid var(--border);border-radius:var(--radius-sm)}.example-box strong{color:var(--text-strong)}.example-box span{color:var(--primary);font-weight:600}.rules-footer{text-align:center}
