
:root{
  --kkc-bg:#f6f8fb;
  --kkc-card:#ffffff;
  --kkc-text:#0f172a;
  --kkc-muted:#64748b;
  --kkc-line:#e8edf4;
  --kkc-primary:#1d4ed8;
  --kkc-primary-2:#153b9b;
  --kkc-accent:#d4a24c;
  --kkc-shadow:0 10px 30px rgba(15,23,42,.06);
  --kkc-radius:20px;
}
.kkc-shell{
  position:relative;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--kkc-text);
  background:var(--kkc-bg);
  padding:18px;
  border-radius:24px;
}
.kkc-hero{
  display:grid;
  grid-template-columns:1.2fr .75fr;
  gap:14px;
  align-items:stretch;
  margin-bottom:14px;
}
.kkc-hero-copy,.kkc-hero-card,.kkc-panel-card,.kkc-result,.kkc-actions{
  background:var(--kkc-card);
  border:1px solid var(--kkc-line);
  box-shadow:var(--kkc-shadow);
  border-radius:var(--kkc-radius);
}
.kkc-hero-copy{padding:26px}
.kkc-kicker{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--kkc-primary);
  font-size:11px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.kkc-hero h2{
  font-size:clamp(30px,4.8vw,46px);
  line-height:1.02;
  margin:14px 0 8px;
  font-weight:900;
  letter-spacing:-.05em;
}
.kkc-hero h2 small{
  display:block;
  font-size:14px;
  line-height:1.5;
  font-weight:700;
  color:#5c6f87;
  margin-top:8px;
}
.kkc-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.kkc-meta span{
  background:#fafcff;
  border:1px solid var(--kkc-line);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:#39516f;
}
.kkc-hero-card{
  padding:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0f172a;
  color:#fff;
}
.kkc-mini-stat{width:100%;text-align:left}
.kkc-mini-stat .label{
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  opacity:.75;
}
.kkc-mini-stat strong{
  display:block;
  font-size:42px;
  line-height:1;
  margin:10px 0 6px;
}
.kkc-mini-stat small{
  display:block;
  font-size:13px;
  line-height:1.45;
  opacity:.82;
}
.kkc-actions{
  display:flex;
  gap:8px;
  padding:8px;
  margin-bottom:14px;
}
.kkc-tab{
  appearance:none;
  border:0;
  background:#f1f5f9;
  color:#475569;
  font-weight:800;
  padding:13px 16px;
  border-radius:14px;
  cursor:pointer;
  transition:.18s ease all;
}
.kkc-tab.is-active{
  background:linear-gradient(135deg,var(--kkc-primary),var(--kkc-primary-2));
  color:#fff;
}
.kkc-panel{display:none}
.kkc-panel.is-active{display:block}
.kkc-panel-card{padding:24px}
.kkc-panel-card h3{
  margin:0 0 16px;
  font-size:24px;
  letter-spacing:-.03em;
}
.kkc-form label{
  display:block;
  font-size:11px;
  font-weight:800;
  color:#334155;
  margin-bottom:8px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.kkc-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.kkc-form input,.kkc-form select{
  width:100%;
  padding:14px 15px;
  border:1px solid #d9e2ee;
  border-radius:14px;
  background:#fff;
  font-size:15px;
  outline:none;
  box-sizing:border-box;
}
.kkc-form input:focus,.kkc-form select:focus{
  border-color:var(--kkc-primary);
  box-shadow:0 0 0 4px rgba(29,78,216,.08);
}
.kkc-kids-top{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin:20px 0 12px;
}
.kkc-kids-top h4{
  margin:0;
  font-size:18px;
  letter-spacing:-.02em;
}
.kkc-kid-count{
  min-width:170px;
}
.kkc-kid-row{
  margin-bottom:10px;
}
.kkc-kid-row.is-hidden{
  display:none;
}
.kkc-check{
  display:flex!important;
  gap:10px;
  align-items:flex-start;
  background:#f8fafc;
  border:1px solid var(--kkc-line);
  border-radius:14px;
  padding:12px 14px;
  margin:18px 0;
  color:#475569;
}
.kkc-check input{width:auto;margin-top:2px}
.kkc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 18px;
  border-radius:14px;
  border:0;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
}
.kkc-primary{
  background:linear-gradient(135deg,var(--kkc-primary),var(--kkc-primary-2));
  color:#fff;
}
.kkc-gold{
  background:linear-gradient(135deg,#e8c98d,var(--kkc-accent));
  color:#583c05;
}
.kkc-inline-notice{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:14px;
  font-weight:800;
}
.kkc-success{background:#ecfdf3;color:#166534;border:1px solid #bbf7d0}
.kkc-error{background:#fff1f2;color:#b42318;border:1px solid #fecdd3}
.kkc-result{
  padding:24px 20px;
  margin:0 0 14px;
  text-align:center;
}
.kkc-result-badge{
  display:inline-block;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.kkc-result h3{
  margin:0 0 12px;
  font-size:30px;
  letter-spacing:-.05em;
}
.kkc-result p{
  margin:7px 0;
  color:inherit;
  font-weight:700;
}
.kkc-result.is-approved{
  background:linear-gradient(135deg,#0f9f4d,#19c05d);
  color:#fff;
  border:0;
}
.kkc-result.is-approved .kkc-result-badge{
  background:rgba(255,255,255,.14);
  color:#fff;
}
.kkc-result.is-error{
  background:#fff;
  color:#7f1d1d;
}
.kkc-result.is-error .kkc-result-badge{
  background:#fee2e2;
  color:#991b1b;
}

/* minimal bowling loading animation */
.kkc-loading-overlay{
  position:absolute;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(246,248,251,.88);
  backdrop-filter:blur(4px);
  z-index:30;
  border-radius:24px;
}
.kkc-shell.is-loading .kkc-loading-overlay{display:flex}
.kkc-loader-wrap{text-align:center}
.kkc-loading-text{
  margin-top:12px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#64748b;
}
.kkc-bowling-loader{
  position:relative;
  width:170px;
  height:72px;
  margin:0 auto;
}
.kkc-lane{
  position:absolute;
  left:14px;
  right:14px;
  bottom:10px;
  height:8px;
  border-radius:999px;
  background:#e5edf8;
}
.kkc-ball{
  position:absolute;
  left:12px;
  bottom:18px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:linear-gradient(145deg,#1d4ed8,#0f2f7a);
  animation:kkc-roll 1.15s ease-in-out infinite;
}
.kkc-pins{
  position:absolute;
  right:12px;
  bottom:18px;
  display:flex;
  gap:6px;
}
.kkc-pins span{
  width:8px;
  height:24px;
  background:#fff;
  border-radius:999px 999px 6px 6px;
  position:relative;
}
.kkc-pins span:before{
  content:"";
  position:absolute;
  left:0;right:0;
  top:6px;
  height:3px;
  background:#ef4444;
}
@keyframes kkc-roll{
  0%{transform:translateX(0)}
  62%{transform:translateX(98px)}
  100%{transform:translateX(0)}
}
@media (max-width:820px){
  .kkc-hero,.kkc-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .kkc-shell{padding:14px}
  .kkc-hero-copy,.kkc-hero-card,.kkc-panel-card{padding:18px}
  .kkc-actions{flex-wrap:wrap}
  .kkc-tab{flex:1 1 100%}
  .kkc-kids-top{display:block}
  .kkc-kid-count{margin-top:12px;min-width:0}
  .kkc-result h3{font-size:26px}
}

.kkc-plan-line{
  margin-top:8px;
  font-size:14px;
  color:#64748b;
  letter-spacing:.06em;
  font-weight:600;
}

.kkc-rules-btn{
  background:#fff;
  border:1px solid #e2e8f0;
  padding:10px 14px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}
.kkc-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.5);
  align-items:center;
  justify-content:center;
  z-index:999;
}
.kkc-modal-content{
  background:#fff;
  padding:24px;
  border-radius:16px;
  max-width:400px;
  width:90%;
}

.kkc-rules-btn{
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  padding:13px 16px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  transition:.18s ease all;
}
.kkc-rules-btn:hover{
  background:#e2e8f0;
}

.kkc-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.35);
  backdrop-filter:blur(6px);
  align-items:center;
  justify-content:center;
  z-index:999;
}
.kkc-modal-content{
  background:#ffffff;
  padding:28px;
  border-radius:20px;
  max-width:420px;
  width:90%;
  box-shadow:0 20px 50px rgba(0,0,0,.15);
}
.kkc-modal-content h3{
  margin-bottom:14px;
  font-size:22px;
}
.kkc-modal-content ul{
  padding-left:18px;
  margin-bottom:18px;
}
.kkc-modal-content li{
  margin-bottom:8px;
  font-weight:600;
}
