/* TICKARASHI — סגנון משותף. צבעי כל עיצוב מוגדרים במחלקה שלו על הטלפון. */
.phone.sept {
  --bg: #6a25a3;
  --ink: #3e1470;
  --cream: #e4ddb2;
  --lilac: #9c78c6;
  --mint: #36c7a0;
  --orange: #f08a3c;
  --tab: #c8b4e0;
  --menu: #3e1470;
  --menu-sel: #52238f;
  --stage: #1b0a2e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #1b0a2e; overflow: hidden; }
body { font-family: 'Assistant', sans-serif; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; background: none; border: 0; outline: none; }
button, a, [data-go] { cursor: pointer; }
[hidden] { display: none !important; }

/* הטלפון נשאר 360×780 כמו בפיגמה, ומוקטן או מוגדל להתאים למסך */
.stage { position: fixed; inset: 0; overflow: hidden; }
.phone {
  position: absolute; left: 50%; top: 50%; width: 360px; height: 780px; overflow: hidden;
  background: var(--bg); transform-origin: center;
  transition: opacity .22s;
}
.phone.switching { opacity: 0; }
.abs { position: absolute; display: block; }
.flip { transform: scaleX(-1); }

/* סטטוס בר */
.status { position: absolute; inset: 0 0 auto 0; height: 49px; z-index: 5; pointer-events: none; }
.status-time {
  position: absolute; right: 8px; top: 13px; line-height: 22px;
  font: 600 15px 'Inter', sans-serif; color: #fff; direction: ltr;
}

/* מסכים: מעבר רך, בלי קפיצות */
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
.screen.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.instant .screen { transition: none; }

/* טקסטים */
.title { position: absolute; right: 16px; width: 328px; font-weight: 700; font-size: 22px; color: var(--cream); text-align: right; }
.hint { position: absolute; right: 16px; width: 328px; font-weight: 600; font-size: 12px; color: var(--tab); text-align: right; }
.date-line { position: absolute; left: 16px; width: 328px; font-weight: 600; font-size: 14px; color: var(--cream); text-align: center; }
.text-btn { position: absolute; font-weight: 700; font-size: 17px; color: var(--cream); text-align: center; line-height: normal; }
.hit { position: absolute; display: block; }

/* קופסה איזומטרית */
.b-back { position: absolute; left: -10px; top: 9px; border: .6px solid #fff; }
.b-face { position: absolute; left: 0; top: 0; border: .9px solid #fff; transition: background .3s; }
.b3d { position: absolute; display: block; }
.b3d .b-label { position: absolute; left: 0; width: 100%; text-align: center; font-weight: 700; color: var(--ink); line-height: normal; }
.b3d.ghost .b-label { color: var(--cream); }
.b3d:active .b-face { filter: brightness(1.08); }
.b3d > img { pointer-events: none; }

/* ספרות */
.dg { position: absolute; transform-origin: 0 0; pointer-events: none; }
.dg-i { position: absolute; display: block; }
.dg-pen { position: absolute; top: 8%; bottom: 8%; width: 1px; background: #fff; box-shadow: 0 0 6px #fff; }

/* השעון: כל חלק בשכבה משלו, ומרחף בנפרד */
.clock { position: absolute; left: 5px; top: 112.5px; width: 350px; height: 340px; }
.layer { position: absolute; inset: 0; width: 350px; height: 340px; }
.layer svg { position: absolute; inset: 0; overflow: visible; }
.float { animation: float var(--d, 3.2s) ease-in-out var(--delay, 0s) infinite alternate; }
.f-plate { --d: 3.4s; --a: -5px; }
.f-12 { --d: 2.6s; --a: -7px; --delay: -0.0s; }
.f-3  { --d: 2.6s; --a: -7px; --delay: -0.65s; }
.f-6  { --d: 2.6s; --a: -7px; --delay: -1.3s; }
.f-9  { --d: 2.6s; --a: -7px; --delay: -1.95s; }
.f-hands { --d: 3.0s; --a: -9px; --delay: -0.8s; }
.f-world { --d: 3.6s; --a: -6px; }
.f-sw1 { --d: 2.8s; --a: -8px; }
.f-sw2 { --d: 2.8s; --a: -6px; --delay: -0.9s; }
.f-sw3 { --d: 2.8s; --a: -8px; --delay: -1.6s; }
.f-dial { --d: 3.4s; --a: -7px; }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(var(--a, -6px)); } }

/* התראות */
.next-alarm {
  position: absolute; right: 20px; top: 462px; width: 270px;
  font-weight: 700; font-size: 15px; color: var(--cream); text-align: right;
}
.alarm-list { position: absolute; left: 0; top: 491px; width: 360px; height: 222px; overflow-y: auto; scrollbar-width: none; }
.alarm-list::-webkit-scrollbar { display: none; }
.card { position: absolute; left: 26px; width: 318px; height: 58px; }
.card:last-child { margin-bottom: 9px; }
.card .back { position: absolute; left: -10px; top: 9px; width: 318px; height: 58px; border: .6px solid #fff; }
.card .depth { position: absolute; width: 10.4px; height: 9.45px; }
.card .face { position: absolute; inset: 0; background: var(--cream); border: .9px solid #fff; transition: background .35s; }
.card .time {
  position: absolute; right: 16px; top: 4px; font-weight: 700; font-size: 28px;
  color: var(--ink); direction: ltr; transition: opacity .35s;
}
.card .days {
  position: absolute; right: 16px; top: 38px; font-weight: 600; font-size: 12px;
  color: var(--ink); opacity: .75; white-space: pre;
}
.card .track {
  position: absolute; left: 16px; top: 18px; width: 40px; height: 22px; border-radius: 11px;
  border: 1.2px solid var(--ink); background: transparent; transition: background .3s;
}
.card .knob { position: absolute; left: 20px; top: 22px; width: 14px; height: 14px; transition: left .3s; }
.card .hit { position: absolute; left: 8px; top: 10px; width: 56px; height: 38px; background: none; border: 0; cursor: pointer; }
.card.on .track { background: var(--mint); }
.card.on .knob { left: 37px; }
.card:not(.on) .face { background: var(--lilac); }
.card:not(.on) .time { opacity: .55; }

/* פלוס וקובייה */
.plus { position: absolute; width: 67.2px; height: 72.8px; }
.plus img { display: block; }
.cube { position: absolute; left: 8px; top: 58px; width: 44px; height: 44px; z-index: 6; transition: opacity .3s; }
.cube img { position: absolute; left: 6.7px; top: 4.2px; }

/* ניווט */
.tabs {
  position: absolute; left: 16px; top: 722px; width: 328px; z-index: 4;
  display: flex; justify-content: space-between; align-items: center; transition: opacity .3s;
}
.tab {
  padding: 6px 12px; font-weight: 600; font-size: 14px; color: var(--tab);
  text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: background .3s, color .3s;
}
.tab.on { background: var(--mint); border-color: #fff; color: var(--ink); font-weight: 700; }
.bare .tabs, .bare .cube { opacity: 0; pointer-events: none; }

/* תפריט הקוביות: 6.5 שורות גלויות מתוך 13 */
.menu-veil { position: absolute; inset: 0; z-index: 7; display: none; }
.menu {
  position: absolute; left: 10px; top: 100px; width: 124px; height: 372px; z-index: 8;
  background: var(--menu); border-radius: 20px; box-shadow: -6px 12px 20px rgba(0,0,0,.35);
  overflow: hidden; transform-origin: 20px 0; transform: scale(.6) translateY(-20px); opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.3,1.3,.5,1), opacity .2s;
}
.menu-open .menu { transform: none; opacity: 1; pointer-events: auto; }
.menu-open .menu-veil { display: block; }
.m-list { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 6px 0; }
.m-list::-webkit-scrollbar { display: none; }
.m-row {
  position: relative; display: block; width: 112px; height: 50px; margin: 0 6px 6px; border-radius: 14px; overflow: hidden; text-align: left;
}
.m-row span { position: absolute; left: 56px; top: 17px; width: 52px; font-weight: 600; font-size: 12px; color: var(--tab); text-align: left; line-height: normal; }
.m-row.sel { background: var(--menu-sel); }
.m-row.sel span { color: var(--mint); font-weight: 700; }
div.m-row { cursor: default; }

/* הודעה */
.toast { position: absolute; left: 60px; top: 62px; width: 284px; height: 46px; z-index: 6; opacity: 0; pointer-events: none; transform: translateY(-6px); }
.toast.in { opacity: 1; transform: none; pointer-events: auto; transition: opacity .3s, transform .3s; }
.toast.in.out { opacity: 0; pointer-events: none; transition: opacity 1.4s ease; }
.t-text { position: absolute; top: 13px; font-weight: 700; font-size: 13px; color: var(--ink); line-height: normal; }
.t-text.c { left: 10px; width: 264px; text-align: center; }
.t-text.r { right: 10px; width: 190px; text-align: right; }
.t-cancel { position: absolute; left: 10px; top: 13px; width: 60px; font-weight: 700; font-size: 13px; color: var(--ink); text-align: left; line-height: normal; text-decoration: underline; }

/* הוספת התראה */
.wheel { position: absolute; width: 120px; height: 300px; overflow: hidden; touch-action: none; cursor: ns-resize; }
.wheel.s78 { transform: scale(.78); transform-origin: 0 0; }
.day { position: absolute; width: 40px; height: 58px; }
.day span { position: absolute; left: 0; top: 38px; width: 40px; text-align: center; font-weight: 700; font-size: 13px; color: var(--tab); line-height: normal; }
.day.on span { color: var(--cream); }
.day .on-i, .day.on .off-i { display: none; }
.day.on .on-i { display: block; }
.day img { transition: transform .2s; }
.day:active img { transform: scale(.92); }
.opts { position: absolute; }
.opt-t, .opt-s { position: absolute; right: 18px; width: 280px; text-align: right; color: var(--ink); line-height: normal; }
.opt-t { font-weight: 700; font-size: 15px; }
.opt-s { font-weight: 600; font-size: 11px; opacity: .7; }
.opt-in { height: 14px; padding: 0; }
.opt-in::placeholder { color: var(--ink); opacity: 1; }
.opt-sep { position: absolute; left: 14px; width: 290px; height: 1px; background: var(--ink); opacity: .2; }
.tgl { position: absolute; left: 16px; width: 44px; height: 24px; background: no-repeat center / 44px 24px; }

/* צלצול */
.ring-title { position: absolute; left: 16px; top: 64px; width: 328px; text-align: center; font-weight: 700; font-size: 24px; color: var(--cream); }
.ring-date { position: absolute; left: 16px; top: 98px; width: 328px; text-align: center; font-weight: 600; font-size: 14px; color: var(--tab); }
.ring-clock { position: absolute; --d: 2.6s; --a: -8px; }
.ring-l { position: absolute; top: 672px; width: 150px; text-align: center; font-weight: 700; font-size: 15px; color: var(--cream); }
.screen[data-screen=ring] .hit:active ~ .ring-ctl { transform: scale(.96); }
.ring-ctl { transition: transform .15s; pointer-events: none; }

/* שעון עולמי */
.bg-lines { left: 0; top: 0; pointer-events: none; }
.bigtime { position: absolute; inset: 0; pointer-events: none; }
.world-date { position: absolute; right: 16px; top: 282px; width: 328px; font-weight: 600; font-size: 13px; color: var(--cream); text-align: right; }
.tick-l { position: absolute; left: 172px; width: 20px; font-weight: 600; font-size: 8px; color: var(--tab); line-height: normal; direction: ltr; text-align: left; }
.here-l { position: absolute; right: 205px; top: 475.875px; width: 124px; text-align: right; font-weight: 700; font-size: 12px; color: var(--orange); }
.c-name { position: absolute; right: 213px; width: 116px; text-align: right; font-weight: 700; font-size: 13px; color: var(--cream); }
.c-diff { position: absolute; right: 213px; width: 116px; text-align: right; font-weight: 600; font-size: 10px; color: var(--tab); }
.city .c-time, .city .c-name, .city .c-diff { transition: opacity .3s; }
.city.cand .c-name, .city.cand .c-diff { color: var(--tab); opacity: .6; }
.city.cand .c-time { opacity: .3; }
.city.dim .c-name, .city.dim .c-diff { color: var(--tab); opacity: .15; }
.city.dim .c-time { opacity: .08; }
.city.enter .c-dot { animation: pop .5s cubic-bezier(.3,1.6,.5,1) both; }
.city.enter .c-line, .city.enter .c-line2 { animation: draw .45s .15s ease-out both; }
.city.enter .c-name, .city.enter .c-diff { animation: rise .5s .25s ease-out both; }
.c-line { transform-origin: 0 50%; }
.c-line2 { transform-origin: 100% 50%; }
@keyframes pop { from { transform: scale(0); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.search { position: absolute; width: 318px; height: 44px; display: block; cursor: text; }
.search input { position: absolute; right: 14px; top: 9px; width: 260px; height: 26px; text-align: right; font-weight: 700; font-size: 15px; color: var(--ink); caret-color: var(--ink); }
.search input::placeholder { font-weight: 600; color: var(--ink); opacity: .55; }
.search .mag { position: absolute; left: 12px; top: 8px; width: 24px; font-weight: 700; font-size: 20px; color: var(--ink); line-height: normal; }

/* שעון עצר */
.lap { position: absolute; width: 318px; height: 38px; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.lap.on { opacity: 1; transform: none; }
.lap-n { position: absolute; right: 14px; top: 9px; width: 120px; text-align: right; font-weight: 700; font-size: 14px; color: var(--ink); }
.lap-t { position: absolute; left: 14px; top: 8px; width: 120px; text-align: left; font-weight: 700; font-size: 16px; color: var(--ink); direction: ltr; }

/* טיימר */
.tm-dial { position: absolute; inset: 0; pointer-events: none; }
.tm-hand { will-change: transform; }

/* ── מאי: לבן #F1EEE8, דיו #22201E, אדום וירוק ── */
.phone.may {
  --bg: #f1eee8; --ink: #22201e; --cream: #e3d7bd; --red: #ee4a3b; --green: #0f826b;
  --tab: #8c857a; --mint: #ee4a3b; --orange: #0f826b; --menu: #fbf9f5; --menu-sel: #e3d7bd; --stage: #2b2925;
}
.may .status-time { color: #171717; }
.may .cube img { left: -3.17px; top: 2.55px; }
.may .b-back, .may .b-face, .may .card .back { border-color: var(--ink); }
.may .b3d.ghost .b-label, .may .title, .may .date-line, .may .text-btn, .may .ring-title, .may .ring-l,
.may .world-date, .may .c-name, .may .opt-t { color: var(--ink); }
.may .hint, .may .ring-date, .may .c-diff, .may .tick-l { color: var(--tab); }
.may .here-l { color: var(--red); }
.may .day span { color: var(--tab); }
.may .day.on span { color: var(--ink); }
.may .next-alarm { right: 16px; top: 628px; width: 260px; font-weight: 600; font-size: 12px; color: var(--ink); }
.may .tabs { top: 716px; align-items: flex-start; }
.may .tab { position: relative; padding: 0 0 9px; border: 0; background: none; color: var(--tab); font-weight: 600; }
.may .tab.on { background: none; color: var(--ink); font-weight: 700; }
.may .tab.on::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 28px; height: 5px; transform: translateX(-50%);
  background: var(--red); border: .8px solid var(--ink); box-shadow: -3px 3px 0 var(--green); box-sizing: border-box;
}
.may .menu { border: 1.2px solid var(--ink); box-shadow: -6px 8px 0 var(--green); }
.may .m-row span { color: var(--ink); }
.may .m-row.sel span { color: var(--red); }
.may .city.cand .c-name, .may .city.cand .c-diff, .may .city.dim .c-name, .may .city.dim .c-diff { color: var(--tab); }
.f-n { --d: 2.6s; --a: -6px; }
.f-dial-may { --d: 3.4s; --a: -5px; position: absolute; inset: 0; }
.may-dial { pointer-events: none; }
.tag-layer { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; pointer-events: auto; }
.tag span { position: absolute; left: 6.06px; top: 5px; width: 60px; text-align: center; font-weight: 700; font-size: 12px; color: var(--ink); line-height: normal; }
.tag.next span { left: 7.79px; width: 72px; font-size: 15px; color: #fbf9f5; }
.tag.off span { left: 6px; top: 8px; color: #9a948a; }
.tag-dash { position: absolute; left: 6px; top: 3px; width: 60px; height: 26px; border: 1.2px dashed #9a948a; border-radius: 13px; }
.tag:active { transform: scale(.96); }

/* ── מרץ: אפור #8E8882, גיליון כהה, ורוד, ליים וכתום ── */
.phone.march {
  --bg: #8e8882; --ink: #1e1a1c; --cream: #f7a9bf; --lime: #cdd236; --orange: #ef7b1c; --paper: #f4f2ee;
  --tab: #e9e5e0; --mint: #f7a9bf; --menu: #1e1a1c; --menu-sel: #3a3236;
}
.march .status-time { color: #171717; }
.march .cube img { left: -2.36px; top: 3.57px; }
.march .b-back, .march .b-face { border-color: var(--paper); }
.march .title, .march .text-btn, .march .ring-title, .march .ring-l, .march .world-date, .march .c-name, .march .b3d.ghost .b-label { color: var(--paper); }
.march .ring-date, .march .c-diff, .march .tick-l, .march .hint { color: var(--tab); }
.march .date-line { color: var(--cream); }
.march .here-l { color: var(--orange); }
.march .day span { color: var(--tab); }
.march .day.on span { color: var(--paper); }
.march .tab { padding: 7px 14px; border: 0; border-radius: 999px; color: var(--tab); }
.march .tab.on { background: var(--cream); color: var(--ink); font-weight: 600; }
.march .tabs { top: 724px; }
.march .m-row span { color: var(--tab); }
.march .m-row.sel span { color: var(--cream); }
.march .city.cand .c-name, .march .city.cand .c-diff, .march .city.dim .c-name, .march .city.dim .c-diff { color: var(--tab); }
.dg-slab { position: absolute; left: -8%; width: 116%; height: 4%; background: #ef7b1c; border: 1px solid #f4f2ee; transform: rotate(-12deg); }
.m-sheet { position: absolute; left: 0; width: 360px; background: #1e1a1c; box-shadow: 0 -10px 12px rgba(26,18,20,.45); }
.m-handle { position: absolute; left: 160px; top: 10px; width: 40px; height: 4px; border-radius: 2px; background: #5a4e52; display: block; }
.m-sheet.home { transition: top .45s cubic-bezier(.3,1.1,.4,1), height .45s cubic-bezier(.3,1.1,.4,1); z-index: 3; overflow: hidden; }
.m-sheet.home .m-handle { height: 4px; padding: 0; }
.m-sheet.home .m-handle::before { content: ''; position: absolute; inset: -14px -20px; }
.ms-l { position: absolute; right: 24px; top: 24px; width: 312px; text-align: right; font-weight: 600; font-size: 13px; color: #f7a9bf; }
.ms-t { position: absolute; right: 24px; top: 38px; width: 196px; text-align: right; font-weight: 700; font-size: 46px; color: #f4f2ee; line-height: normal; }
.ms-more { position: absolute; left: 104px; top: 64px; width: 120px; text-align: left; font-weight: 600; font-size: 13px; color: #cdd236; line-height: normal; }
.ms-list { position: absolute; left: 16px; right: 16px; top: 112px; bottom: 70px; overflow-y: auto; opacity: 0; transition: opacity .3s; scrollbar-width: none; }
.ms-row { position: relative; height: 52px; border-top: 1px solid rgba(244,242,238,.12); }
.ms-rt { position: absolute; right: 8px; top: 6px; font-weight: 700; font-size: 24px; color: #f4f2ee; line-height: normal; }
.ms-rd { position: absolute; right: 90px; top: 18px; font-weight: 600; font-size: 12px; color: #e9e5e0; }
.ms-row:not(.on) .ms-rt { opacity: .45; }
.ms-tg { position: absolute; left: 8px; top: 14px; width: 44px; height: 24px; background: no-repeat center / 44px 24px; }
.sheet-open .m-sheet.home { top: 240px !important; height: 540px !important; }
.sheet-open .m-sheet.home .ms-list { opacity: 1; }
.march .tabs { z-index: 4; }
.march .plus { z-index: 4; }
.wl { position: absolute; top: 104px; width: 60px; font-weight: 600; font-size: 12px; color: var(--tab); text-align: right; z-index: 1; }

@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* פתיחה: מסך חלק בצבע העיצוב, אייקון באמצע; לחיצה פותחת את ה-C לשעון */
.intro { position: absolute; inset: 0; z-index: 50; cursor: pointer; transition: background-color .16s ease; }
.in-icon { position: absolute; left: 107px; top: 317px; width: 146px; height: 146px; }
.in-icon svg { width: 100% !important; height: 100% !important; overflow: visible; }
.in-logo { position: absolute; transform-origin: 0 0; }
.in-logo svg { overflow: visible; }
.in-z { position: absolute; inset: 0; transform-origin: 50% 50%; }
.in-z svg { overflow: visible; }
.in-plant { position: absolute; inset: 0; pointer-events: none; }
.in-hole { position: absolute; border-radius: 50%; }
