/* Ordkæde: petrol-bordet som Ordleg (ordspil). Skrift, filt og bjælke kommer fra Solitaire.css og kabale-kort.css */
:root { --bord: #005963; --bjaelke: #092F33; --knap: #035961; --ark: #FCF7EE; --kul: #1E2421; --roed: #C63F28; --rigtig: #3F8A5A; --guld: #E2B54A; }
html.kabale-mork { --bord: #00353A; --bjaelke: #0A1516; --knap: #0B4248; }
body { background: var(--filt), var(--bord); color: var(--creme); }
button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; font-family: Poppins, system-ui, sans-serif; }
button:focus-visible { outline: 3px solid var(--creme); outline-offset: 2px; }
@media (max-width: 420px) { #kk-bar { gap: 6px; padding: 6px; flex-wrap: nowrap; } #kk-bar button { flex: 1 1 auto; font-size: 14px; padding-left: 8px; padding-right: 8px; } }

#spil { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; box-sizing: border-box; }
#venstre, #hoejre { display: contents; }
#spil.side { flex-direction: row; align-items: center; justify-content: center; gap: 24px; }
#spil.side #venstre { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; max-width: 560px; height: 100%; justify-content: center; }
#spil.side #hoejre { display: flex; flex-direction: column; gap: 8px; width: 380px; flex: none; }
#info { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 15px/1.3 Poppins, system-ui, sans-serif; }
#info #stjerner { letter-spacing: 2px; color: var(--guld); font-size: 18px; }
#status { min-height: 1.35em; width: 100%; max-width: 560px; text-align: center; font: 600 16px/1.35 Poppins, system-ui, sans-serif; }
#kaede { flex: 1 1 auto; min-height: 0; width: 100%; max-width: 560px; display: flex; flex-direction: column; justify-content: center; gap: var(--rg, 4px); }
.raekke { min-height: 44px; align-items: center; display: flex; justify-content: center; gap: 4px; padding: 3px; border-radius: 10px; border: 2px solid transparent; background: none; cursor: pointer; color: inherit; width: 100%; box-sizing: border-box; }
.raekke:disabled { cursor: default; }
.raekke.aktiv { border-color: var(--guld); background: rgba(226,181,74,.12); }
.felt { width: var(--fb, 40px); height: var(--fb, 40px); display: flex; align-items: center; justify-content: center; border-radius: 6px; box-sizing: border-box;
  font: 600 max(13px, calc(var(--fb, 40px) * .5))/1 Poppins, system-ui, sans-serif; text-transform: uppercase; background: rgba(0,0,0,.18); border: 2px solid rgba(252,247,238,.35); color: var(--creme); }
.felt.vist { background: var(--ark); color: var(--kul); border-color: var(--ark); }
.felt.skrevet { border-color: var(--creme); background: rgba(252,247,238,.12); }
.raekke.loest .felt { background: var(--rigtig); border-color: var(--rigtig); color: #FCF7EE; }
.raekke.fast .felt { background: var(--ark); border-color: var(--ark); color: var(--kul); }
.raekke.ryst { animation: ryst .35s; }
@keyframes ryst { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.raekke.hop .felt { animation: hop .45s ease-out; }
.raekke.hop .felt:nth-child(2) { animation-delay: .05s; } .raekke.hop .felt:nth-child(3) { animation-delay: .1s; } .raekke.hop .felt:nth-child(4) { animation-delay: .15s; } .raekke.hop .felt:nth-child(5) { animation-delay: .2s; } .raekke.hop .felt:nth-child(6) { animation-delay: .25s; }
@keyframes hop { 40% { transform: translateY(-8px); } }
.led { text-align: center; font: 400 14px/1.2 Poppins, system-ui, sans-serif; min-height: 17px; opacity: .92; }
.led b { font-weight: 600; color: var(--guld); }

#knapper { display: flex; gap: 8px; width: 100%; max-width: 560px; }
#knapper button { flex: 1 1 0; min-height: 44px; border-radius: 8px; border: 1px solid rgba(252,247,238,.22); background: var(--knap); color: var(--creme); font: 600 15px/1.2 Poppins, system-ui, sans-serif; cursor: pointer; }
#knapper button:disabled { opacity: .45; cursor: default; }
#tast { width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px 3px; }
#tast button { min-height: var(--th, 46px); border-radius: 6px; border: 0; background: #D7DEDC; color: var(--kul); font: 600 19px/1 Poppins, system-ui, sans-serif; text-transform: uppercase; cursor: pointer; }
#tast button.bred { grid-column: span 2; font-size: 15px; text-transform: none; background: var(--ark); }
#tast button.slet { background: #B9C4C1; }
#tast button:active { transform: translateY(1px); }
.regel-tekst p, .regel-tekst li { font-size: 15px; }
.regel-tekst ul { margin: 0 0 8px; padding-left: 20px; }
/* Lav ramme (sidens mobil-iframe): kæden og tastaturet bliver tættere */
#tast .kun-lav { display: none; }
#spil.lav #tast .kun-lav { display: block; } #spil.lav #tast button.bred { grid-column: span 1; }
#spil.lav .raekke { min-height: 0; padding: 1px; border-width: 1px; } #spil.lav .led, #spil.lav #knapper { display: none; } #spil.lav #kaede { gap: 2px; }
#spil.lav { gap: 4px; padding: 4px 8px; } #spil.lav #status { font-size: 14px; } #spil.lav .led { min-height: 0; line-height: 1.1; } #spil.lav #tast { gap: 3px; } #spil.lav #info { display: none; }
#spil.side #kaede { flex: 0 1 auto; }
@media (prefers-reduced-motion: reduce) { .raekke.ryst, .raekke.hop .felt { animation: none; } }
html.kabale-hk .felt { border-width: 3px; }
html.kabale-hk #knapper button { border: 2px solid var(--creme) !important; }
