
/* ========================================
   KANDOO — 01. THEME SETTINGS
======================================== */

:root {
  --color-background: #17251F;
  --color-text: #F5EBD4;
  --color-symbol: #FFB81C;
  --color-accent: #4D8177;
  --color-light: #FFF2B0;

  --symbol-width: 280px;
  --symbol-rotation: 6deg;

  --font-main: "Liana Soft", Arial, sans-serif;
  --font-weight-progress: 800;

  --brand-width: 200px;
  --brand-top: 18px;
  --brand-right: 18px;

  --toast-background: #202F28;
  --toast-border: rgba(245, 235, 212, 0.18);
  --toast-duration: 250ms;
}


/* ========================================
   KANDOO — 02. FONT
======================================== */

/*! "Liana Soft" is deemed proprietary by Fontiran. For details on the legalities about the usage of these fonts, refer to www.fontiran.com. The license code '3T6HAN5G' permits the utilization of this font set in the current project. */

@font-face {
  font-family: "Liana Soft";
  src: url("fonts/Liana-soft-VF.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 1000;
  font-display: swap;
}

.font-badge {
  position: fixed;
  right: 6px;
  bottom: 6px;
  z-index: 900;

  width: 150px;
  transform: scale(0.2);
  transform-origin: right bottom;

  color: rgba(245, 235, 212, 0.55);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;

  opacity: 0.8;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.font-badge img {
  display: block;
  width: 100%;
  height: auto;
}

.font-badge span {
  display: block;
  max-width: 100%;
  overflow: hidden;
}

/* ========================================
   KANDOO — 03. RESET & PAGE
======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-main);
}

img,
svg {
  -webkit-user-select: none;
  user-select: none;
}

/* ========================================
   KANDOO — 04. MAIN LAYOUT
======================================== */

.coming-soon {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(12px, 3dvh, 24px);

  padding: 24px;
}


/* ========================================
   KANDOO — 05. MAIN SYMBOL
======================================== */

.symbol-stage {
  position: relative;

  width: min(var(--symbol-width), 70vw, 45vh);
  width: min(var(--symbol-width), 70vw, 45dvh);

  aspect-ratio: 1944 / 2160;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

#symbol-container {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
}

#symbol-container svg {
  display: block;

  width: 100%;
  height: 100%;

  overflow: visible;

  transform: rotate(var(--symbol-rotation));
  transform-origin: center center;

  touch-action: none;
}

#symbol-container .fil0 {
  color: var(--color-symbol);
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;

  transition:
    color var(--light-fade, 350ms) ease-out,
    opacity 180ms ease-out;
}

#symbol-container.is-lit .fil0 {
  transition: none;
}


/* ========================================
   KANDOO — 06. BUILD PROGRESS
======================================== */

.progress-hover-area {
  position: absolute;

  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: 120px;
  height: 80px;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;

  cursor: default;
  -webkit-tap-highlight-color: transparent;
}

@media (hover: none) {
  .progress-hover-area {
    width: 76px;
    height: 44px;
  }
}

.progress-hover-area.is-ready {
  cursor: pointer;
}

.progress-label {
  min-width: 5ch;

  text-align: center;
  white-space: nowrap;

  color: var(--color-text);
  font-family: var(--font-main);
  font-size: clamp(24px, 5vw, 34px);
  font-weight: var(--font-weight-progress);
  font-variant-numeric: tabular-nums;

  pointer-events: none;
}


/* ========================================
   KANDOO — 07. FUTURE PIXELS
======================================== */

.future-pixel {
  animation:
    pixel-appear 400ms linear both,
    pixel-building 1s 400ms ease-in-out infinite alternate;
}

@keyframes pixel-appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.15;
  }
}

@keyframes pixel-building {
  from {
    opacity: 0.15;
  }

  to {
    opacity: 0.85;
  }
}

.pixel-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pixel-wiggle 4s ease-in-out infinite;
}

@keyframes pixel-wiggle {
  0%, 82%, 100% { transform: rotate(0deg) scale(1); }
  86%           { transform: rotate(-20deg) scale(0.9); }
  90%           { transform: rotate(12deg) scale(0.92); }
  94%           { transform: rotate(-6deg) scale(0.95); }
  97%           { transform: rotate(3deg) scale(0.98); }
}

/* ========================================
   KANDOO — 08. HEADER & BRAND
======================================== */

.site-header {
  position: fixed;

  top: var(--brand-top);
  right: var(--brand-right);

  z-index: 1000;
}

.brand {
  position: relative;

  display: block;

  width: var(--brand-width);
  aspect-ratio: 2 / 1;

  animation: brand-float 5s ease-in-out infinite;

  transition: filter 350ms ease;

  -webkit-tap-highlight-color: transparent;
}

.brand img {
  position: absolute;
  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition:
    filter 350ms ease,
    opacity 350ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover {
    filter: brightness(1.12);
  }

  .brand:hover img {
    filter: saturate(1.12);
  }
}

.brand:active {
  filter: brightness(1.2);
}

@keyframes brand-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}


/* ========================================
   KANDOO — 09. PROGRESS TOAST
======================================== */

.progress-toast {
  position: fixed;

  left: 50%;
  bottom: 28px;

  z-index: 2000;

  display: flex;
  align-items: center;
  gap: 13px;

  width: max-content;
  max-width: calc(100vw - 32px);

  padding: 14px 18px;

  direction: rtl;
  text-align: right;

  color: var(--color-text);
  background: var(--toast-background);

  border: 1px solid var(--toast-border);
  border-radius: 14px;

  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translate(-50%, 12px);

  transition:
    opacity var(--toast-duration) ease,
    transform var(--toast-duration) ease,
    visibility var(--toast-duration) ease;
}

.progress-toast.is-visible {
  opacity: 1;
  visibility: visible;

  transform: translate(-50%, 0);
}

.toast-icon {
  width: 46px;
  height: 46px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-symbol);
  background: rgba(255, 184, 28, 0.10);

  border-radius: 10px;
}

.toast-icon svg {
  display: block;

  width: 23px;
  height: 23px;
}

.toast-icon .toast-hourglass {
  width: auto;
  height: 32px;
  aspect-ratio: 1824.74 / 2893.3;
  overflow: visible;
}

.toast-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-title {
  color: var(--color-text);

  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.toast-message {
  color: rgba(245, 235, 212, 0.76);

  font-size: 12px;
  line-height: 1.8;

  overflow-wrap: anywhere;
}


/* ========================================
   KANDOO — 10. SMALL SCREENS
======================================== */

@media (max-width: 600px) {
  :root {
    --symbol-width: 260px;

    --brand-width: 136px;
    --brand-top: 18px;
    --brand-right: 18px;
  }

  .progress-toast {
    bottom: 20px;

    gap: 10px;
    padding: 12px 14px;
  }

  .toast-icon {
    width: 40px;
    height: 40px;
  }

  .toast-title {
    font-size: 14px;
  }

  .toast-message {
    font-size: 11px;
  }

  .toast-icon .toast-hourglass {
    height: 27px;
  }
}


/* ========================================
   KANDOO — 11. REDUCED MOTION
======================================== */

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

  .brand img {
    transition: none;
  }

  .future-pixel {
    animation: none;
    opacity: 0.55;
  }

  #symbol-container .fil0 {
    transition: none;
  }

  .progress-toast {
    transition: none;
  }

  .pixel-pulse {
    animation: none;
  }

  .hex,
  .hex-icon,
  .hex-frame,
  .hex-glass::before,
  .hex-glass::after {
    transition: none;
  }
}

@media (max-width: 600px) {
  .progress-toast {
    top: 96px;
    bottom: auto;
    transform: translate(-50%, -12px);
  }

  .progress-toast.is-visible {
    transform: translate(-50%, 0);
  }
}

/* ========================================
   KANDOO — 12. HEX LINKS
======================================== */

:root {
  --hex-w: 95px;
  --hex-gap: 8px;
  --hex-rgb: 255, 184, 28;
}

.hex-nav {
  --hex-h: calc(var(--hex-w) * 1.1098);
  --hex-row: calc(var(--hex-h) * 0.75 + var(--hex-gap));

  position: fixed;
  left: 30px;
  bottom: 20px;
  z-index: 1100;

  width: calc(var(--hex-w) * 1.5 + var(--hex-gap) / 2);
  height: calc(var(--hex-h) + var(--hex-row) * 2);
}

.hex {
  position: absolute;
  top: calc(var(--i) * var(--hex-row));
  left: calc(var(--odd) * (var(--hex-w) / 2 + var(--hex-gap) / 2));

  width: var(--hex-w);
  aspect-ratio: 1844.74 / 2047.28;

  display: grid;
  place-items: center;

  color: var(--color-text);
  -webkit-tap-highlight-color: transparent;

  transition: transform 250ms ease;
}

.hex:nth-child(1) { --i: 0; --odd: 0; }
.hex:nth-child(2) { --i: 1; --odd: 1; }
.hex:nth-child(3) { --i: 2; --odd: 0; }

.hex-glass {
  position: absolute;
  inset: 0;

  -webkit-mask: url("images/H-band.svg") center / 100% 100% no-repeat;
          mask: url("images/H-band.svg") center / 100% 100% no-repeat;

  background:
    radial-gradient(120% 90% at 22% 12%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 45%),
    linear-gradient(145deg,
      rgba(var(--hex-rgb), 0.55),
      rgba(var(--hex-rgb), 0.14) 52%,
      rgba(var(--hex-rgb), 0.36));

  -webkit-backdrop-filter: blur(8px) saturate(1.5);
          backdrop-filter: blur(8px) saturate(1.5);
}

.hex-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--hex-rgb), 0.28);
  opacity: 0;
  transition: opacity 250ms ease;
}

.hex-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 22%, rgba(255, 255, 255, 0.55) 34%, transparent 46%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
}

.hex-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

  pointer-events: none;
  user-select: none;

  filter: drop-shadow(0 0 0.6px #FFB81C) drop-shadow(0 0 0.6px #FFB81C);
  transition: filter 250ms ease;
}

.hex-icon {
  position: relative;
  width: 40%;
  height: auto;
  display: block;

  transition: transform 250ms ease, color 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .hex:hover {
    transform: translateY(-4px);
  }

  .hex:hover .hex-glass::after {
    opacity: 1;
  }

  .hex:hover .hex-glass::before {
    transform: translateX(130%);
  }

  .hex:hover .hex-frame {
    filter:
      drop-shadow(0 0 0.6px #FFB81C)
      drop-shadow(0 0 0.6px #FFB81C)
      drop-shadow(0 0 8px rgba(var(--hex-rgb), 0.55));
  }

  .hex:hover .hex-icon {
    transform: scale(1.12);
    color: var(--color-light);
  }
}

.hex:active {
  transform: scale(0.95);
}

.hex:focus-visible {
  outline: none;
}

.hex:focus-visible .hex-frame {
  filter:
    drop-shadow(0 0 0.6px #FFB81C)
    drop-shadow(0 0 10px rgba(var(--hex-rgb), 0.9));
}

@media (max-width: 600px) {
  :root {
    --hex-w: 70px;
  }

  .hex-nav {
    left: 10px;
    bottom: 10px;
  }
}

@media (hover: none) {
  .hex.is-hint {
    transform: translateY(-4px);
  }

  .hex.is-hint .hex-glass::after {
    opacity: 1;
  }

  .hex.is-hint .hex-glass::before {
    transform: translateX(130%);
  }

  .hex.is-hint .hex-frame {
    filter:
      drop-shadow(0 0 0.6px #FFB81C)
      drop-shadow(0 0 0.6px #FFB81C)
      drop-shadow(0 0 8px rgba(var(--hex-rgb), 0.55));
  }

  .hex.is-hint .hex-icon {
    transform: scale(1.12);
    color: var(--color-light);
  }
}

/* ========================================
   KANDOO — 13. TAGLINE
======================================== */

.tagline .tw {
  display: inline-block;
}

.tagline {
  margin: 0;

  color: var(--color-text);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 700;
  line-height: 1.8;
  text-align: center;

  opacity: 0.85;
}

.tagline {
  min-height: 1.8em;
}

.tagline.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 3px;
  vertical-align: -0.15em;
  background: var(--color-symbol);
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

/* ========================================
   KANDOO — 14. CREDIT
======================================== */

.credit {
  position: fixed;

  left: 0;
  right: 0;
  bottom: 10px;

  z-index: 900;

  text-align: center;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(245, 235, 212, 0.45);

  pointer-events: none;
}

.credit a {
  pointer-events: auto;

  color: inherit;
  text-decoration: none;

  transition: color 200ms ease;
}

.credit a:hover,
.credit a:focus-visible {
  color: var(--color-symbol);
}

/* ========================================
   KANDOO — 15. BACKGROUND
======================================== */

body::before {
  content: "";

  position: fixed;
  inset: 0;
  z-index: -1;

  pointer-events: none;

  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"),
    radial-gradient(260px 220px at 16% 74%, rgba(255, 184, 28, 0.15), transparent 70%),
    radial-gradient(420px 360px at 6% 94%, rgba(77, 129, 119, 0.25), transparent 70%),
    radial-gradient(ellipse 62% 52% at 50% 46%, #214238 0%, rgba(33, 66, 56, 0) 72%);

  background-size: 160px 160px, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
}