@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-ukraine-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-ukraine-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Impact UM"; src: url("../fonts/impact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Watch configurator page (/3d/). Brand fonts come from the Framer assets. */

:root {
  --lime: rgb(210, 244, 140);
  --grey: rgb(156, 156, 156);
  --line: rgba(255, 255, 255, .1);
  --panel: #121310;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
.cfg-body {
  background: #0d0e0c;
  color: #fff;
  font-family: "e-Ukraine", system-ui, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.cfg-noscript { padding: 40px; }
.cfg-noscript a, .cfg a { color: var(--lime); }

.cfg { position: fixed; inset: 0; display: grid; grid-template-columns: 1fr 400px; grid-template-rows: 72px 1fr; }

/* header */
.cfg__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: #000;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}
.cfg__logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.cfg__logo img { height: 36px; width: auto; }
.cfg__logo span { font-family: "e-Ukraine", sans-serif; font-weight: 700; font-size: 12px; line-height: 1.1; letter-spacing: .02em; color: var(--lime); }
.cfg__title { font-family: "Impact UM", Impact, sans-serif; font-size: 24px; color: #fff; margin: 0; font-weight: 400; }
.cfg__bar-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.cfg__lang { display: flex; gap: 10px; font-family: "Impact UM", Impact, sans-serif; font-size: 18px; }
.cfg__lang a { color: var(--grey); text-decoration: none; }
.cfg__lang a[aria-current="true"] { color: var(--lime); text-decoration: underline; text-underline-offset: 4px; }
.cfg__back { color: var(--grey) !important; text-decoration: none; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.cfg__back:hover { color: #fff !important; }

/* stage */
.cfg__stage { position: relative; overflow: hidden; min-height: 0; }
.cfg__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; outline: none; }
.cfg__stage canvas:active { cursor: grabbing; }
.cfg__loader { position: absolute; left: 50%; top: 50%; width: 160px; height: 2px; margin-left: -80px; background: rgba(255,255,255,.1); overflow: hidden; transition: opacity .6s; }
.cfg__loader i { display: block; height: 100%; width: 0; background: var(--lime); transition: width .3s; }
.cfg.is-loaded .cfg__loader { opacity: 0; }
.cfg__views {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cfg__view { all: unset; cursor: pointer; padding: 10px 18px; border-radius: 999px; font-size: 13px; color: rgba(255,255,255,.75); white-space: nowrap; transition: background-color .3s, color .3s; }
.cfg__view:hover { color: #fff; }
.cfg__view[aria-pressed="true"] { background: var(--lime); color: #000; }
.cfg__view:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.cfg__hint { position: absolute; left: 24px; top: 20px; font-size: 12px; color: rgba(255,255,255,.4); pointer-events: none; }

/* panel */
.cfg__panel {
  background: var(--panel);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cfg__tabs { display: flex; border-bottom: 1px solid var(--line); }
.cfg__tab {
  all: unset;
  flex: 1;
  cursor: pointer;
  padding: 16px 6px 14px;
  text-align: center;
  font-family: "Impact UM", Impact, sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,.55);
  border-bottom: 2px solid transparent;
  transition: color .3s, border-color .3s;
}
.cfg__tab small { display: block; font: 11px "e-Ukraine", sans-serif; color: rgba(255,255,255,.35); margin-bottom: 2px; }
.cfg__tab[aria-selected="true"] { color: var(--lime); border-color: var(--lime); }
.cfg__tab:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.cfg__body { flex: 1; overflow-y: auto; padding: 22px 24px 8px; }
.cfg__section[hidden] { display: none; }
.cfg__h { font-family: "Impact UM", Impact, sans-serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; color: #fff; }
.cfg__p { margin: 0 0 18px; font-size: 13px; line-height: 1.5; color: var(--grey); }
.cfg__label { display: block; margin: 20px 0 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }

.cfg__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cfg__grid--4 { grid-template-columns: repeat(4, 1fr); }
.cfg__opt {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 6px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,.8);
  transition: border-color .3s, background-color .3s;
}
.cfg__opt:hover { border-color: rgba(255,255,255,.3); }
.cfg__opt[aria-pressed="true"] { border-color: var(--lime); background: rgba(210,244,140,.07); color: #fff; }
.cfg__opt:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.cfg__swatch { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background-size: cover; background-position: center; }
.cfg__swatch--bl { background: radial-gradient(circle at 35% 30%, #4a4a4a, #050505 70%); }
.cfg__swatch--st { background: radial-gradient(circle at 35% 30%, #fff, #8d9196 55%, #3c3f42); }
.cfg__swatch--ti { background: radial-gradient(circle at 35% 30%, #c9c9c4, #6f716d 55%, #2f302e); }
.cfg__swatch--upload { display: grid; place-items: center; background: rgba(255,255,255,.06); font-size: 22px; color: var(--lime); }

.cfg__colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg__color { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); transition: border-color .3s, transform .3s var(--ease); }
.cfg__color:hover { transform: scale(1.08); }
.cfg__color[aria-pressed="true"] { border-color: var(--lime); }
.cfg__color:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cfg__colors[aria-disabled="true"] { opacity: .35; pointer-events: none; }

.cfg__input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.cfg__input:focus { border-color: var(--lime); }
.cfg__fonts { display: flex; gap: 6px; margin-top: 10px; }
.cfg__fonts .um3d__font { font-size: 19px; }

.cfg__file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.25);
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  transition: border-color .3s, background-color .3s;
}
.cfg__file:hover, .cfg__file.is-drag { border-color: var(--lime); background: rgba(210,244,140,.05); }
.cfg__file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cfg__file:focus-within { outline: 2px solid var(--lime); outline-offset: 2px; }
.cfg__file b { color: var(--lime); font-weight: 400; }
.cfg__thumb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 8px; background: #fff center / contain no-repeat; display: none; }
.cfg__file.has-file .cfg__thumb { display: block; }
.cfg__note { margin: 8px 0 0; font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.4); }
.cfg__row { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--grey); }
.cfg__row input[type="range"] { flex: 1; accent-color: var(--lime); }
.cfg__link { all: unset; cursor: pointer; font-size: 12px; color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.cfg__link:hover { color: #fff; }
.cfg__link:focus-visible { outline: 2px solid var(--lime); }

/* summary + actions */
.cfg__foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: #0f100d; }
.cfg__summary { margin: 0 0 12px; font-size: 12px; line-height: 1.5; color: var(--grey); }
.cfg__summary b { color: #fff; font-weight: 400; }
.cfg__actions { display: flex; gap: 8px; }
.cfg__btn {
  all: unset;
  cursor: pointer;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 999px;
  font-family: "Impact UM", Impact, sans-serif;
  font-size: 18px;
  text-align: center;
  transition: transform .3s var(--ease), background-color .3s, border-color .3s;
}
.cfg__btn--primary { background: var(--lime); color: #000; }
.cfg__btn--primary:hover { background: #e2ffa6; }
.cfg__btn--ghost { border: 1px solid rgba(255,255,255,.22); color: #fff; }
.cfg__btn--ghost:hover { border-color: var(--lime); }
.cfg__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cfg__toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  max-width: min(92vw, 460px);
  padding: 14px 18px;
  border-radius: 14px;
  background: #1c1e18;
  border: 1px solid rgba(210,244,140,.3);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s, transform .5s var(--ease);
  z-index: 10;
}
.cfg__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* phones: stage on top, panel as a bottom sheet */
@media (max-width: 900px) {
  /* svh: the visible height on phones (100vh is taller than the screen in mobile browsers) */
  .cfg { grid-template-columns: 1fr; grid-template-rows: 52px minmax(200px, 36vh) minmax(0, 1fr); }
  @supports (height: 1svh) { .cfg { grid-template-rows: 52px minmax(200px, 36svh) minmax(0, 1fr); } }
  .cfg__bar { padding: 0 16px; gap: 12px; }
  .cfg__logo img { height: 30px; }
  .cfg__logo span, .cfg__back span { display: none; }
  .cfg__title { font-size: 19px; }
  .cfg__panel { border-left: 0; border-top: 1px solid var(--line); overflow: hidden; }
  /* steps: compact, one line */
  .cfg__tab { padding: 10px 4px 9px; font-size: 16px; }
  .cfg__tab small { display: inline; margin: 0 4px 0 0; font-size: 10px; }
  /* options get the free space and scroll */
  .cfg__body { padding: 14px 16px 12px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .cfg__h { font-size: 20px; margin-bottom: 4px; }
  .cfg__p { font-size: 12px; margin-bottom: 10px; }
  .cfg__label { margin: 14px 0 8px; }
  .cfg__grid--4 { grid-template-columns: repeat(3, 1fr); }
  .cfg__opt { padding: 10px 4px 8px; font-size: 11.5px; }
  .cfg__opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--lime); }
  .cfg__swatch { width: 38px; height: 38px; }
  .cfg__colors { gap: 12px; }
  .cfg__color { width: 38px; height: 38px; }
  /* summary + buttons: slimmer bar */
  .cfg__foot { padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
  .cfg__summary { margin: 0 0 8px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cfg__btn { font-size: 15px; padding: 11px 8px; }
  .cfg__views { bottom: 10px; }
  .cfg__view { padding: 7px 11px; font-size: 12px; }
  .cfg__hint { display: none; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .cfg { grid-template-rows: 48px minmax(160px, 30vh) minmax(0, 1fr); }
  .cfg__p { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cfg *, .cfg__toast { transition-duration: .01s !important; }
}

/* own-dial editor */
.cfg__editor { margin-top: 14px; }
.cfg__editor-canvas {
  display: block;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #000;
  cursor: grab;
  touch-action: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15), 0 10px 30px rgba(0,0,0,.5);
}
.cfg__editor-canvas:active { cursor: grabbing; }

/* order dialog */
.cfg__dialog {
  width: min(92vw, 480px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(210,244,140,.25);
  border-radius: 20px;
  background: #141511;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.cfg__dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
.cfg__form { padding: 26px 26px 22px; overflow-y: auto; }
.cfg__form .cfg__label { margin-top: 14px; }
.cfg__form .cfg__summary { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); }
.cfg__form .cfg__actions { margin-top: 16px; }
.cfg__form [data-form-tg] { margin-top: 12px; display: flex; text-decoration: none; }
.cfg__form [data-form-tg][hidden] { display: none; }
.cfg__textarea { resize: vertical; min-height: 76px; font-size: 14px; }
.cfg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cfg__form-msg { margin: 12px 0 0; min-height: 1em; font-size: 13px; line-height: 1.45; color: #ffb4a8; }
.cfg__form-msg:empty { display: none; }
.cfg__form-msg.is-ok { color: var(--lime); font-size: 15px; }
.cfg__btn:disabled { opacity: .6; cursor: progress; }
.cfg__note a { color: var(--grey); }
.cfg__order-note { margin: -4px 0 12px; color: #e9c46a; }
.cfg__btn--primary:disabled { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); cursor: not-allowed; opacity: 1; }
.cfg__opt:disabled { opacity: .35; cursor: not-allowed; }
.cfg__opt:disabled:hover { border-color: var(--line); }
.cfg__cartbox { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cfg__cartbox .cfg__btn { width: 100%; box-sizing: border-box; font-size: 17px; }
