/* ==========================================================================
   ek-chrome.css — the original ekoloko.com chrome, as a reusable sheet.

   Every value here is lifted from deployed evidence, not invented:
     · lime #abd93f, navy #18384f, image border #a7b793 — original ekoloko.css
     · band gradient — sampled row-by-row from the game's own Menu_iw.swf bar
     · paper — main_iw.jpg (top) over tileable_iw.jpg (repeat-y), 860px wide
     · palms — back_left.jpg 143px / back_right.jpg 197px, the 1200px scene
     · torn footer — footer_iw.jpg, oblique links (.footerLinks)
     · buttons — PlayBtn_iw.swf / RegBtn_iw.swf: tilted slabs, bubble letters
       inside a white sticker outline
     · type — Arial body (TextFormats.as sets font "Arial" for every format);
       GanCLM, the round Hebrew face of the game's own UI, for headings only

   index.html carries its own copy of the chrome inline. This sheet exists so
   every OTHER page of the site renders the same chrome from one source.
   ========================================================================== */

@font-face{font-family:'GanCLM';src:url(/assets/gan-clm.woff2) format('woff2');
  font-weight:400 900;font-display:swap;
  unicode-range:U+0590-05FF,U+FB1D-FB4F,U+20AA}

:root{
  --lime:#abd93f;
  --navy:#18384f;
  --ink-2:#4a6076;
  --img-border:#a7b793;
  --rule:#dcd9b8;
  --band-grad:linear-gradient(180deg,#18384e 0%,#295f83 10%,#326486 45%,#2c5a78 70%,#224d6a 88%,#1d435d 100%);
  --pill-grad:linear-gradient(180deg,#8cb9dc 0%,#71a7cf 55%,#5f97c2 100%);
  --green-btn:linear-gradient(180deg,#79c93f 0%,#4f9b23 100%);
  --amber-bg:#fdf3d8; --amber-line:#e8d49c; --amber-ink:#7c5a10;
  --red-bg:#fdeaea; --red-line:#e5b4b4; --red-ink:#a12b2b;
  --font-body:Arial,'Segoe UI',sans-serif;
  --font-title:'GanCLM',Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--lime);overflow-x:clip}
html{scroll-behavior:smooth}
.ek{direction:rtl;text-align:right;font-family:var(--font-body);
  color:var(--navy);background:var(--lime);line-height:1.65}
.ek img{max-width:100%}
:where(.ek a){color:inherit;text-decoration:none}
:focus-visible{outline:3px solid #1b4762;outline-offset:2px;border-radius:4px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

/* ---- Header: the game's sky scene + the authentic blue tab bar ------------ */
.top{position:relative;height:154px;background:var(--lime)}
.top-sky{position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:960px;height:154px;background:url(/assets/menu-sky.jpg) center top no-repeat;
  pointer-events:none}
.top-band{position:absolute;top:96px;right:0;left:0;height:46px;background:var(--band-grad)}
.top-in{position:relative;max-width:1200px;height:100%;margin:0 auto}
.top-logo{position:absolute;top:3px;inset-inline-start:30px;width:210px;height:auto;
  filter:drop-shadow(0 3px 6px rgba(24,56,79,.3))}
.top-nav{position:absolute;top:96px;height:46px;inset-inline-start:270px;inset-inline-end:180px;
  display:flex;align-items:center;overflow:hidden}
.top-nav a{color:#fff;font-weight:700;font-size:16px;white-space:nowrap;
  font-family:var(--font-title);padding:0 17px;line-height:44px;
  text-shadow:0 1px 2px rgba(10,35,55,.45)}
.top-nav a + a{border-inline-start:1px solid rgba(255,255,255,.42)}
.top-nav a:hover{color:#cfe8ff}
.top-nav a:focus-visible{outline-color:#fff;outline-offset:-3px}
.top-dl{position:absolute;top:102px;inset-inline-end:26px;height:34px;
  display:inline-flex;align-items:center;gap:7px;background:var(--pill-grad);color:#fff;
  border-radius:15px;padding:0 17px;font-weight:700;font-size:14.5px;
  font-family:var(--font-title);text-shadow:0 1px 1px rgba(24,56,78,.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 1px 3px rgba(24,56,78,.4);transition:filter .15s}
.top-dl:hover{filter:brightness(1.07)}
@media(max-width:1000px){
  .top{height:auto;padding-bottom:0}
  .top-sky{width:100%;height:100%;background-size:cover}
  .top-in{height:auto;text-align:center;padding-top:10px}
  .top-logo{position:relative;top:auto;inset-inline-start:auto;width:190px;margin:0 auto;display:block}
  .top-band{display:none}
  .top-nav{position:relative;top:auto;height:auto;background:var(--band-grad);margin-top:10px;
    inset-inline-start:auto;inset-inline-end:auto;
    justify-content:center;flex-wrap:wrap;padding:2px 8px;overflow:visible}
  .top-nav a{line-height:40px;padding:0 13px;font-size:15px}
  .top-dl{position:relative;top:auto;inset-inline-end:auto;margin:12px auto 14px;display:inline-flex}
}

/* ---- The 1200px three-column scene (palms + paper) ----------------------- */
.scene{direction:ltr;max-width:1200px;margin:0 auto;display:grid;
  grid-template-columns:143px 860px 197px}
.palm{display:block;width:100%;height:auto}
.paper{direction:rtl;position:relative;
  background:url(/ekoloko/website/common/images/main_iw.jpg) no-repeat top center,
  url(/ekoloko/website/common/images/tileable_iw.jpg) repeat-y top center;
  background-size:100% auto,100% auto;min-width:0}
.paper-in{padding:34px 48px 30px}
.tear{display:block;width:100%;height:auto}

/* Tuki, the login-screen parrot, perched on the paper's top edge */
.tuki{position:absolute;top:-12px;right:52px;width:132px;height:auto;z-index:2;
  pointer-events:none;animation:tuki-bob 3.6s ease-in-out infinite alternate;
  filter:drop-shadow(0 4px 6px rgba(40,60,10,.3))}
@keyframes tuki-bob{from{transform:translateY(0)}to{transform:translateY(-6px)}}
@media(max-width:1000px){.tuki{width:96px;top:-8px;right:12px}}
@media(max-width:1239px){
  .scene{grid-template-columns:1fr;max-width:860px}
  .scene>.palm{display:none}
  .paper-in{padding:26px clamp(16px,5vw,48px) 24px}
}

/* ---- Original typography -------------------------------------------------- */
.Title{font-size:27px;color:var(--navy);font-weight:bold;line-height:1.3;margin:0 0 10px;
  font-family:var(--font-title)}
h1.Title{font-size:32px}
.BodyText{font-size:15px;color:var(--navy);line-height:1.75}
.sec{padding:26px 0}
.sec + .sec{border-top:1px solid var(--rule)}
.sec p{font-size:15px;color:var(--navy);line-height:1.8;margin:0 0 13px}
.sec p:last-child{margin-bottom:0}
.sec h2.Title{font-size:22px}
.lede{font-size:16px;color:var(--navy);margin:0 auto;max-width:56ch}
.images{border:1px solid var(--img-border)}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- The game's own button pair ------------------------------------------ */
.btn-dl{display:inline-block;text-align:center;cursor:pointer;border:0;
  font-family:var(--font-title);font-weight:bold;font-size:24px;line-height:1.15;
  color:#1590ed;
  background:linear-gradient(180deg,#d2960f 0%,#f1ac11 22%,#f1ac11 100%);
  border-radius:18px;padding:15px 34px 17px;
  transform:rotate(-1.5deg);
  box-shadow:0 4px 0 #b57f08,0 9px 16px -7px rgba(90,60,0,.55);
  transition:transform .15s,filter .15s;
  text-shadow:-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,2px 2px 0 #fff,
    -2px 0 0 #fff,2px 0 0 #fff,0 -2px 0 #fff,0 2px 0 #fff}
.btn-dl:hover{transform:rotate(-1.5deg) scale(1.045)}
.btn-dl:active{transform:rotate(-1.5deg) scale(.98);box-shadow:0 2px 0 #b57f08}
.btn-dl[disabled]{filter:grayscale(.6);opacity:.6;cursor:not-allowed;transform:rotate(-1.5deg)}
.btn-blue{display:inline-block;text-align:center;cursor:pointer;border:0;
  font-family:var(--font-title);font-weight:bold;font-size:19px;line-height:1.15;
  color:#f6ba00;
  background:linear-gradient(180deg,#0f6fbe 0%,#1282d7 26%,#1282d7 100%);
  border-radius:15px;padding:12px 26px 13px;
  transform:rotate(1.4deg);
  box-shadow:0 4px 0 #0c5c9e,0 8px 14px -7px rgba(10,60,110,.55);
  transition:transform .15s;
  text-shadow:-2px -2px 0 #fff,2px -2px 0 #fff,-2px 2px 0 #fff,2px 2px 0 #fff,
    -2px 0 0 #fff,2px 0 0 #fff,0 -2px 0 #fff,0 2px 0 #fff}
.btn-blue:hover{transform:rotate(1.4deg) scale(1.045)}
.btn-blue:active{transform:rotate(1.4deg) scale(.98);box-shadow:0 2px 0 #0c5c9e}
.btn-ghost{display:inline-flex;align-items:center;gap:7px;color:var(--navy);
  font-weight:bold;font-size:13.5px;border:1px solid var(--img-border);
  border-radius:8px;padding:8px 15px;background:#fff;cursor:pointer;
  font-family:var(--font-body);transition:.15s}
.btn-ghost:hover{border-color:#2f6486;color:#2f6486}

/* ---- Notes and errors, in the original amber/red paper tones ------------- */
.note{background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:8px;
  padding:13px 17px;margin:16px 0}
.note p{color:#6f5416;margin:0;font-size:14px}
.note b{color:var(--amber-ink)}
.errbox{background:var(--red-bg);border:1px solid var(--red-line);border-radius:8px;
  padding:13px 17px;margin:0 0 18px;color:var(--red-ink);font-size:14.5px}
.errbox b{display:block;margin-bottom:5px;font-family:var(--font-title);font-size:16px}
.errbox ul{margin:0;padding-inline-start:20px}
.errbox li{margin:3px 0}

/* ---- Form controls, styled as the Flash forms' inset fields -------------- */
.fld{display:block;margin:0 0 16px}
.fld>span{display:block;font-size:14px;font-weight:bold;color:var(--navy);margin:0 0 6px}
.fld>span em{color:#c0392b;font-style:normal;margin-inline-start:2px}
.fld small{display:block;font-weight:normal;color:var(--ink-2);font-size:12.5px;margin-top:3px}
.ek input[type=text],.ek input[type=email],.ek input[type=password],.ek select,.ek textarea{
  width:100%;font-family:var(--font-body);font-size:15px;color:var(--navy);
  background:#fff;border:1px solid var(--img-border);border-radius:6px;
  padding:10px 12px;outline:none;
  box-shadow:inset 0 1px 2px rgba(24,56,79,.12);
  transition:border-color .15s,box-shadow .15s}
/* Keep touch inputs legible when a phone rotates beyond the narrow layout. */
@media (hover:none) and (pointer:coarse){
  .ek input[type=text],.ek input[type=email],.ek input[type=password],.ek select,.ek textarea{font-size:16px}
}
.ek input:focus,.ek select:focus,.ek textarea:focus{
  border-color:#2f6486;box-shadow:inset 0 1px 2px rgba(24,56,79,.12),0 0 0 3px rgba(47,100,134,.18)}
.ek input:focus-visible,.ek select:focus-visible,.ek textarea:focus-visible{
  outline:3px solid #1b4762;outline-offset:2px}
.ek input.bad,.ek textarea.bad{border-color:#c0392b;box-shadow:0 0 0 3px rgba(192,57,43,.14)}
.ek textarea{resize:vertical;min-height:120px;line-height:1.7}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
@media(max-width:620px){.two{grid-template-columns:1fr}}

/* ---- Category chooser: the original subject ComboBox, opened out --------- */
.cats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:0 0 6px;padding:0;list-style:none}
@media(max-width:620px){.cats{grid-template-columns:1fr}}
.cat{position:relative;display:flex;gap:12px;align-items:flex-start;
  background:#fff;border:1px solid var(--img-border);border-radius:10px;
  padding:14px 15px;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
.cat:hover{border-color:#2f6486;transform:translateY(-1px)}
.cat input{position:absolute;opacity:0;width:0;height:0}
.cat .mark{flex:0 0 34px;width:34px;height:34px;border-radius:50%;
  background:var(--band-grad);color:#fff;display:grid;place-items:center;margin-top:2px}
.cat b{display:block;font-family:var(--font-title);font-size:17px;color:var(--navy);line-height:1.25}
.cat span{display:block;font-size:13px;color:var(--ink-2);margin-top:3px;line-height:1.5}
.cat:has(input:checked){border-color:#4f9b23;box-shadow:0 0 0 2px rgba(79,155,35,.35)}
.cat:has(input:checked) .mark{background:var(--green-btn)}
.cat:has(input:focus-visible){outline:3px solid #1b4762;outline-offset:2px}

/* ---- Attachments -------------------------------------------------------- */
.drop{border:2px dashed var(--img-border);border-radius:10px;background:#fffdf4;
  padding:20px 16px;text-align:center;transition:border-color .15s,background .15s}
.drop.over{border-color:#4f9b23;background:#f4fae6}
.drop p{margin:8px 0 0;font-size:13.5px;color:var(--ink-2)}
.drop input[type=file]{display:block;margin:12px auto 0;font-family:var(--font-body);
  font-size:13.5px;color:var(--ink-2);max-width:100%;width:auto}
/* the native picker's own button, wearing the game's green slab */
.drop input[type=file]::file-selector-button{
  font-family:var(--font-title);font-weight:bold;font-size:15px;color:#fff;
  background:var(--green-btn);border:0;border-radius:8px;padding:9px 20px;
  margin-inline-end:10px;cursor:pointer;
  text-shadow:0 1px 1px rgba(30,70,10,.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 2px 0 #3d7a1a;
  transition:filter .15s}
.drop input[type=file]::file-selector-button:hover{filter:brightness(1.08)}
.filelist{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:7px}
.filelist li{display:flex;align-items:center;gap:9px;background:#fff;
  border:1px solid var(--img-border);border-radius:7px;padding:7px 11px;font-size:13.5px}
.filelist .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filelist .sz{color:var(--ink-2);font-size:12.5px;font-variant-numeric:tabular-nums}

/* ---- Captcha row -------------------------------------------------------- */
.captcha-row{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.captcha-row .fld{flex:1;min-width:180px;margin-bottom:0}
.captcha-img{border:1px solid var(--img-border);border-radius:6px;background:#fff;
  display:block;height:44px;width:auto}
.captcha-reload{background:none;border:0;cursor:pointer;color:#2f6486;font-weight:bold;
  font-size:13px;font-family:var(--font-body);text-decoration:underline;padding:4px 2px}

/* ---- Success panel ------------------------------------------------------ */
.done{text-align:center;padding:34px 10px 26px}
.done .seal{width:86px;height:86px;border-radius:50%;background:var(--green-btn);
  color:#fff;display:inline-grid;place-items:center;margin-bottom:16px;
  box-shadow:0 5px 0 #3d7a1a,0 12px 20px -10px rgba(40,80,10,.6)}
.done .ref{display:inline-block;margin-top:6px;background:var(--amber-bg);
  border:1px solid var(--amber-line);border-radius:8px;padding:8px 18px;
  font-weight:bold;color:var(--amber-ink);font-size:15px;font-variant-numeric:tabular-nums}

/* ---- Original footer: torn edge, oblique links, © line ------------- */
.footrow{max-width:1200px;margin:0 auto;text-align:center;padding:10px 16px 26px}
.foot-emblem{display:block;width:74px;height:auto;margin:2px auto 12px;
  filter:drop-shadow(0 2px 4px rgba(40,70,10,.3))}
.footerLinks{color:var(--navy);font-style:oblique;font-size:13px}
.footerLinks:hover,.footerLinks:focus-visible{text-decoration:underline}
.footerSep{color:var(--navy);opacity:.75;margin:0 7px;font-size:12px}
.footerText{display:block;color:var(--navy);font-size:12.5px;margin-top:8px;line-height:1.6}

/* ---- Account pages (forgot / reset password, activation) ----------------
   One short form centred on the paper: the login panel's own proportions.
   Status lines reuse the amber note / red error paper tones above. */
.acct{max-width:440px;margin:0 auto;text-align:center;padding:8px 0 6px}
.acct .lede{margin-bottom:22px}
.acct form{text-align:right;margin:0 0 6px}
.acct .btn-dl{display:block;margin:22px auto 6px;min-width:240px}
.acct .btn-dl[aria-busy=true]{filter:saturate(.7);cursor:progress}
.acct-msg{min-height:0;margin:14px 0 0;text-align:center}
.acct-msg:empty{display:none}
.acct-msg{background:var(--amber-bg);border:1px solid var(--amber-line);border-radius:8px;
  padding:12px 16px;color:#6f5416;font-size:14.5px}
.acct-msg[data-error]{background:var(--red-bg);border-color:var(--red-line);color:var(--red-ink)}
.acct-msg[data-ok]{background:#eef8e2;border-color:#bcdc94;color:#3d6a17}
.acct-alt{margin:18px 0 0;font-size:14px;color:var(--ink-2)}
.acct-alt a{color:#2f6486;font-weight:bold;text-decoration:underline}
.acct-or{display:flex;align-items:center;gap:12px;margin:2px 0 14px;color:var(--ink-2);font-size:13px}
.acct-or::before,.acct-or::after{content:"";flex:1;border-top:1px solid var(--rule)}
.acct .done{padding:18px 0 8px}
.acct .done .seal.bad{background:linear-gradient(180deg,#e0645a 0%,#b8382d 100%);box-shadow:0 5px 0 #8e2a22,0 12px 20px -10px rgba(120,30,20,.6)}
.acct .small{font-size:13px;color:var(--ink-2);margin:14px 0 0}
@media(max-width:700px){.acct .btn-dl{min-width:0}}
/* honeypot: clipped in place. A negative offset on an RTL page extends the
   scrollable area leftward, so never move it offscreen with `left`. */
.hp{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

/* ---- Phones -------------------------------------------------------------
   The paper scene is a fixed 1200px stage; below that the palms are already
   dropped and the sheet goes fluid. What is left is type, spacing and touch
   targets — a 10-year-old fills this form on a phone. */
@media(max-width:700px){
  .paper-in{padding:20px 16px 18px}
  h1.Title{font-size:25px}
  .Title{font-size:21px}
  .sec{padding:20px 0}
  .sec h2.Title{font-size:19px}
  .lede{font-size:15px}
  .BodyText{font-size:14.5px}
  .cats{gap:10px}
  .cat{padding:12px 13px;gap:10px}
  .cat .mark{flex-basis:30px;width:30px;height:30px}
  .cat b{font-size:15.5px}
  .cat span{font-size:12.5px}
  /* 16px keeps iOS Safari from zooming the page when a field is focused */
  .ek input[type=text],.ek input[type=email],.ek input[type=password],.ek select,.ek textarea{font-size:16px;padding:11px 12px}
  .ek textarea{min-height:130px}
  .fld>span{font-size:13.5px}
  .btn-dl{font-size:21px;padding:14px 26px 16px;width:100%;max-width:340px}
  .btn-blue{font-size:17px;width:100%;max-width:300px}
  .drop{padding:16px 12px}
  .drop p{font-size:12.5px}
  .drop input[type=file]::file-selector-button{font-size:14px;padding:9px 15px;min-height:44px}
  .captcha-reload{min-width:44px;min-height:44px}
  .captcha-row{gap:12px}
  .captcha-row .fld{min-width:0;flex:1 1 100%}
  .done{padding:26px 6px 18px}
  .done .seal{width:70px;height:70px}
  .footrow{padding:10px 12px 22px}
  .footerLinks{font-size:12.5px;display:inline-block;padding:3px 0}
  .footerSep{margin:0 4px}
  .tuki{display:none}
}
/* Keep the attachment control legible in narrow and touch layouts. */
@media(max-width:700px),(max-width:1024px) and (hover:none) and (pointer:coarse){
  .drop input[type=file],.drop input[type=file]::file-selector-button{font-size:16px}
  .drop input[type=file]::file-selector-button{min-height:44px}
}
@media(max-width:420px){
  .paper-in{padding:16px 12px 14px}
  h1.Title{font-size:22px}
  .cats{grid-template-columns:1fr}
  .btn-dl{font-size:19px;padding:13px 18px 15px}
}
