:root { --bg: #10182b; --glow: #22395b; --accent: #47dfd2; }
.game-area { padding: 8px; }
.hexa-wrap { display: grid; grid-template-rows: minmax(0,1fr) auto auto; place-items: center; gap: 9px; width: 100%; height: 100%; }
.hexa-board { position: relative; width: min(72vh, 92vw, 620px); aspect-ratio: 1; border: 2px solid rgba(255,197,88,.36); border-radius: 28px; background: radial-gradient(circle,#1b2940 0 46%,#111a2c 70%); box-shadow: 0 22px 55px rgba(0,0,0,.44), inset 0 0 35px rgba(0,0,0,.28); }
.hex-cell { position: absolute; left: var(--left); top: var(--top); width: 10.25%; aspect-ratio: 1.1547; transform: translate(-50%,-50%); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); border: 0; background: #65728a; cursor: pointer; filter: drop-shadow(0 2px 2px rgba(0,0,0,.42)); transition: transform .12s ease, filter .12s ease; }
.hex-cell::after { position: absolute; inset: 2px; clip-path: inherit; background: linear-gradient(145deg,#27344c,#172136); content: ""; }
.hex-cell:hover { filter: brightness(1.28) drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.hex-cell.filled { background: #9ff9f0; filter: drop-shadow(0 0 7px rgba(71,223,210,.56)); }
.hex-cell.filled::after { background: linear-gradient(145deg,#75eee2,#22aeb4) !important; box-shadow: inset 2px 2px 2px rgba(255,255,255,.45), inset -3px -3px 4px rgba(0,0,0,.18); }
.hex-cell.preview { background: #fff3af; transform: translate(-50%,-50%) scale(1.06); filter: drop-shadow(0 0 10px #ffc83d); }
.hex-cell.preview::after { background: linear-gradient(145deg,#fff0a0,#f6b71c) !important; }
.hex-cell.invalid { background: #ff8597; }
.hex-cell.clearing { animation: hex-clear .22s ease; }
.hexa-tray { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; width: min(92vw,620px); min-height: 78px; }
.hexa-piece { position: relative; min-height: 74px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(14,25,44,.9); cursor: grab; }
.hexa-piece.selected { border-color: #ffd15c; background: rgba(255,209,92,.14); box-shadow: 0 0 0 2px rgba(255,209,92,.18),0 8px 20px rgba(0,0,0,.25); transform: translateY(-3px); }
.hexa-piece.used { visibility: hidden; }
.mini-hex { position: absolute; width: 19px; aspect-ratio: 1.1547; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); background: linear-gradient(145deg,#75eee2,#22aeb4) !important; box-shadow: inset 1px 1px 1px rgba(255,255,255,.45); transform: translate(-50%,-50%); }
.help { margin: 0; padding: 5px 10px; border-radius: 999px; background: rgba(8,17,33,.72); color: #d7e2f1; font-size: 9px; text-align: center; }
@keyframes hex-clear { 50% { transform: translate(-50%,-50%) scale(.25); filter: brightness(2); } }
@media (max-width: 620px) { .game-area { inset: 88px 4px 4px; } .hexa-board { width: min(59vh,94vw); border-radius: 18px; } .hexa-tray { min-height: 68px; } .hexa-piece { min-height: 64px; } }
@media (max-height: 520px) { .game-area { inset: 49px 4px 4px; } .hexa-wrap { grid-template-columns: minmax(0,1fr) 180px; grid-template-rows: 1fr auto; } .hexa-board { grid-row: 1 / 3; width: min(78vh,70vw); } .hexa-tray { grid-template-columns: 1fr; width: 170px; min-height: 0; } .hexa-piece { min-height: 48px; } .help { display: none; } }
