/* POLSAS 98 – spil på skrivebordet (desktop-games.js). Bygger på app-klasserne i desktop.css. */
.app-game-top { margin-top: 0; margin-bottom: 6px; justify-content: space-between; }
.app-level-label { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.app-level { font: 11px var(--pol-font); }
.app-game-info { min-height: 15px; margin-bottom: 2px; font-weight: bold; }

/* Kryds og bolle */
.app-ttt-cell.win { background: #fff3b0; }

/* Huskespil: computerens par */
.app-memory-card.found.pc { background: #fde7e7; }

/* Bombehunden – feltstørrelse styres af niveauet (--cell) */
.app-mine-board .app-mine-cell { width: var(--cell, 28px); height: var(--cell, 28px); font-size: calc(var(--cell, 28px) * .5); }
.app-mine-cell.wrong { background: #f2c9c9; }

/* Fire på stribe */
.app-c4-grid { display: grid; grid-template-columns: repeat(7, 44px); gap: 4px; justify-content: center; padding: 6px; margin: 4px auto; width: max-content; background: #0a246a; box-shadow: var(--w98-sunken); }
.app-c4-cell { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: #e8ecf3; box-shadow: inset 2px 2px 3px rgba(0, 0, 0, .45); cursor: pointer; }
.app-c4-cell:hover:not(.r):not(.y) { background: #ffffff; }
.app-c4-cell.r { background: radial-gradient(circle at 35% 35%, #ff6b6b, #c0161b); }
.app-c4-cell.y { background: radial-gradient(circle at 35% 35%, #ffe680, #e0a800); }
.app-c4-cell.last { outline: 2px solid #fff; outline-offset: -4px; }
.app-c4-cell.win { outline: 3px solid #39d353; outline-offset: -4px; }

/* Galgespil */
.app-hang-main { display: flex; gap: 12px; align-items: center; }
.app-hang-canvas { flex: 0 0 auto; background: #fff; box-shadow: var(--w98-sunken); }
.app-hang-word { font: bold 20px "Courier New", monospace; letter-spacing: 2px; overflow-wrap: anywhere; margin-bottom: 8px; }
.app-hang-word.lost { color: #b00020; }
.app-hang-keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 8px; }
html.pol98 .pol-win .app-hang-key { min-width: 0; padding: 2px 0 !important; font: bold 12px var(--pol-font) !important; }
.app-hang-key.hit { color: #1b5e20; }
.app-hang-key.miss { color: #b00020; text-decoration: line-through; }

/* Slangen */
.app-snake-canvas { display: block; margin: 0 auto 4px; box-shadow: var(--w98-sunken); outline: none; image-rendering: pixelated; }
.app-snake-pad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
