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

:root {
  --ink:     #14101c;
  --panel:   #1b1526;
  --cream:   #f5ecdc;
  --amber:   #ffb547;
  --amber2:  #ffcf6b;
  --coral:   #ff6b5b;
  --sky:     #5ec8ff;
  --mint:    #7ee081;
  --muted:   #9b8fb0;
  --pixel:   'Pixelify Sans', monospace;
  --vt:      'VT323', monospace;
  --mono:    'JetBrains Mono', monospace;
  --ease:    cubic-bezier(.77, 0, .175, 1);
  --pop:     cubic-bezier(.34, 1.56, .64, 1);

  --cw: clamp(92px, 11vw, 150px);   /* kartuş genişliği */
}

html, body { height: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--vt);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ================= ODA ================= */
.adv {
  position: fixed;
  inset: 0;
  overflow: hidden;
  user-select: none;
}

.room {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* sadece PC oyunları ve eşyalar tıklanır */
}

/* PC ekranındaki oyunlar */
.room .pc-game {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .2s var(--pop), filter .2s ease;
}
.pc-game .pc-tile { transition: stroke-width .2s ease; }
.pc-game:hover, .pc-game:focus-visible { transform: translateY(-3px) scale(1.06); filter: brightness(1.3); }
.pc-game:hover .pc-tile, .pc-game:focus-visible .pc-tile { stroke-width: 3; }

/* sürüklenebilir eşyalar */
.room .prop { pointer-events: auto; cursor: grab; touch-action: none; transition: filter .2s ease; }
.prop:hover { filter: brightness(1.2) drop-shadow(0 0 6px rgba(255, 207, 107, .45)); }
.prop.is-dragging { filter: brightness(1.15) drop-shadow(0 14px 10px rgba(0, 0, 0, .45)); }
body.is-grabbing, body.is-grabbing * { cursor: grabbing !important; }

.stars circle { animation: twinkle 3s ease-in-out infinite; }
.stars circle:nth-child(2n) { animation-delay: -1.2s; }
.stars circle:nth-child(3n) { animation-delay: -2.1s; animation-duration: 4s; }
@keyframes twinkle { 50% { opacity: .2; } }

.city-lights rect { animation: flicker 6s steps(1) infinite; }
.city-lights rect:nth-child(3n) { animation-delay: -2s; }
.city-lights rect:nth-child(4n) { animation-delay: -4s; }
@keyframes flicker { 0%, 70% { opacity: 1; } 71%, 85% { opacity: .15; } }

.caret { animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.steam { animation: steam 3s ease-in-out infinite; }
@keyframes steam {
  0%   { opacity: 0; transform: translateY(6px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-14px); }
}

.lamp-light { animation: lampHum 5s ease-in-out infinite; }
@keyframes lampHum { 50% { opacity: .82; } }

.dclock text { filter: drop-shadow(0 0 4px rgba(126, 224, 129, .6)); }

/* toz parçacıkları */
.dust { position: absolute; inset: 0; pointer-events: none; }
.dust i {
  position: absolute;
  width: 3px; height: 3px;
  background: #ffe2a8;
  opacity: 0;
  animation: float var(--d, 12s) linear infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes float {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: .55; }
  85%  { opacity: .4; }
  100% { opacity: 0; transform: translate(var(--dx, 30px), -140px); }
}

/* ================= ÜST BUTONLAR ================= */
.adv-top {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: flex;
  gap: 10px;
  z-index: 30;
}

.px-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-family: var(--pixel);
  font-size: 15px;
  text-decoration: none;
  color: var(--amber2);
  background: rgba(27, 21, 38, .85);
  border: 2px solid var(--amber);
  border-radius: 10px;
  box-shadow: 0 4px 0 #7a4f16;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.px-btn:hover  { background: #2a1f3a; }
.px-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #7a4f16; }
.px-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.px-btn--icon { width: 40px; padding: 0; justify-content: center; }

.snd-on  { display: none; }
.sound-on .snd-on  { display: inline; }
.sound-on .snd-off { display: none; }

/* ================= SAHNE ================= */
.stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(64px, 10vh, 120px);
  pointer-events: none;
}

.rack {
  position: relative;
  width: 100%;
  height: calc(var(--cw) * 1.25);
  pointer-events: none;
  z-index: 5;
}

/* ================= KARTUŞ ================= */
.cart {
  --c: #ffb547;
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--cw);
  aspect-ratio: 5 / 5.6;
  margin-left: calc(var(--cw) / -2);
  pointer-events: auto;
  cursor: pointer;
  transition:
    transform .55s var(--pop),
    opacity .4s ease,
    filter .4s ease;
  will-change: transform;
}
.cart__body {
  position: absolute;
  inset: 0;
  background: #3a3542;
  border-radius: 8px 8px 6px 6px;
  clip-path: polygon(0 6%, 6% 0, 94% 0, 100% 6%, 100% 100%, 0 100%);
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.35), inset 0 3px 0 rgba(255,255,255,.08);
}
.cart__ridges {
  position: absolute;
  left: 10%; right: 10%; bottom: 6%;
  height: 10%;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 3px, transparent 3px 8px);
  border-radius: 2px;
}
.cart__label {
  position: absolute;
  left: 9%; right: 9%; top: 8%;
  height: 68%;
  border-radius: 4px;
  background: var(--c);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.18);
}
.cart__art {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(0,0,0,.07) 0 6px, transparent 6px 12px);
  overflow: hidden;
}
.cart__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cart__glyph {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: calc(var(--cw) * .26);
  color: rgba(20, 16, 28, .85);
  text-shadow: 2px 2px 0 rgba(255,255,255,.35);
  line-height: 1;
}
.cart__name {
  padding: 5% 6%;
  background: rgba(20, 16, 28, .88);
  color: var(--c);
  font-family: var(--pixel);
  font-size: calc(var(--cw) * .1);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart.is-active {
  filter: drop-shadow(0 0 18px color-mix(in srgb, var(--c) 70%, transparent)) drop-shadow(0 14px 18px rgba(0,0,0,.5));
}
.cart:not(.is-active) { filter: brightness(.72) drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.cart.is-active::after {
  content: '▼';
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--c);
  animation: bob 1s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 5px); } }
.cart.is-gone { opacity: 0 !important; pointer-events: none; }

/* uçan kartuş (takma animasyonu) */
.cart.is-flying {
  position: fixed;
  margin: 0;
  transform-origin: 0 0;   /* konum hesapları sol üst köşeye göre */
  z-index: 40;
  transition: none;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.5));
}
.cart.is-flying::after { display: none; }

/* ================= BYTE ================= */
.byte-wrap {
  position: relative;
  margin-top: auto;
  margin-bottom: clamp(150px, 21vh, 210px);
  height: clamp(200px, 38vh, 360px);
  aspect-ratio: 240 / 300;
  pointer-events: auto;
  z-index: 4;
}
.byte {
  width: 100%;
  height: 100%;
  overflow: visible;
  cursor: pointer;
  animation: breathe 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
@keyframes breathe { 50% { transform: scaleY(.975) scaleX(1.012); } }

.byte .face { display: none; }
.byte[data-face="idle"]  .f-idle,
.byte[data-face="happy"] .f-happy,
.byte[data-face="wow"]   .f-wow,
.byte[data-face="load"]  .f-load,
.byte[data-face="dead"]  .f-dead { display: inline; }

.byte .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.5s infinite;
}
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }

.byte.talking .mouth {
  transform-box: fill-box;
  transform-origin: center;
  animation: talk .18s ease-in-out infinite alternate;
}
@keyframes talk { to { transform: scaleY(-.6) translateY(2px); } }

.ld { animation: ld 0.9s steps(1) infinite; }
.ld2 { animation-delay: .3s; }
.ld3 { animation-delay: .6s; }
@keyframes ld { 0% { opacity: 1; } 33% { opacity: .2; } }

.arm-r { transform-origin: 196px 168px; transform-box: view-box; }
.byte.waving .arm-r { animation: wave .5s ease-in-out 4 alternate; }
@keyframes wave { from { transform: rotate(0deg); } to { transform: rotate(-150deg); } }

.slot-cart { opacity: 0; fill: var(--slot-c, #3a3542); transition: opacity .2s ease; }
.byte.has-cart .slot-cart { opacity: 1; }

.power-led { animation: led 2s steps(1) infinite; }
@keyframes led { 50% { fill: #7a2a22; } }

.byte.jump    { animation: jump .5s var(--pop); }
.byte.shake   { animation: shake .35s linear; }
.byte.dance   { animation: dance .4s ease-in-out 8 alternate; }
@keyframes jump  { 30% { transform: translateY(-22px) scaleY(1.04); } 60% { transform: translateY(0) scaleY(.92); } }
@keyframes shake { 25% { transform: translateX(-5px) rotate(-2deg); } 75% { transform: translateX(5px) rotate(2deg); } }
@keyframes dance { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-10px); } }

/* kafasına eşya düşünce: sallanıp yere yığılır, ekranı mavi hata verir */
.byte.is-crashed,
.byte.is-rising { transform-origin: 82% 95%; }
.byte.is-crashed { animation: byteFall 1s cubic-bezier(.45, 0, .7, .4) forwards; }
.byte.is-rising  { animation: byteRise .7s var(--pop) forwards; }
.byte.is-crashed #screen { fill: #2846c8; }
.byte.is-crashed .power-led { animation: none; fill: #ff2a2a; }
@keyframes byteFall {
  0%   { transform: rotate(0deg); }
  12%  { transform: translateX(-6px) rotate(-7deg); }
  24%  { transform: translateX(4px) rotate(5deg); }
  78%  { transform: rotate(88deg); }
  88%  { transform: rotate(80deg); }
  100% { transform: rotate(86deg); }
}
@keyframes byteRise {
  0%   { transform: rotate(86deg); }
  70%  { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

/* ================= DİYALOG ================= */
.dialog {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  min-height: 120px;
  padding: 26px 26px 16px;
  background: rgba(27, 21, 38, .94);
  border: 3px solid var(--amber);
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(20,16,28,.9), 0 0 30px rgba(255,181,71,.18), inset 0 0 24px rgba(255,181,71,.06);
  z-index: 20;
}
.dialog__name {
  position: absolute;
  top: -15px;
  left: 18px;
  padding: 2px 12px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 14px;
  border-radius: 6px;
  letter-spacing: .08em;
}
.dialog__restart {
  position: absolute;
  top: -22px;
  right: 18px;
  height: 36px;
  font-size: 14px;
  color: var(--ink);
  background: var(--amber);
  animation: bobY 1s ease-in-out infinite;
}
.dialog__restart:hover { background: var(--amber2); }
.dialog__restart[hidden] { display: none; }
@keyframes bobY { 50% { transform: translateY(-4px); } }
.dialog__text {
  min-height: 2.6em;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.25;
  color: var(--cream);
}
.dialog__text::after {
  content: '▌';
  color: var(--amber);
  animation: caret .8s steps(1) infinite;
  margin-left: 2px;
}
.dialog__hint {
  margin-top: 10px;
  font-size: 17px;
  color: var(--muted);
}

.pad { display: none; gap: 10px; margin-top: 12px; }
.pad__btn {
  flex: 1;
  height: 46px;
  border-radius: 10px;
  font-family: var(--pixel);
  font-size: 18px;
  background: #2a2036;
  border: 2px solid #4a3a5a;
  box-shadow: 0 4px 0 #0e0a14;
  color: var(--cream);
}
.pad__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0e0a14; }
.pad__btn--a { background: var(--coral); border-color: #ff9488; color: #4a1510; }
.pad__btn--b { background: var(--sky);   border-color: #9adcff; color: #10384d; }

@media (hover: none) and (pointer: coarse) {
  .hint-keys { display: none; }
  .pad { display: flex; }
}

/* ================= GEÇİŞLER ================= */
.crt-zoom {
  position: fixed;
  z-index: 45;
  background: #1c1a2e;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.boot span {
  width: 0;
  height: 3px;
  background: #fff;
  box-shadow: 0 0 20px #fff, 0 0 60px var(--amber);
}
.boot.on span { animation: bootLine .7s var(--ease) forwards; }
.boot.on      { animation: bootFade .5s ease .7s forwards; }
@keyframes bootLine {
  0%   { width: 0; height: 3px; }
  60%  { width: 100vw; height: 3px; }
  100% { width: 100vw; height: 100vh; opacity: 0; }
}
@keyframes bootFade { to { opacity: 0; visibility: hidden; } }

/* ================= OYUN EKRANI ================= */
.game {
  position: fixed;
  inset: 0;
  z-index: 50;
  background:
    radial-gradient(ellipse at 50% 30%, #2a2144 0%, #17121f 70%);
  overflow-y: auto;
  overflow-x: hidden;
  animation: crtOn .45s ease-out;
}
@keyframes crtOn {
  0%   { filter: brightness(3) saturate(0); transform: scaleY(.02); }
  50%  { filter: brightness(2); transform: scaleY(1); }
  100% { filter: none; }
}
.game.is-closing { animation: crtOff .4s ease-in forwards; }
@keyframes crtOff {
  0%   { transform: scale(1); }
  60%  { transform: scaleY(.02) scaleX(1); filter: brightness(3); }
  100% { transform: scaleY(.01) scaleX(0); filter: brightness(4); }
}

.game__scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  z-index: 2;
  animation: scanMove 8s linear infinite;
  transition: opacity .3s ease;
}
.game.is-clear .game__scan { opacity: 0; animation: none; }
@keyframes scanMove { to { background-position: 0 100px, 0 0; } }

.game__inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px clamp(16px, 5vw, 56px) 120px;
}

.g-visual { display: grid; place-items: center; }

/* telefon çerçevesi */
.g-phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 10px;
  background: #0d0b12;
  box-shadow: 0 0 0 3px #2c2438, 0 30px 60px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--c) 30%, transparent);
}
.g-slide { width: 100%; height: 100%; }
.g-slide img,
.g-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.g-phone .g-slide { border-radius: 30px; overflow: hidden; }
.g-window__view.g-slide::before { content: none; }   /* renkli efekt görselin üstüne binmesin */
.g-phone--game iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 30px;
  display: block;
  background: #000;
}
.g-note { margin-top: 14px; text-align: center; font-size: 18px; color: var(--muted); }

/* tablet çerçevesi (yatay) */
.g-tablet-wrap { width: 100%; display: grid; justify-items: center; }
.g-tablet {
  position: relative;
  width: min(600px, 100%);
  aspect-ratio: 4 / 3;
  padding: 14px;
  border-radius: 28px;
  background: #0d0b12;
  box-shadow: 0 0 0 3px #2c2438, 0 30px 60px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--c) 30%, transparent);
}
.g-tablet .g-slide { border-radius: 16px; overflow: hidden; }
.g-tablet .g-static { inset: 14px; border-radius: 16px; }

/* yapım aşamasında */
.g-window { position: relative; }
.g-wip {
  position: absolute;
  top: 52px;
  right: 12px;
  z-index: 6;
  padding: 4px 10px;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
  transform: rotate(3deg);
  box-shadow: 3px 3px 0 #0d0b12;
}
.g-cat--wip {
  margin-left: 6px;
  border-color: var(--amber);
  color: var(--amber);
  animation: caret 1.2s steps(1) infinite;
}
.g-offline {
  margin: -6px 0 18px;
  font-size: 20px;
  color: var(--amber2);
}
.cart__wip {
  position: absolute;
  left: -2px; right: -2px;
  top: 38%;
  padding: 2px 0;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--pixel);
  font-size: calc(var(--cw) * .072);
  font-weight: 700;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 2px 0 rgba(0,0,0,.35);
  z-index: 1;
}
.dialog__count {
  position: absolute;
  top: -13px;
  right: 18px;
  padding: 1px 10px;
  background: var(--panel);
  border: 2px solid var(--amber);
  border-radius: 6px;
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--amber2);
  font-variant-numeric: tabular-nums;
}
.g-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.g-dots button {
  width: 10px; height: 10px;
  background: #3a2f4a;
  border-radius: 2px;
}
.g-dots button.on { background: var(--c); }

/* tarayıcı penceresi */
.g-window {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  overflow: hidden;
  background: #0d0b12;
  box-shadow: 0 0 0 3px #2c2438, 0 30px 60px rgba(0,0,0,.5), 0 0 60px color-mix(in srgb, var(--c) 25%, transparent);
}
.g-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #221b2e;
}
.g-window__bar i { width: 10px; height: 10px; border-radius: 50%; background: #4a3a5a; }
.g-window__bar i:nth-child(1) { background: var(--coral); }
.g-window__bar i:nth-child(2) { background: var(--amber); }
.g-window__bar i:nth-child(3) { background: var(--mint); }
.g-window__url {
  flex: 1;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #15111c;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.g-window__view {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.g-window__view::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--c) 55%, transparent), transparent 55%),
    radial-gradient(circle at 80% 80%, color-mix(in srgb, var(--c) 30%, transparent), transparent 50%);
  animation: drift 8s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6%, 4%) scale(1.1); } }
.g-window__view b {
  position: relative;
  font-family: var(--pixel);
  font-size: clamp(42px, 7vw, 84px);
  color: var(--cream);
  text-shadow: 4px 4px 0 rgba(0,0,0,.4);
}
.g-window__view iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1280px;
  height: 800px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: #0d0b12;
  opacity: 0;
  transition: opacity .6s ease .3s;
  z-index: 1;
}
.g-window__view iframe.is-loaded { opacity: 1; }
.g-window__view .g-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.g-window__view:has(.g-poster)::before { content: none; }
.g-window__view:has(.g-poster) small { display: none; }
.g-window__view small {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(245,236,220,.6);
  text-align: left;
}

/* profil fotoğrafı */
.g-photo {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 4 / 5;
  border: 4px solid var(--c);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 8px 8px 0 #0d0b12, 0 0 60px color-mix(in srgb, var(--c) 30%, transparent);
}
.g-photo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: contrast(1.05) saturate(.9); }
.g-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 60%, rgba(20,16,28,.7));
}
.g-photo span {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 1;
  font-family: var(--pixel);
  font-size: 15px;
  color: var(--c);
}

/* iletişim görseli */
.g-mailbox {
  font-family: var(--pixel);
  font-size: clamp(120px, 20vw, 220px);
  line-height: 1;
  color: var(--c);
  text-shadow: 8px 8px 0 #0d0b12, 0 0 60px color-mix(in srgb, var(--c) 40%, transparent);
  animation: bob2 2.4s ease-in-out infinite;
}
@keyframes bob2 { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* parazit (kartuş takılınca ilk 5 saniye) */
.g-static {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: inherit;
  background: #111;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.g-phone .g-static { inset: 10px; border-radius: 30px; }
.g-static canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  opacity: .85;
  animation: staticJitter .12s steps(2) infinite;
}
@keyframes staticJitter {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2px, 1px); }
  100% { transform: translate(1px, -1px); }
}
.g-static i {
  position: absolute;
  left: 0; right: 0;
  height: 18%;
  background: linear-gradient(transparent, rgba(255,255,255,.22), transparent);
  animation: roll 1.6s linear infinite;
}
@keyframes roll { from { top: -20%; } to { top: 110%; } }
.g-static span {
  position: relative;
  z-index: 1;
  padding: 4px 10px;
  background: rgba(10, 8, 14, .85);
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: .1em;
  color: var(--c);
  animation: caret .9s steps(1) infinite;
}
.g-static.is-clearing { animation: staticOut .3s steps(1) forwards; }
@keyframes staticOut {
  0%   { opacity: 1; }
  15%  { opacity: .15; }
  25%  { opacity: .9; }
  40%  { opacity: 0; }
  50%  { opacity: .6; transform: scaleY(.6) skewX(8deg); }
  65%  { opacity: 0; }
  75%  { opacity: .3; transform: none; }
  100% { opacity: 0; }
}

/* metin tarafı */
.g-info { min-width: 0; }
.g-cat {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 10px;
  border: 2px solid var(--c);
  border-radius: 6px;
  color: var(--c);
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.g-title {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(36px, 5.5vw, 68px);
  line-height: 1;
  color: var(--cream);
  text-shadow: 4px 4px 0 #0d0b12;
  margin-bottom: 6px;
}
.g-sub {
  font-size: 24px;
  color: var(--c);
  margin-bottom: 18px;
}
.g-desc {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.3;
  color: #d9cfe6;
  margin-bottom: 20px;
}
.g-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 30px; }
.g-tags li {
  padding: 2px 10px;
  background: #251d31;
  border: 1px solid #3a2f4a;
  border-radius: 6px;
  font-size: 18px;
  color: #c5b9d6;
}

.g-actions {
  position: sticky;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  margin-left: -10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(23, 18, 31, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.g-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 20px 0 8px;
  border-radius: 999px;
  font-family: var(--pixel);
  font-size: 16px;
  text-decoration: none;
  background: #251d31;
  border: 2px solid #3a2f4a;
  box-shadow: 0 4px 0 #0d0b12;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}
.g-btn:hover  { border-color: var(--c); }
.g-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0d0b12; }
.g-btn kbd {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--pixel);
  font-size: 14px;
  font-weight: 700;
}
.g-btn--a kbd { background: var(--coral); color: #4a1510; }
.g-btn--b kbd { background: var(--sky);   color: #10384d; }

/* hakkımda: deneyim */
.g-exp { list-style: none; margin: 4px 0 24px; border-left: 3px dashed #3a2f4a; padding-left: 18px; }
.g-exp li { position: relative; margin-bottom: 16px; }
.g-exp li::before {
  content: '';
  position: absolute;
  left: -26px; top: 6px;
  width: 13px; height: 13px;
  background: var(--c);
  box-shadow: 0 0 0 3px #17121f;
}
.g-exp b { display: block; font-size: 22px; color: var(--cream); font-weight: 400; }
.g-exp span { font-size: 18px; color: var(--muted); }
.g-exp p { font-size: 19px; color: #c5b9d6; line-height: 1.25; margin-top: 4px; }

/* bölüm başlıkları (hakkımda, beceriler) */
.g-h {
  margin: 22px 0 12px;
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--c);
  text-transform: uppercase;
}

/* beceriler: istatistik çubukları */
.g-stats { list-style: none; display: grid; gap: 8px; }
.g-stats li {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 32px;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  color: #d9cfe6;
}
.g-stats i {
  height: 12px;
  background: repeating-linear-gradient(90deg, #2c2438 0 8px, transparent 8px 10px);
  position: relative;
}
.g-stats i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  background: repeating-linear-gradient(90deg, var(--c) 0 8px, transparent 8px 10px);
  animation: statFill 1s steps(12) both;
}
@keyframes statFill { from { width: 0; } }
.g-stats b { font-family: var(--pixel); font-size: 14px; color: var(--c); text-align: right; }

.g-level {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 44px;
  border: 4px solid var(--c);
  border-radius: 16px;
  box-shadow: 8px 8px 0 #0d0b12, 0 0 60px color-mix(in srgb, var(--c) 30%, transparent);
  animation: bob2 2.4s ease-in-out infinite;
}
.g-level span { font-family: var(--pixel); font-size: 16px; letter-spacing: .2em; color: var(--muted); }
.g-level b { font-family: var(--pixel); font-size: clamp(90px, 14vw, 150px); line-height: 1; color: var(--c); text-shadow: 6px 6px 0 #0d0b12; }
.g-level i { font-style: normal; font-size: 20px; color: #c5b9d6; }

/* iletişim */
.g-contact { list-style: none; margin-bottom: 28px; }
.g-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 2px dashed #2c2438;
  font-size: clamp(20px, 2.4vw, 28px);
}
.g-contact li span { width: 90px; flex-shrink: 0; font-size: 17px; color: var(--muted); }
.g-contact a { text-decoration: none; word-break: break-all; }
.g-contact a:hover { color: var(--c); }
.g-copy {
  margin-left: auto;
  padding: 2px 10px;
  border: 2px solid var(--c);
  border-radius: 6px;
  color: var(--c);
  font-family: var(--pixel);
  font-size: 12px;
  flex-shrink: 0;
}

/* ================= MİNİ OYUNLAR (PC) ================= */
.arcade { position: fixed; inset: 0; z-index: 60; }
.arcade[hidden] { display: none; }
.arcade__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 16, .62);
  backdrop-filter: blur(2px);
  animation: fadeIn .35s ease;
}
.arcade.is-closing .arcade__backdrop { animation: fadeOut .34s ease forwards; }
@keyframes fadeIn  { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* kenarlarda %10 boşluk */
.arcade__win {
  position: absolute;
  inset: 10%;
  display: flex;
  flex-direction: column;
  background: #1a1626;
  border: 3px solid var(--amber);
  border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(20, 16, 28, .9), 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 181, 71, .15);
  transform-origin: 0 0;
  overflow: hidden;
  outline: none;
}
.arcade__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #231c33;
  border-bottom: 2px solid #3a2f4d;
}
.arcade__dots { display: flex; gap: 6px; }
.arcade__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); }
.arcade__dots i:nth-child(2) { background: var(--amber); }
.arcade__dots i:nth-child(3) { background: var(--mint); }
.arcade__title { font-family: var(--pixel); font-size: 15px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.arcade__title b { color: var(--amber2); font-weight: 700; }
.arcade__score { margin-left: auto; font-size: 22px; color: var(--mint); white-space: nowrap; }
.arcade__btn {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #2a2036;
  border: 2px solid #4a3a5a;
  font-family: var(--pixel);
}
.arcade__btn:hover { border-color: var(--coral); color: var(--coral); }
.arcade__tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 0; }
.arcade__tabs button {
  padding: 6px 14px;
  font-family: var(--pixel);
  font-size: 14px;
  color: var(--muted);
  background: #2a2036;
  border: 2px solid #4a3a5a;
  border-radius: 8px;
}
.arcade__tabs button:hover { color: var(--cream); }
.arcade__tabs button[aria-pressed="true"] { color: var(--ink); background: var(--amber); border-color: var(--amber2); }
.arcade__tabs .arcade__restart { margin-left: auto; }
.arcade__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 12px; }
#arcadeCanvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 0 2px #2b3352, 0 0 30px rgba(94, 200, 255, .12);
  touch-action: none;
}
.arcade__hint { padding: 0 14px 12px; text-align: center; font-size: 18px; line-height: 1.2; color: var(--muted); }

/* küçük ekranlar için sol üst: saat + oyunlar */
.adv-left {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 8px;
}
.adv-clock {
  padding: 4px 10px;
  font-size: 18px;
  color: var(--mint);
  background: rgba(11, 26, 18, .85);
  border: 2px solid #2a2036;
  border-radius: 8px;
  text-shadow: 0 0 6px rgba(126, 224, 129, .6);
  white-space: nowrap;
}

/* ================= MOBİL ================= */
@media (max-width: 760px) {
  .adv-left { display: flex; left: 12px; }
  .dclock { display: none; }
  .arcade__title { display: none; }
  .arcade__tabs button { padding: 5px 10px; font-size: 13px; }
  .arcade__hint { font-size: 15px; }
  :root { --cw: clamp(84px, 25vw, 112px); }
  .stage { padding-top: 76px; }
  .byte-wrap { margin-bottom: clamp(190px, 27vh, 230px); height: clamp(170px, 30vh, 250px); }
  .dialog { padding: 22px 16px 14px; min-height: 0; }
  .px-btn { height: 36px; font-size: 13px; padding: 0 12px; }
  .px-btn--icon { width: 36px; padding: 0; }
  .adv-top { right: 12px; }

  .game__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 76px 16px 60px;
    align-items: start;
  }
  .g-phone { width: min(200px, 52vw); }
  .g-actions { border-radius: 18px; }
  .g-contact li { flex-wrap: wrap; gap: 6px 14px; }
  .g-contact li span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
