*{box-sizing:border-box}
:root{
  font-family:Arial,"Noto Sans Hebrew","Segoe UI",sans-serif;
  color:#111827;
  background:#f5f7fb;
  --navy:#0b1220;
  --navy-2:#111c30;
  --primary:#2563eb;
  --primary-dark:#1d4ed8;
  --primary-soft:#eff6ff;
  --green:#16a34a;
  --danger:#dc2626;
  --border:#dbe2ea;
  --border-strong:#c8d1dc;
  --muted:#6b7280;
  --surface:#fff;
  --surface-soft:#f8fafc;
  --shadow:0 20px 55px rgba(15,23,42,.10);
}
html{-webkit-text-size-adjust:100%;background:#f5f7fb;scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  direction:rtl;
  background:
    radial-gradient(circle at 12% 8%,rgba(37,99,235,.08),transparent 28rem),
    linear-gradient(180deg,#eef3fa 0,#f7f9fc 22rem,#f5f7fb 100%);
}
button,input,select{font:inherit;font-size:16px}
button{-webkit-tap-highlight-color:transparent}
.site-header{
  position:relative;
  color:#fff;
  background:
    radial-gradient(circle at 85% 10%,rgba(59,130,246,.24),transparent 24rem),
    linear-gradient(135deg,#08111f 0%,#0d1c31 55%,#102646 100%);
  box-shadow:0 10px 34px rgba(10,24,45,.18);
  overflow:hidden;
}
.site-header:after{
  content:"";
  position:absolute;
  inset:auto -12% -100px -12%;
  height:140px;
  background:#f5f7fb;
  border-radius:50% 50% 0 0/30px 30px 0 0;
  opacity:.98;
  pointer-events:none;
}
.header-inner{
  position:relative;
  width:min(900px,100%);
  min-height:190px;
  margin:auto;
  display:grid;
  place-items:center;
  padding:28px 22px 48px;
  z-index:1;
}
.brand-wrap{text-align:center}
.brand{
  direction:ltr;
  display:inline-block;
  font-size:clamp(42px,7vw,62px);
  font-weight:900;
  letter-spacing:-4px;
  line-height:.95;
  text-shadow:0 4px 18px rgba(0,0,0,.18);
}
.g1{color:#4285f4}.g2{color:#ea4335}.g3{color:#fbbc05}.g4{color:#34a853}.hundred{color:#ffd54a;margin-left:7px}
.tagline{margin-top:12px;font-size:17px;font-weight:700;color:#d9e4f3;letter-spacing:.01em}
.admin-key{
  position:absolute;
  left:22px;
  top:22px;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:#dce7f6;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  transition:.18s ease;
  z-index:4;
}
.admin-key:hover,.admin-key:focus-visible{background:rgba(255,255,255,.15);transform:translateY(-1px);outline:none}
.admin-key svg{width:19px;height:19px;fill:currentColor}
.page{position:relative;width:min(860px,calc(100% - 28px));margin:-18px auto 54px;z-index:2}
.card{
  background:rgba(255,255,255,.98);
  border:1px solid rgba(214,222,232,.9);
  border-radius:24px;
  padding:34px 36px 30px;
  box-shadow:var(--shadow);
}
.intro{text-align:center;margin-bottom:32px}
.intro-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:5px 13px;
  margin-bottom:11px;
  border-radius:999px;
  background:var(--primary-soft);
  color:var(--primary-dark);
  font-size:13px;
  font-weight:900;
}
.intro h1{margin:0 0 8px;font-size:clamp(28px,4.5vw,40px);letter-spacing:-.02em;color:#0f172a}
.intro p{margin:0;color:var(--muted);font-size:17px}
.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 18px}
.field{min-width:0}
.field-name{grid-column:1/-1}
.field label,.games-section h2{display:block;margin:0 0 9px;font-size:16px;font-weight:900;color:#1f2937}
.field label span,.games-section h2 span{color:var(--danger)}
.control-wrap{position:relative}
.control-wrap input,.control-wrap select{
  width:100%;
  height:56px;
  border:1.5px solid var(--border);
  border-radius:14px;
  background:#fff;
  padding:0 48px 0 15px;
  color:#111827;
  outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.control-wrap input::placeholder{color:#9ca3af}
.control-wrap input:hover,.control-wrap select:hover{border-color:var(--border-strong)}
.control-wrap input:focus,.control-wrap select:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.12);background:#fff}
.field-icon,.field-symbol{
  position:absolute;
  right:17px;
  top:50%;
  transform:translateY(-50%);
  z-index:1;
  width:20px;
  height:20px;
  color:#64748b;
  fill:currentColor;
  pointer-events:none;
}
.field-symbol{display:grid;place-items:center;font-size:18px;font-weight:900}
input[type=date]{direction:rtl;text-align:right;min-width:0}
.field small{display:block;margin-top:7px;color:#8a94a3;font-size:13px}
.games-section{margin-top:34px;padding-top:29px;border-top:1px solid #e8edf3}
.section-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:14px}
.section-heading h2{margin:2px 0 0;font-size:23px;color:#0f172a}
.section-kicker{font-size:12px;font-weight:900;color:var(--primary);letter-spacing:.02em}
.pick-hint{font-size:13px;color:#7c8796;padding-bottom:3px}
.game-rows{display:grid;gap:13px}
.game-row{
  position:relative;
  border:1px solid #e0e7ef;
  border-radius:18px;
  padding:17px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 5px 16px rgba(15,23,42,.035);
}
.game-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}
.game-row-title{display:flex;align-items:center;gap:9px;font-weight:900;color:#0f172a}
.game-index{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#eaf2ff;color:#1d4ed8;font-size:13px;font-weight:900}
.game-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.game-top label{display:block;margin:0 0 7px;font-size:14px;font-weight:800;color:#4b5563}
.game-top select{width:100%;height:52px;border:1.5px solid var(--border);border-radius:13px;background:#fff;padding:0 14px;color:#111827;outline:none}
.game-top select:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.11)}
.remove-game{
  height:52px;
  min-width:92px;
  padding:0 14px;
  border:1px solid #fecaca;
  border-radius:13px;
  background:#fff7f7;
  color:#b42318;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
}
.remove-game:hover{background:#fff0f0}
.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px;direction:ltr}
.choice{
  height:54px;
  border:1.5px solid #cbd5e1;
  border-radius:13px;
  background:#fff;
  color:#334155;
  font-weight:900;
  font-size:19px;
  cursor:pointer;
  transition:transform .12s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.choice:hover{border-color:#93b4f4;background:#f8fbff}
.choice:active{transform:scale(.985)}
.choice.selected{background:#2563eb;border-color:#2563eb;color:#fff;box-shadow:0 7px 16px rgba(37,99,235,.22)}
.add-game{
  width:100%;
  min-height:56px;
  border:1.5px dashed #83a9f5;
  border-radius:15px;
  background:#f7faff;
  color:#1d4ed8;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  margin:14px 0 28px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  transition:.18s ease;
}
.add-game:hover{background:#eff6ff;border-color:#5f8ff1}
.plus{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#2563eb;color:#fff;font-size:20px;line-height:1}
.submit{
  width:100%;
  height:62px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#2563eb,#1d4ed8);
  color:#fff;
  font-size:19px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(37,99,235,.24);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:transform .14s ease,box-shadow .18s ease,opacity .18s ease;
}
.submit svg{width:22px;height:22px;fill:currentColor;transform:rotate(180deg)}
.submit:hover{box-shadow:0 15px 28px rgba(37,99,235,.29)}
.submit:active{transform:translateY(1px)}
.submit:disabled{opacity:.65;cursor:wait;box-shadow:none}
.message{display:none;margin-top:14px;padding:14px 16px;border-radius:13px;text-align:center;font-weight:800;font-size:14px}
.message.ok{display:block;background:#ecfdf3;border:1px solid #bbf7d0;color:#15803d}
.message.error{display:block;background:#fff1f2;border:1px solid #fecdd3;color:#be123c}
.privacy{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:25px;
  padding-top:22px;
  border-top:1px solid #e8edf3;
  text-align:right;
}
.privacy-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:12px;background:#ecfdf3;color:#16a34a}
.privacy-icon svg{width:21px;height:21px;fill:currentColor}
.privacy strong{display:block;font-size:14px;color:#374151}
.privacy p{margin:3px 0 0;font-size:12px;line-height:1.5;color:#8a94a3}
@media(max-width:640px){
  body{background:#f5f7fb}
  .site-header:after{height:115px;bottom:-88px}
  .header-inner{min-height:155px;padding:22px 16px 41px}
  .brand{font-size:43px}
  .tagline{font-size:14px;margin-top:9px}
  .admin-key{left:14px;top:14px;width:39px;height:39px;border-radius:12px}
  .page{width:calc(100% - 20px);margin:-9px auto 28px}
  .card{border-radius:21px;padding:25px 16px 22px;box-shadow:0 14px 35px rgba(15,23,42,.09)}
  .intro{margin-bottom:25px}
  .intro-badge{min-height:27px;margin-bottom:9px;font-size:12px}
  .intro h1{font-size:27px;margin-bottom:7px}
  .intro p{font-size:15px}
  .details-grid{grid-template-columns:1fr;gap:20px}
  .field-name{grid-column:auto}
  .field label{font-size:15px;margin-bottom:8px}
  .control-wrap input,.control-wrap select{height:54px;border-radius:13px}
  .games-section{margin-top:28px;padding-top:24px}
  .section-heading{align-items:start;margin-bottom:12px}
  .section-heading h2{font-size:21px}
  .pick-hint{max-width:135px;text-align:left;font-size:11px;line-height:1.35}
  .game-row{padding:14px;border-radius:16px}
  .game-row-head{margin-bottom:11px}
  .game-top{grid-template-columns:1fr}
  .game-top select{height:52px}
  .remove-game{width:100%;height:45px;min-width:0}
  .choices{gap:8px;margin-top:12px}
  .choice{height:53px;border-radius:12px;font-size:18px}
  .add-game{min-height:54px;margin:13px 0 23px;border-radius:14px}
  .submit{height:59px;border-radius:15px;font-size:18px}
  .privacy{justify-content:flex-start;margin-top:22px;padding:18px 4px 0}
}
@media(max-width:360px){
  .page{width:calc(100% - 12px)}
  .card{padding-left:13px;padding-right:13px}
  .brand{font-size:39px}
  .intro h1{font-size:25px}
  .choice{height:50px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Front-page refresh */
.card{
  border-top:5px solid #2563eb;
  box-shadow:0 22px 60px rgba(15,23,42,.13);
}
.intro{
  position:relative;
  padding:3px 10px 25px;
  margin-bottom:26px;
  border-bottom:1px solid #e8eef7;
}
.intro-badge{
  padding:7px 15px;
  background:linear-gradient(135deg,#dbeafe,#eef2ff);
  border:1px solid #bfdbfe;
  box-shadow:0 5px 14px rgba(37,99,235,.08);
}
.intro h1{
  color:#0b1d3a;
  font-weight:900;
}
.intro p{color:#64748b;font-weight:600}
.details-grid{gap:18px}
.field-card{
  position:relative;
  padding:17px 17px 15px;
  border:1px solid #e0e8f2;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 7px 18px rgba(15,23,42,.045);
  overflow:hidden;
}
.field-card:before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:4px;
  background:linear-gradient(90deg,#2563eb,#60a5fa);
}
.field-amount:before{background:linear-gradient(90deg,#16a34a,#4ade80)}
.field-date:before{background:linear-gradient(90deg,#7c3aed,#a78bfa)}
.field-card label{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
  font-size:15px;
  color:#0f172a;
}
.field-name label:before,.field-amount label:before,.field-date label:before{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:8px;
  font-size:13px;
  font-weight:900;
  flex:0 0 auto;
}
.field-name label:before{content:"1";background:#dbeafe;color:#1d4ed8}
.field-amount label:before{content:"2";background:#dcfce7;color:#15803d}
.field-date label:before{content:"3";background:#ede9fe;color:#6d28d9}
.field-card .control-wrap input,.field-card .control-wrap select{
  height:58px;
  border-width:2px;
  border-color:#d6e0eb;
  background:#f8fafc;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.025);
}
.field-card .control-wrap input:focus,.field-card .control-wrap select:focus{
  background:#fff;
  transform:translateY(-1px);
}
.field-name .control-wrap input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.12)}
.field-amount .control-wrap select:focus{border-color:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.field-date .control-wrap input:focus{border-color:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.12)}
.field-amount .field-symbol{color:#16a34a}
.field-date .field-icon{color:#7c3aed}
.field-name .field-icon{color:#2563eb}
.field small{
  margin-top:8px;
  padding-right:4px;
  color:#64748b;
  font-weight:600;
}
.games-section{
  margin-top:25px;
  padding:25px 20px 4px;
  border:1px solid #e1e8f1;
  border-radius:20px;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 42%);
}
.game-row{
  border-color:#dbe5f0;
  box-shadow:0 7px 18px rgba(15,23,42,.045);
}
.add-game{margin-bottom:18px}
.submit{
  margin-top:22px;
  min-height:64px;
  font-size:20px;
  background:linear-gradient(135deg,#0f62d7 0%,#2563eb 48%,#4f46e5 100%);
  box-shadow:0 14px 28px rgba(37,99,235,.28);
}
@media(max-width:640px){
  .owner-signature{margin-top:11px;padding:7px 14px 8px;border-radius:13px}
  .owner-signature strong{font-size:15px}
  .owner-kicker{font-size:9px}
  .card{border-top-width:4px}
  .intro{padding-bottom:20px;margin-bottom:21px}
  .field-card{padding:15px 14px 14px;border-radius:16px}
  .games-section{padding:20px 12px 3px;border-radius:18px}
  .submit{margin-top:18px}
}

/* Compact dynamic game-entry rows */
.games-section{margin-top:28px;padding-top:24px}
.game-rows{display:grid;gap:10px}
.game-row{
  display:grid;
  grid-template-columns:minmax(118px,150px) minmax(240px,1fr);
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:1px solid #dfe7f1;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
.game-row-empty{background:#f8fafc;border-style:dashed}
.game-number{width:100%;height:46px;border:1.5px solid #cbd5e1;border-radius:11px;background:#fff;padding:0 12px;color:#111827;outline:none;font-size:16px;font-weight:800}
.game-row-empty .game-number{color:#94a3b8;font-weight:700}
.game-number:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.11)}
.game-row .choices{display:grid;grid-template-columns:repeat(3,minmax(58px,1fr));gap:8px;margin:0;direction:ltr}
.game-row .choice{height:46px;border-radius:11px;font-size:18px}
.game-row-empty .choice{opacity:.58}
.game-row-empty .choice:hover{background:#fff;border-color:#cbd5e1}
@media(max-width:640px){
  .game-row{grid-template-columns:minmax(94px,112px) minmax(0,1fr);gap:7px;padding:9px 8px;border-radius:12px}
  .game-number{height:43px;padding:0 8px;font-size:13px}
  .game-row .choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  .game-row .choice{height:43px;min-width:0;padding:0;font-size:16px}
}
@media(max-width:390px){
  .game-row{grid-template-columns:minmax(88px,102px) minmax(0,1fr);gap:5px;padding:8px 6px}
  .game-number{padding:0 6px;font-size:12px}
  .game-row .choices{gap:4px}
}


.site-footer{width:100%;text-align:center;padding:22px 12px 28px;color:#64748b;font-size:14px;font-weight:600;}

/* =========================================================
   Google100 2026 mobile-first refresh
   ========================================================= */
:root{
  --mobile-ink:#102033;
  --mobile-muted:#637083;
  --mobile-blue:#155eef;
  --mobile-blue-dark:#0d46ba;
  --mobile-surface:#ffffff;
  --mobile-bg:#eef3f8;
  --mobile-line:#d8e1eb;
  --mobile-success:#067647;
}
body{overflow-x:hidden;color:var(--mobile-ink)}
.site-header{background:linear-gradient(145deg,#071b33 0%,#0b3260 62%,#155eef 140%)}
.card{border-radius:22px;border-color:#dbe4ee;box-shadow:0 16px 42px rgba(16,32,51,.10)}
#entryForm .field-card .control-wrap input,
#entryForm .field-card .control-wrap select,
#entryForm .control-wrap input,
#entryForm .control-wrap select{
  background:#fff !important;background-color:#fff !important;color:#15283d !important;
  border:1.5px solid #cbd7e4 !important;font-weight:700;
}
#entryForm .control-wrap input:focus,
#entryForm .control-wrap select:focus{
  border-color:#155eef !important;box-shadow:0 0 0 4px rgba(21,94,239,.12) !important;
}
#entryForm .intro h1{color:#102a43 !important}
.choice{min-width:0}
.site-footer{padding-inline:16px}

@media(max-width:640px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .site-header{min-height:126px}
  .site-header:after{display:none}
  .header-inner{min-height:126px;padding:17px 14px 20px}
  .admin-key{left:12px;top:12px;width:40px;height:40px;border-radius:12px}
  .brand{font-size:37px;letter-spacing:-3px}
  .tagline{margin-top:7px;font-size:13px}
  .page{width:100%;margin:0 auto 26px;padding:12px}
  .card{padding:20px 14px 18px;border-radius:18px;box-shadow:0 8px 24px rgba(16,32,51,.08)}
  .intro{margin-bottom:20px}
  .intro-badge{font-size:11px;min-height:26px;padding:4px 10px;margin-bottom:8px}
  .intro h1{font-size:25px;margin-bottom:5px}
  .intro p{font-size:13px;line-height:1.45}
  .details-grid{grid-template-columns:1fr;gap:13px}
  .field-name{grid-column:auto}
  .field label,.games-section h2{font-size:14px;margin-bottom:6px}
  .control-wrap input,.control-wrap select{height:50px;border-radius:12px;padding-inline:42px 12px}
  .field-icon,.field-symbol{right:14px;width:18px;height:18px;font-size:16px}
  .field small{font-size:11px;margin-top:5px}
  .games-section{margin-top:20px;padding-top:18px}
  .game-rows{gap:10px}
  .game-row{padding:12px;border-radius:14px}
  .game-row-head{margin-bottom:9px}
  .game-row-title{font-size:14px}
  .game-index{width:24px;height:24px;border-radius:7px;font-size:11px}
  .game-top{grid-template-columns:minmax(0,1fr) 80px;gap:8px}
  .game-top label{font-size:12px;margin-bottom:5px}
  .game-top select,.remove-game{height:46px;border-radius:11px;font-size:13px}
  .remove-game{min-width:80px;padding:0 8px}
  .choices{gap:7px;margin-top:10px}
  .choice{height:48px;border-radius:11px;font-size:17px}
  .add-game{min-height:50px;margin:11px 0 18px;border-radius:12px;font-size:14px}
  .plus{width:24px;height:24px;font-size:18px}
  .submit{height:54px;border-radius:13px;font-size:16px;box-shadow:0 8px 18px rgba(21,94,239,.22)}
  .privacy{margin-top:18px;padding-top:16px;gap:9px;align-items:flex-start}
  .privacy-icon{width:34px;height:34px;border-radius:10px}
  .privacy strong{font-size:12px}.privacy p{font-size:10.5px;line-height:1.45}
}

@media(max-width:380px){
  .page{padding:8px}.card{padding-inline:11px}.brand{font-size:34px}
  .game-top{grid-template-columns:minmax(0,1fr) 72px}.remove-game{min-width:72px;font-size:12px}
}


/* Public Players viewer button */
.players-button{position:absolute;right:22px;top:22px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:14px;text-decoration:none;color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(8px);font-weight:900;letter-spacing:.01em;z-index:4;transition:.18s ease}
.players-button:hover,.players-button:focus-visible{background:rgba(255,255,255,.17);transform:translateY(-1px);outline:none}
@media(max-width:640px){.players-button{right:14px;top:14px;min-height:39px;padding:0 13px;border-radius:12px;font-size:14px}}
@media(max-width:380px){.players-button{right:12px;top:12px;min-height:40px;padding:0 11px}}
