:root{font-family:Tahoma,"Segoe UI",Arial,sans-serif;color:#201b48;background:#f4f0ff}*{box-sizing:border-box}body{margin:0;min-width:300px;min-height:100vh;background:radial-gradient(circle at 15% 10%,#ffe9a6,transparent 25%),linear-gradient(160deg,#eef8ff,#f4edff)}button,a{font:inherit}header{min-height:72px;padding:9px max(4%,calc((100vw - 1200px)/2));display:flex;align-items:center;gap:18px;color:#fff;background:linear-gradient(110deg,#24165d,#5739a0)}header a{color:#fff;text-decoration:none;border:1px solid #ffffff40;padding:9px 13px;border-radius:13px;font-weight:900}header div strong,header div small{display:block}header div small{color:#d6caff;margin-top:3px}header p{margin-inline-start:auto;background:#ffffff17;padding:9px 12px;border-radius:13px}main{max-width:1200px;margin:auto;padding:20px}.hero{min-height:230px;display:flex;align-items:center;justify-content:space-between;padding:28px 7%;border-radius:30px;color:#fff;background:linear-gradient(125deg,#5d40c4,#a34fc7);overflow:hidden;box-shadow:0 18px 40px #38256c2b}.hero span{color:#fff09d;font-weight:900}.hero h1{font-size:clamp(2rem,4vw,3rem);margin:8px 0}.hero p{margin:0;color:#eee8ff}.hero img{height:250px;align-self:flex-end;margin-bottom:-55px}.game-menu{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-top:18px}.game-menu button{min-height:190px;text-align:center;border:1px solid #ded5ef;border-radius:23px;background:#fff;padding:17px;color:#27204d;box-shadow:0 12px 28px #3c2c6517;transition:.2s;cursor:pointer}.game-menu button:hover{transform:translateY(-5px);border-color:#7559c8}.game-menu span,.game-menu b,.game-menu small{display:block}.game-menu span{font-size:3.4rem}.game-menu b{font-size:1.05rem;margin:10px 0 5px}.game-menu small{color:#7d7692}.arena{margin-top:18px;background:#fff;border:1px solid #ddd4ef;border-radius:27px;padding:19px;box-shadow:0 18px 40px #33245c21}.arena-head{display:flex;align-items:center;gap:12px}.arena-head>button{width:42px;height:42px;border:0;border-radius:12px;background:#eee9f8;color:#483c6c;font-size:1.4rem;cursor:pointer}.arena-head small{color:#865dc3}.arena-head h2{margin:2px 0}.arena-head p{margin-inline-start:auto;background:#f2edff;padding:9px 12px;border-radius:12px}.game-area{min-height:370px;display:grid;place-items:center;padding:20px;background:linear-gradient(150deg,#f3faff,#f7f0ff);border-radius:20px}.memory-grid{width:min(520px,100%);display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.memory-card{aspect-ratio:1;border:0;border-radius:16px;background:linear-gradient(145deg,#5c3db6,#31216f);color:#fff;font-size:2rem;cursor:pointer;box-shadow:0 6px 0 #211454}.memory-card.revealed,.memory-card.matched{background:#fff;box-shadow:inset 0 0 0 3px #8d70d1;color:#222}.memory-card.matched{background:#e7ffe8;box-shadow:inset 0 0 0 3px #65bd69}.question{text-align:center;width:min(600px,100%)}.question>span{font-size:1.1rem;color:#7e6b9b}.question h3{font-size:clamp(2.6rem,7vw,5rem);margin:14px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.choices button{border:2px solid #d9d0ec;background:#fff;border-radius:16px;padding:16px;font-weight:900;font-size:1.15rem;color:#32285a;cursor:pointer}.choices button:hover{border-color:#795ac6}.pattern{display:flex;align-items:center;justify-content:center;gap:10px;font-size:3rem;margin:25px 0;direction:ltr;flex-wrap:wrap}.odd-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;width:min(600px,100%)}.odd-grid button{aspect-ratio:1;border:1px solid #ddd3ee;background:#fff;border-radius:15px;font-size:2.3rem;cursor:pointer}.round{display:flex;align-items:center;gap:12px;margin-top:14px;color:#756a8c}.round i{flex:1;height:9px;background:#eee8f7;border-radius:99px;overflow:hidden}.round em{display:block;height:100%;background:#7958c7;width:20%;transition:.3s}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;background:#251955;color:#fff;padding:11px 17px;border-radius:14px;font-weight:900;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:780px){.game-menu{grid-template-columns:repeat(2,1fr)}.hero img{height:190px}.game-area{min-height:330px}.odd-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:450px){main{padding:10px}.hero{min-height:250px;padding:22px}.hero img{height:150px;margin-inline-start:-60px}.game-menu button{min-height:155px}.memory-grid{gap:6px}.choices{grid-template-columns:1fr}.odd-grid{grid-template-columns:repeat(3,1fr)}}
