@font-face{font-family:"Baloo 2";font-weight:400 800;font-display:swap;src:url(baloo2.woff2) format("woff2")}
@font-face{font-family:"Fredoka Hebrew";font-weight:600;font-display:swap;src:url(fredoka-hebrew.woff2) format("woff2");unicode-range:U+0590-05FF,U+FB1D-FB4F}
:root{--ink:#1d1d1f;--muted:#6e6e73;--soft:#f5f5f7;--line:#e8e8ed;--blue:#0071e3;--green:#06a77d;--orange:#ff8a1f;--red:#d93a26;--yellow:#ffc93c}
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--soft);-webkit-text-size-adjust:100%}
body{font-family:"Baloo 2",ui-rounded,system-ui,sans-serif;color:var(--ink);background:var(--soft);font-size:17px;line-height:1.45;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px;border-radius:10px}
.bsd{position:absolute;top:calc(env(safe-area-inset-top) + 6px);right:12px;font-family:"Fredoka Hebrew","Baloo 2",sans-serif;font-weight:600;font-size:14px;color:#86868b;pointer-events:none}
.wrap{width:100%;max-width:520px;margin:0 auto;padding:56px 18px 12px;flex:1}
.wrap.wide{max-width:1080px}
.card{background:#fff;border-radius:24px;padding:34px 30px 30px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 40px rgba(0,0,0,.06)}
.card.center{text-align:center;max-width:560px;margin:0 auto}
.card.center form{margin-top:22px}
.eyebrow{font-weight:700;font-size:14px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
h1{font-weight:800;font-size:clamp(30px,6vw,40px);line-height:1.08;letter-spacing:-.015em;margin:6px 0 10px;text-wrap:balance}
.lede{font-size:18px;color:var(--muted);margin-bottom:20px}
.lede strong{color:var(--ink)}
.note{background:#fff7e6;border-radius:14px;padding:12px 16px;font-size:16px;margin:0 0 18px}
form{display:flex;flex-direction:column;gap:16px}
label{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:15px}
input,select{width:100%;min-height:52px;padding:12px 16px 10px;border:1.5px solid var(--line);border-radius:14px;background:#fff;font-size:17px;font-weight:500;-webkit-appearance:none;appearance:none}
input:focus,select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.hint{font-weight:500;font-size:14px;color:var(--muted)}
.err{color:var(--red);font-weight:600;font-size:15px}
.err[hidden],.msg[hidden]{display:none}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 26px 10px;border-radius:999px;background:var(--ink);color:#fff;font-weight:700;font-size:17px;text-decoration:none;transition:transform .15s,background .15s,opacity .15s;white-space:nowrap}
.btn:hover{background:#000;text-decoration:none;transform:translateY(-1px)}
.btn:disabled{opacity:.5;cursor:default;transform:none}
.btn.ghost{background:var(--soft);color:var(--ink)}
.btn.ghost:hover{background:#e9e9ee}
.btn.big{min-height:58px;font-size:19px;width:100%}
.btn.pay{background:#0070ba}
.btn.pay:hover{background:#005ea6}
.btn.sm{min-height:42px;padding:8px 18px 6px;font-size:15px}
.btn.danger{background:#fff0ee;color:var(--red)}
.btn.danger:hover{background:#ffe2dd}
.small{font-size:15px;color:var(--muted);margin-top:18px}
.code-row{display:flex;align-items:center;gap:10px;margin:10px 0 22px}
.code{display:block;font-weight:800;font-size:clamp(24px,6.6vw,40px);letter-spacing:.03em;background:var(--soft);border-radius:16px;padding:10px 16px 6px;white-space:nowrap;font-variant-numeric:tabular-nums;user-select:all;-webkit-user-select:all}
.steps{margin:0 0 24px 22px;display:flex;flex-direction:column;gap:8px;font-size:17px}
.steps li{padding-left:4px}
.steps li::marker{font-weight:800;color:var(--muted)}
.foot{display:flex;justify-content:center;padding:26px 20px calc(30px + env(safe-area-inset-bottom))}
.made img{height:44px;width:auto;display:block}
[hidden]{display:none !important}

/* admin */
.admin-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:6px}
.admin-tools{display:flex;gap:8px;align-items:center}
.admin-tools form{display:block}
.stats{color:var(--muted);font-size:15px;margin-bottom:14px}
.bar{display:flex;gap:10px;margin-bottom:12px}
.bar input{flex:1}
.bar select{width:auto;min-width:140px;padding-right:18px}
.addbox{background:#fff;border-radius:18px;padding:4px 18px;margin-bottom:14px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.addbox summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none}
.addbox summary::-webkit-details-marker{display:none}
.addbox summary::after{content:"Show";float:right;font-weight:600;color:var(--blue);font-size:15px}
.addbox[open] summary::after{content:"Hide"}
.addbox form{padding:4px 0 16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.addbox form .row,.addbox form .small{grid-column:1/-1}
.addbox form .small{margin-top:0}
.row{display:flex;gap:8px;flex-wrap:wrap}
.msg{background:#e9f8f2;color:#05795b;border-radius:12px;padding:10px 14px;font-weight:600;font-size:15px;margin-bottom:12px}
.msg.bad{background:#fff0ee;color:var(--red)}
.list{display:flex;flex-direction:column;gap:10px}
.m{background:#fff;border-radius:18px;padding:16px 18px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:6px 18px;align-items:center;box-shadow:0 1px 2px rgba(0,0,0,.04)}
.m .who{min-width:0}
.m .nm{font-weight:800;font-size:17px;overflow-wrap:anywhere}
.m .em{color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.m .meta{font-size:15px;color:var(--muted)}
.m .meta b{color:var(--ink);font-weight:700}
.m .acts{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.m .nt{grid-column:1/-1;font-size:14px;color:var(--muted)}
.tag{display:inline-block;font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;border-radius:999px;padding:2px 10px 0;margin-left:6px;vertical-align:2px}
.tag.active{background:#e3f7ef;color:#05795b}
.tag.pending{background:#fff3d6;color:#8a5a00}
.tag.expired{background:#f1f1f4;color:#6e6e73}
.tag.renew{background:#e8f1fd;color:#0058b0}
.empty{text-align:center;color:var(--muted);padding:30px 0}
@media (max-width:720px){
  .m{grid-template-columns:1fr}
  .m .acts{justify-content:flex-start}
  .addbox form{grid-template-columns:1fr}
}
@media (max-width:420px){
  .wrap{padding-top:48px}
  .card{padding:28px 20px 24px;border-radius:22px}
  .bar{flex-direction:column}
  .bar select{width:100%}
}
.admin .btn.ghost{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.admin .btn.ghost:hover{background:#fafafa}
.admin .m .btn.ghost{background:var(--soft);box-shadow:none}
input::-webkit-search-cancel-button,input::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.code-row .btn{flex:none;padding-left:20px;padding-right:20px}
select{background:#fff url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27%3E%3Cpath d=%27M1 1l5 5 5-5%27 fill=%27none%27 stroke=%27%236e6e73%27 stroke-width=%272%27/%3E%3C/svg%3E") no-repeat right 16px center;padding-right:40px !important}

/* live on chaimscorner.com (v5) */
.home-link{position:absolute;top:calc(env(safe-area-inset-top) + 8px);left:16px;font-weight:700;font-size:15px;color:var(--muted)}
.home-link:hover{color:var(--ink);text-decoration:none}
.members-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.members-head .lede{margin-bottom:0}
.members-head form{display:block}
.games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.game{display:flex;gap:18px;align-items:center;background:#fff;border-radius:22px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.04),0 12px 40px rgba(0,0,0,.06);color:var(--ink);transition:transform .15s,box-shadow .15s}
.game:hover{text-decoration:none;transform:translateY(-2px);box-shadow:0 2px 4px rgba(0,0,0,.05),0 16px 44px rgba(0,0,0,.09)}
.game img{width:120px;height:120px;border-radius:16px;flex:none;object-fit:cover;background:var(--soft)}
.g-text{display:flex;flex-direction:column;gap:4px;min-width:0}
.g-title{font-weight:800;font-size:21px;line-height:1.15}
.g-desc{font-size:15px;color:var(--muted);line-height:1.35}
.g-play{font-weight:700;font-size:16px;color:var(--blue);margin-top:4px}
.center-text{text-align:center;margin-top:26px}
@media (max-width:720px){.games{grid-template-columns:1fr}.game img{width:96px;height:96px}.g-title{font-size:19px}}
.members-head .btn.ghost{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.members-head .btn.ghost:hover{background:#fafafa}

/* v7: Games brand (dice from the Chaim's Corner logo) + feedback */
.gbrand{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 auto 22px;color:var(--ink);font-weight:800;font-size:20px;line-height:1;letter-spacing:-.01em;width:max-content;max-width:100%}
.gbrand:hover{text-decoration:none;color:#000}
.gbrand .dice{width:40px;height:40px;flex:none;color:var(--ink)}
.gbrand span{padding-top:3px}
.wrap.wide .gbrand{margin-left:0}
.fb-row{margin-top:14px}
.fb-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 18px 6px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.06);color:var(--ink);font-weight:700;font-size:15px}
.fb-link:hover{text-decoration:none;background:#fafafa}
textarea{width:100%;min-height:150px;padding:12px 16px;border:1.5px solid var(--line);border-radius:14px;background:#fff;font:inherit;font-size:17px;font-weight:500;resize:vertical}
textarea:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(0,113,227,.15)}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.fb-form .small{margin-top:0}
@media (max-width:420px){.gbrand{font-size:18px}.gbrand .dice{width:36px;height:36px}}
