@charset "UTF-8";

/* ================================
   fun.lopikss.com — Theme
================================== */
:root{
  --bg:#06070b;
  --bg2:#0a0d14;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --text:#eef2ff;
  --muted:#b6bed6;
  --line:rgba(255,255,255,.12);
  --accent:#ff4fd8;
  --accent2:#36d6ff;
  --good:#39e58c;
  --bad:#ff6b6b;
  --radius:18px;
  --shadow:0 20px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(1000px 700px at 10% 10%, rgba(255,79,216,.16), transparent 60%),
    radial-gradient(900px 600px at 85% 20%, rgba(54,214,255,.14), transparent 60%),
    radial-gradient(900px 700px at 40% 90%, rgba(57,229,140,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

a{color:inherit;text-decoration:none}
.container{width:min(1100px, calc(100% - 40px)); margin:0 auto}
.site{opacity:0; transform:translateY(6px); transition: opacity .35s ease, transform .35s ease}
.site.ready{opacity:1; transform:none}

.header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(6,7,11,.9), rgba(6,7,11,.55));
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; gap:10px; align-items:center;
  font-weight:800; letter-spacing:.3px;
}
.badge{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(255,79,216,.95), rgba(54,214,255,.95));
  box-shadow: 0 12px 30px rgba(255,79,216,.18);
}
.links{display:flex; gap:14px; align-items:center; flex-wrap:wrap}
.links a{
  padding:8px 12px;
  border:1px solid transparent;
  border-radius: 12px;
  color:var(--muted);
}
.links a:hover{border-color:var(--line); color:var(--text)}
.links a.active{border-color: rgba(255,79,216,.35); color:var(--text); background: rgba(255,79,216,.08)}

.hero{
  padding:44px 0 18px;
}
.h-eyebrow{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border: 1px solid rgba(255,79,216,.25);
  background: rgba(255,79,216,.08);
  color:var(--text);
  font-size: 14px;
}
.h1{
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.03;
  margin: 14px 0 10px;
}
.sub{
  color:var(--muted);
  font-size: 16px;
  max-width: 70ch;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
  padding: 18px 0 44px;
}
.card{
  grid-column: span 6;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
@media (max-width: 820px){
  .card{grid-column: span 12;}
}

.card h2{margin:0 0 6px; font-size: 20px}
.card p{margin:0 0 14px; color:var(--muted); line-height:1.5}

.btns{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color: rgba(54,214,255,.35)}
.btn.primary{
  border-color: rgba(255,79,216,.45);
  background: linear-gradient(135deg, rgba(255,79,216,.22), rgba(54,214,255,.14));
}
.kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.panel{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted);
}
.small{font-size: 13px}
.hr{height:1px; background: var(--line); margin: 14px 0}

.fade-in{opacity:0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease}
.fade-in.reveal{opacity:1; transform:none}

/* Reaction game */
.reaction-wrap{display:grid; gap:14px}
.reaction-box{
  height: 220px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: 18px;
}
.reaction-box.ready{
  border-style: solid;
  border-color: rgba(57,229,140,.4);
  background: rgba(57,229,140,.08);
}
.reaction-box.too-soon{
  border-style: solid;
  border-color: rgba(255,107,107,.4);
  background: rgba(255,107,107,.08);
}
.big{
  font-size: 22px;
  font-weight: 800;
}
.muted{color:var(--muted)}


/* ================================
   Darts helpers
================================== */
.field{display:flex;flex-direction:column;gap:6px}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  outline:none;
}
.input:focus{border-color:rgba(255,255,255,.22)}
.hint{color:var(--muted);font-size:.85rem}

.check{display:flex;gap:10px;align-items:center;user-select:none;color:var(--text)}
.check input{transform:translateY(1px)}

.sep{border:0;border-top:1px solid var(--line);margin:16px 0}

.stack{display:flex;flex-direction:column;gap:10px}
.note{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
}
.note.good{border-color:rgba(57,229,140,.35);background:rgba(57,229,140,.08)}
.note.bad{border-color:rgba(255,107,107,.35);background:rgba(255,107,107,.08)}

.table-wrap{overflow:auto;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
.table{width:100%;border-collapse:collapse;min-width:520px}
.table th,.table td{padding:12px 12px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top}
.table th{color:var(--muted);font-weight:600;font-size:.9rem}
.table tr:last-child td{border-bottom:none}

.pill-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-size:.92rem;
}
.pill code{background:rgba(0,0,0,.25);padding:2px 6px;border-radius:8px;border:1px solid rgba(255,255,255,.10)}


/* ================================
   Darts page layout tweaks
================================== */
.page-darts .container{
  width: calc(100% - 48px);
  max-width: none;
  margin: 0 auto;
}

.darts-grid{
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}

.page-darts[data-started="1"] .darts-grid{
  grid-template-columns: 420px 1fr;
}

.page-darts[data-started="1"] #infoAside{ display:none !important; }

.dartboard-card h2{ margin-bottom: 10px; }
.dartboard-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
}
#dartboardImg{
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: 18px;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.page-darts[data-started="1"] #dartboardCol{ display:block !important; }

.page-darts[data-started="1"] #setupArea{ display:none !important; }

/* During game, hide text-turn entry row (we use the board). Keep it accessible on small screens via a toggle in JS if needed. */
.page-darts[data-started="1"] #throwsInput,
.page-darts[data-started="1"] #btnSubmitTurn{
  display:none !important;
}

