:root { color-scheme: dark; font-family: Vazirmatn, Tahoma, system-ui, sans-serif; background: #07111f; color: #edf5ff; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 70% -10%, #20456a 0, #0b1b2e 38%, #050b14 100%); } button { font: inherit; cursor: pointer; }
.app-shell { width: min(1180px, 100%); min-height: 100vh; margin: auto; padding: 20px 22px 28px; }.topbar { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 20px; color: #d7e6f6; }.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #8065ff, #22d4c1); font-size: 20px; }.season, .seed { color: #8ea5be; font-size: 12px; }.season b { color: #f4c968; }
.game-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 18px; direction: ltr; }.panel, .map-panel { direction: rtl; border: 1px solid rgba(149, 191, 225, .15); border-radius: 24px; background: rgba(9, 24, 41, .75); box-shadow: 0 22px 60px rgba(0, 0, 0, .2); backdrop-filter: blur(14px); }.info-panel { align-self: start; padding: 21px; }.panel-heading { display: flex; justify-content: space-between; margin-bottom: 19px; font-weight: 800; }.online-dot { color: #66e79c; font-size: 11px; font-weight: 600; }.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.stat { padding: 13px 10px; border-radius: 14px; background: rgba(23, 52, 78, .55); }.stat span { display: block; color: #8da7c0; font-size: 10px; }.stat strong { display: block; margin-top: 6px; color: #eff8ff; font-size: 20px; }.keys-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(149, 191, 225, .13); }.keys-box h3 { margin: 0 0 12px; font-size: 13px; }.key-row { display: flex; align-items: center; gap: 9px; margin: 10px 0; color: #aac0d5; font-size: 12px; }.key-row b { margin-right: auto; color: white; }.key { display: inline-block; width: 11px; height: 11px; border-radius: 4px; }.key.red { background: #f26969; }.key.blue { background: #6ea8ff; }.key.gold { background: #f8c85c; }.tip { min-height: 65px; margin: 20px 0; color: #8da7c0; font-size: 11px; line-height: 1.9; }.secondary-button, .win-card button { width: 100%; padding: 11px; border: 1px solid rgba(147, 194, 230, .2); border-radius: 12px; background: rgba(30, 66, 95, .45); color: #dceeff; }
.map-panel { padding: 23px; }.map-header { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 18px; }.eyebrow { color: #5ed9ca; font-size: 10px; letter-spacing: .18em; }.map-header h1 { margin: 7px 0 0; font-size: clamp(22px, 3vw, 34px); }.seed { direction: ltr; }.canvas-wrap { position: relative; width: min(100%, 700px); aspect-ratio: 1; margin: auto; padding: 8px; border: 1px solid rgba(112, 177, 220, .22); border-radius: 18px; background: #06101c; }.canvas-wrap canvas { display: block; width: 100%; height: 100%; border-radius: 11px; image-rendering: pixelated; }.win-card { position: absolute; inset: 18%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1px solid rgba(248, 200, 92, .4); border-radius: 22px; background: rgba(8, 22, 38, .94); text-align: center; }.win-card.hidden { display: none; }.win-icon { color: #f8c85c; font-size: 36px; }.win-card h2 { margin: 10px 0 3px; }.win-card p { margin: 0 0 18px; color: #a9bfd3; font-size: 13px; }.win-card button { width: auto; padding-inline: 28px; background: #f8c85c; color: #102033; font-weight: 800; }.door-title { margin-top: 16px; color: #8da7c0; text-align: center; font-size: 11px; }.controls { display: flex; justify-content: center; gap: 8px; margin-top: 8px; direction: ltr; }.controls button { width: 48px; height: 42px; border: 1px solid rgba(145, 193, 227, .2); border-radius: 10px; background: #102a43; color: #dceeff; font-weight: 800; }.controls button:hover:not(:disabled) { background: #1d536c; }.controls button:disabled { cursor: not-allowed; opacity: .22; }.controls button.locked { border-color: #f26969; color: #f26969; }.legend { display: flex; justify-content: center; gap: 19px; margin-top: 16px; color: #7894ad; font-size: 10px; }.legend-dot { display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; }.legend-dot.current { background: #27d3c2; }.legend-dot.treasure { background: #f8c85c; }.legend-dot.discovered { background: #15304a; } footer { margin-top: 18px; color: #647e98; text-align: center; font-size: 11px; }
@media (max-width: 760px) { .app-shell { padding: 14px 12px 22px; }.game-layout { grid-template-columns: 1fr; }.info-panel { order: 2; }.map-panel { order: 1; padding: 14px; }.stat-grid { grid-template-columns: repeat(4, 1fr); }.stat { padding: 10px 6px; text-align: center; }.stat strong { font-size: 16px; }.keys-box { display: none; }.tip { min-height: 0; margin: 13px 0; text-align: center; }.secondary-button { display: none; }.map-header { align-items: center; }.map-header h1 { font-size: 23px; }.seed { font-size: 9px; } }

.slot-box { margin-top: 20px; padding: 16px 0 5px; border-top: 1px solid rgba(149, 191, 225, .13); text-align: center; }.slot-box h3 { margin: 0 0 10px; font-size: 13px; }.slot-box canvas { display: block; width: 150px; height: 150px; margin: auto; border: 1px solid rgba(112, 177, 220, .22); border-radius: 10px; image-rendering: pixelated; }.slot-box p { margin: 9px 0 0; color: #7894ad; font-size: 10px; }.controls button.special { border-color: #f8c85c; color: #f8c85c; box-shadow: 0 0 12px rgba(248, 200, 92, .16); }
.canvas-wrap { overflow: hidden; }.canvas-wrap > canvas { transform-origin: center center; touch-action: none; cursor: grab; }.canvas-wrap > canvas:active { cursor: grabbing; }.view-tools { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -5px 0 12px; direction: ltr; }.view-tools button { min-width: 88px; height: 30px; padding: 0 10px; border: 1px solid rgba(145, 193, 227, .2); border-radius: 8px; background: #102a43; color: #dceeff; }.view-tools button:hover { background: #1d536c; }.view-tools span { min-width: 48px; color: #8da7c0; text-align: center; font-size: 11px; }
