/* Ristinolla.net/go (6.11.2026). Perustyylit tulevat ../ristinolla.css:stä (värit, napit, valitsimet). */
:root {
  --puu: #e3c088;
  --viiva: #5b4630;
}

.go-kehys { max-width: 600px; }
.golauta {
  display: grid; width: 100%; aspect-ratio: 1 / 1;
  background: var(--puu); border-radius: 4px; padding: 3.5%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.piste {
  position: relative; border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer;
  width: 100%; height: 100%; min-width: 0; min-height: 0; font: inherit; color: inherit;
}
/* viivat: vaaka ::before, pysty ::after; reunoilla viiva alkaa keskeltä */
.piste::before, .piste::after { content: ""; position: absolute; background: var(--viiva); pointer-events: none; }
.piste::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-0.5px); }
.piste::after { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-0.5px); }
.piste.vasen::before { left: 50%; }
.piste.oikea::before { right: 50%; }
.piste.yla::after { top: 50%; }
.piste.ala::after { bottom: 50%; }
.piste .tahti {
  position: absolute; left: 50%; top: 50%; width: 18%; height: 18%; border-radius: 50%;
  background: var(--viiva); transform: translate(-50%, -50%); pointer-events: none;
}
.piste .kivi {
  position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; border-radius: 50%; z-index: 1;
  pointer-events: none;
}
.kivi.b { background: radial-gradient(circle at 35% 30%, #5a5a5a 0%, #1c1c1c 45%, #050505 100%); box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.35); }
.kivi.w { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1f1f1 50%, #c9c9c9 100%); box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3); }
.kivi.kuollut { opacity: 0.45; }
.kivi .merkki {
  position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%;
  border: 2px solid; box-sizing: border-box;
}
.kivi.b .merkki { border-color: #fff; }
.kivi.w .merkki { border-color: #111; }
.piste .alue {
  position: absolute; left: 36%; top: 36%; width: 28%; height: 28%; z-index: 2; pointer-events: none;
}
.alue.b { background: #111; }
.alue.w { background: #fff; box-shadow: 0 0 0 1px #555; }
.piste .haamu {
  position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; border-radius: 50%; opacity: 0;
  pointer-events: none;
}
.golauta.voi-pelata .piste.tyhja:hover .haamu { opacity: 0.35; }
.haamu.b { background: #111; }
.haamu.w { background: #fff; }
.piste:focus-visible { outline: 3px solid var(--korostus); outline-offset: -2px; z-index: 3; }
.koord {
  position: absolute; font-size: 10px; line-height: 1; color: var(--viiva); pointer-events: none; z-index: 0;
}
.koord.sarake { left: 50%; bottom: -1px; transform: translate(-50%, 100%); }
.koord.rivi { top: 50%; left: -2px; transform: translate(-100%, -50%); }

.vangit { margin: 8px 0 0; color: var(--heikko); font-size: 0.95rem; }
