/* Bubble shooter: det dybblå bord (hav og himmel, se docs/DESIGNMANUAL-SPIL.md). Skrift, filt og bjælke kommer fra Solitaire.css og kabale-kort.css */
:root {
  --bord: #244F79;
  --bjaelke: #192A3D;
  --knap: #2E5174;
  --kul: #1E2421;
  --roed: #C63F28;
}
html.kabale-mork {
  --bord: #162F47;
  --bjaelke: #0D131A;
  --knap: #233D58;
}
body { background: var(--filt), var(--bord); color: var(--creme); font-variant-numeric: tabular-nums; }
svg { background: none; width: auto; height: auto; }
button, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

#kk-bar { align-items: center; }
#kk-bar select {
  font: 600 15px/1.2 Poppins, system-ui, sans-serif; min-height: 44px; padding: 0 34px 0 14px; border: 1px solid rgba(252,247,238,.22); border-radius: 8px;
  background: var(--knap) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FCF7EE' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  color: var(--creme); cursor: pointer; -webkit-appearance: none; appearance: none;
}
#kk-bar select option { background: #FCF7EE; color: #1E2421; }
#kk-bar button[aria-pressed="true"] { background: var(--creme); color: var(--kul); }
#kk-bar button:focus-visible, #kk-bar select:focus-visible, #panel button:focus-visible, #kk-besked 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, #kk-bar select { flex: 1 1 auto; min-width: 0; font-size: 14px; padding-left: 8px; padding-right: 8px; }
  #kk-bar select { padding-right: 24px; background-position: right 8px center; }
}

#spil { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; box-sizing: border-box; }
#info, #panel { width: 100%; max-width: var(--bredde, 100%); margin: 0 auto; box-sizing: border-box; }
#info { flex: none; display: flex; align-items: center; gap: 12px; min-height: 28px; font: 600 15px/1.3 Poppins, system-ui, sans-serif; }
#point { white-space: nowrap; }
#rekord { font-weight: 400; opacity: .85; flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#raekke { font-weight: 400; white-space: nowrap; opacity: .9; }
@media (max-width: 380px) { #info { gap: 8px; font-size: 14px; } }

#ramme { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
#braet { display: block; border-radius: 8px; cursor: crosshair; }
#ramme:focus { outline: none; }
#ramme:focus-visible #braet { outline: 3px solid var(--creme); outline-offset: 3px; }

#panel { flex: none; display: flex; gap: 6px; }
#panel button {
  flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 10px; border-radius: 8px; cursor: pointer; font: 600 15px/1.1 Poppins, system-ui, sans-serif;
  border: 1px solid rgba(252,247,238,.22); background: var(--knap); color: var(--creme);
}
#panel button:disabled { opacity: .45; cursor: default; }

#kk-besked { width: max-content; max-width: min(calc(100vw - 32px), 440px); box-sizing: border-box; }
#kk-besked p { margin: 0 0 6px; font-size: 15px; }
#kk-besked.regler p { text-align: left; }
#kk-besked .knapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
#kk-besked .knapper button { margin: 0; }
#kk-besked button.primaer { background: var(--roed); color: var(--creme); }

/* Spilkit og baner (21.10) */
#info { flex-wrap: wrap; row-gap: 2px; }
#skud { white-space: nowrap; font-weight: 400; }
#skud[hidden] { display: none; }
#raekke.faa { padding: 1px 8px; border-radius: 8px; background: var(--roed); opacity: 1; font-weight: 600; }
html.kabale-hk #panel button { border: 2px solid var(--creme) !important; }
html.kabale-hk #panel button:disabled { opacity: .6; border-style: dashed !important; }
.sk-baner-gitter button:not(.klaret):not(:disabled) span { color: inherit; opacity: .75; }
