@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Michroma";
  src: url("../fonts/michroma-latin-ext-400-normal.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}

:root {
  --zift: #0a0a0b;
  --grafit: #1f2022;
  --celik: #8b9096;
  --gumus: #dcdfe3;
  --lamba: #f97316;
  --foot-h: 56px;
  --msg-top: 62vh;
  --msg-x: 50%;
  --msg-w: min(86vw, 520px);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  overflow: hidden;
  color: var(--gumus);
  font-family: "Archivo", system-ui, sans-serif;
  background:
    radial-gradient(62% 54% at 50% 34%, #232426 0%, #131415 48%, var(--zift) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Logodaki mat duvar dokusu */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

#camera, #shake {
  position: fixed;
  inset: 0;
}

#camera { transform-origin: 50% 82%; }

#worldBg, #scene, #worldFx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#worldFx { pointer-events: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.msg {
  position: relative;
  z-index: 2;
  width: var(--msg-w);
  margin: 0 auto;
  padding: 18vh 0 calc(var(--foot-h) + 24px);
  text-align: center;
}

.js .msg {
  position: fixed;
  top: var(--msg-top);
  left: var(--msg-x);
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
}

.msg__logo { display: block; width: min(70vw, 380px); margin: 0 auto 32px; }

.msg__status {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .8);
  font-family: "Michroma", "Archivo", sans-serif;
  font-size: clamp(1.02rem, 1.72vw + .35rem, 1.72rem);
  line-height: 1.32;
  text-wrap: balance;
}

.msg__owner {
  margin: .95em 0 0;
  color: #c3c7cc;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
  font-size: 1rem;
  font-stretch: 112%;
  line-height: 1.4;
}

.msg__phone {
  display: inline-block;
  padding: 8px 6px;
  color: var(--gumus);
  text-shadow: 0 1px 14px rgba(0, 0, 0, .85);
  font-size: clamp(1.25rem, 1vw + 1rem, 1.55rem);
  font-weight: 500;
  font-stretch: 118%;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--celik);
  text-underline-offset: 6px;
  transition: color .2s, text-decoration-color .2s;
}

.msg__phone:hover { color: #fff; text-decoration-color: var(--lamba); }

.foot {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left));
}

.sound,
.credit {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #b8bcc2;
  font: inherit;
  font-size: .875rem;
  text-decoration: none;
  transition: color .2s;
}

.sound {
  gap: 8px;
  padding: 0 8px 0 2px;
  border: 0;
  background: none;
  cursor: pointer;
}

.sound:hover, .credit:hover { color: #fff; }
.sound[hidden] { display: none; }
.sound .sound__on { display: none; }
.sound[aria-pressed="true"] .sound__on { display: inline; }
.sound[aria-pressed="true"] .sound__off { display: none; }

.credit { gap: 9px; }
.credit img { display: block; height: 16px; width: auto; opacity: .86; transition: opacity .2s; }
.credit:hover img { opacity: 1; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lamba);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 420px) {
  .credit img { height: 14px; }
  .credit { font-size: .8125rem; gap: 7px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  :root { --msg-w: 40vw; }
  .msg__owner { margin-top: .6em; font-size: .9375rem; }
}
