@font-face { font-family: "Titan One"; src: url(fonts/titan-ext.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: "Titan One"; src: url(fonts/titan.woff2) format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Nunito; src: url(fonts/nunito-ext.woff2) format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }
@font-face { font-family: Nunito; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 500 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122; }

/* Sayfa oyunun içi gibi: oyunun lacivert sahnesi, blok renkleri ve altın başlık. Temalar yalnızca bu değişkenleri değiştirir. */
:root {
  color-scheme: dark;
  --night: #131a5c;
  --deep: #0c1140;
  --sky: #3b56d6;
  --gold: #ffd23f;
  --gold-edge: #b8860b;
  --ink: #f2f4ff;
  --soft: #c0c8f2;
  --line: #2d3a96;
  --tile: #1b2a6b;
  --tile-edge: #101a4c;
  --glow: #7fb2ff;
  --red: #ff5a6e;
  --cyan: #36c0ff;
  --mint: #34e0a1;
  --display: "Titan One", "Arial Rounded MT Bold", system-ui, sans-serif;
}
[data-cube="neon"] { --night: #06201f; --deep: #03100f; --sky: #0e8a86; --line: #125a57; --tile: #0d3a3a; --tile-edge: #062424; --glow: #45f0e4; }
[data-cube="galaxy"] { --night: #1d0f52; --deep: #0e0731; --sky: #6a35d8; --line: #40269a; --tile: #2a1a70; --tile-edge: #160c44; --glow: #c58bff; }
[data-cube="flame"] { --night: #3a1208; --deep: #1f0803; --sky: #d9531e; --line: #7a2c12; --tile: #2e1a12; --tile-edge: #190c07; --glow: #ffb03d; }
[data-cube="nature"] { --night: #0f3320; --deep: #071c11; --sky: #2b9a5a; --line: #1c5f3a; --tile: #123f28; --tile-edge: #0a2616; --glow: #8cf0a4; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font: 500 18px/1.6 Nunito, system-ui, sans-serif;
  transition: background-color .5s;
}
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; margin: 0; }
/* Oyunun katmanlı başlığı (LayeredTitle): alttan kayan koyu katmanlar kabartma verir. */
h1, .h2 {
  text-shadow: 0 .035em 0 var(--tile-edge), 0 .07em 0 var(--tile-edge), 0 .105em 0 #070b2b;
  letter-spacing: .005em;
}
h2 { font-size: clamp(34px, 5.4vw, 60px); margin-bottom: 28px; max-width: 18ch; }
h3 { font-size: 24px; }
p { max-width: 62ch; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 9; background: var(--gold); color: #1a1a2e; padding: 8px 12px; border-radius: 8px; }

.top { position: relative; z-index: 3; }
.bar { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; }
@media (max-width: 460px) { .top nav { gap: 2px 13px; } .top a:not(.brand) { font-size: 15px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font: 400 24px var(--display); text-decoration: none; margin-right: auto; }
.brand img { border-radius: 8px; }
.brand span { color: var(--gold); margin-left: -10px; }
.top nav { display: flex; gap: 2px 16px; flex-wrap: wrap; }
.top a:not(.brand) { color: var(--soft); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 0; }
.top a:not(.brand):hover { color: #fff; }
.top a[aria-current="page"] { color: var(--gold); }

/* Düğme: oyundaki GameButton gibi basılınca alt kenarına oturur. */
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 0; }
.btn {
  display: inline-block; background: var(--gold); color: #2b2100; font: 400 20px var(--display);
  text-decoration: none; padding: 13px 26px; border-radius: 16px; border: 0; cursor: pointer;
  box-shadow: 0 6px 0 var(--gold-edge); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--gold-edge); }
.btn-off { background: none; color: var(--soft); box-shadow: inset 0 0 0 2px var(--line); font: 700 17px Nunito, sans-serif; padding: 15px 20px; }
.btn-ghost { background: var(--sky); color: #fff; box-shadow: 0 6px 0 var(--tile-edge); }

/* Açılış: başlık solda, oynanabilir küp sağda. Sayfanın tek gösterişli öğesi bu. */
.hero { background: radial-gradient(90% 80% at 72% 42%, var(--sky) 0%, var(--night) 46%, var(--deep) 100%); margin-top: -66px; padding-top: 66px; overflow: hidden; transition: background .5s; }
.hero-in { max-width: 1180px; margin: 0 auto; padding: 26px 20px 56px; display: grid; gap: 18px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); max-width: 12ch; }
.lead { font-size: 21px; margin: 18px 0 0; color: #e1e6ff; }
/* Dar ekranda küp başlığın hemen altına gelir: ziyaretçi kaydırmadan oynayabilsin. */
@media (max-width: 919px) {
  .hero-text { display: contents; }
  .hero h1 { order: 1; font-size: clamp(34px, 10vw, 54px); max-width: none; }
  .stage { order: 2; --s: clamp(170px, 46vw, 290px); }
  .hero .lead { order: 3; }
  .hero .cta { order: 4; margin-top: 4px; }
  .scene { height: calc(var(--s) * 1.5); }
  .hud { min-height: 44px; }
  .slot { height: 82px; }
  .hint-text { font-size: 15px; }
}
@media (min-width: 920px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 560px; min-height: min(760px, 92vh); }
}

.stage { position: relative; user-select: none; -webkit-user-select: none; display: grid; justify-items: center; --s: clamp(190px, 44vw, 290px); }
.stage noscript img { border-radius: 24px; width: 260px; }
.stage canvas { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); pointer-events: none; z-index: 4; }
.hud { display: flex; align-items: baseline; gap: 12px; min-height: 52px; }
.score { font: 400 44px/1 var(--display); text-shadow: 0 3px 0 var(--tile-edge); }
.combo { font: 400 24px var(--display); color: var(--gold); opacity: 0; }
.combo.pop { animation: pop 1.1s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 18% { opacity: 1; transform: scale(1.2); } 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.scene { width: 100%; height: calc(var(--s) * 1.72); display: grid; place-items: center; perspective: calc(var(--s) * 4.4); touch-action: pan-y; cursor: grab; }
.scene:active { cursor: grabbing; }
.float { transform-style: preserve-3d; }
.stage:not(.touched) .float { animation: rock 7s ease-in-out infinite; }
@keyframes rock { 50% { transform: rotateY(14deg); } }
.cube { --yaw: -45deg; position: relative; width: var(--s); height: var(--s); transform-style: preserve-3d; transform: rotateX(-24deg) rotateY(var(--yaw)); transition: transform .32s cubic-bezier(.2, 1.3, .4, 1); }
.cube.held { transition: none; }
.face {
  position: absolute; inset: 0; display: grid; grid-template: repeat(5, 1fr) / repeat(5, 1fr); gap: 3%;
  padding: 3%; background: var(--tile-edge); border-radius: 6%;
  box-shadow: 0 0 calc(var(--s) * .16) color-mix(in srgb, var(--glow) 55%, transparent);
  transform: rotateY(calc(var(--f) * 90deg)) translateZ(calc(var(--s) / 2));
  backface-visibility: hidden;
  transition: background-color .5s;
}
.face.top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.face i { display: block; border-radius: 16%; background: var(--tile); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -3px 0 rgba(0, 0, 0, .3); transition: background-color .5s, transform .12s; }
.face i.on { --c: #fff; background: var(--c); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .45), inset 0 -4px 0 rgba(0, 0, 0, .28); }
.face i.hint { background: var(--gold); opacity: .75; }
.face i.bad { background: var(--red); opacity: .55; }
.face i.drop { transform: scale(1.14); }
.stage:not(.ready) .scene, .stage:not(.ready) .hud, .stage:not(.ready) .tray-row { visibility: hidden; height: 0; min-height: 0; }

.tray-row { display: flex; align-items: center; gap: 6px; margin-top: 6px; width: 100%; max-width: 440px; }
.tray { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.slot { height: 96px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; padding: 0; cursor: grab; touch-action: none; }
.slot.lifted .piece { opacity: .2; }
.piece { --u: 19px; --c: #fff; display: inline-grid; grid-template: repeat(var(--h), var(--u)) / repeat(var(--w), var(--u)); gap: 2px; }
.piece b { background: var(--c); border-radius: 22%; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .25); }
.ghost { position: fixed; left: 0; top: 0; z-index: 9; pointer-events: none; opacity: .9; }
.turn { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--line); color: #fff; font-size: 20px; cursor: pointer; }
.hint-text { margin: 6px 0 0; font-weight: 700; color: var(--soft); text-align: center; font-size: 16px; }
.touched .hint-text { visibility: hidden; }
.msg { position: absolute; inset: 22% 6% auto; z-index: 5; padding: 18px; background: var(--deep); border-radius: 18px; text-align: center; box-shadow: 0 0 0 3px var(--gold); }
.msg p { margin: 0 auto 12px; font-weight: 700; }
.msg-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.best { margin-left: auto; padding-left: 14px; font-weight: 800; color: var(--soft); font-size: 16px; }
.best b { font: 400 22px var(--display); color: var(--gold); margin-left: 4px; }
.stage-full .hud { width: 100%; max-width: 440px; }

/* Gövde */
section.wrap { max-width: 1180px; margin: 0 auto; padding: 72px 20px 0; }
main > :last-child { padding-bottom: 80px; }

/* Özellikler kart değil, blok işaretli liste: her satırın işareti oyundan bir parça. */
.feats { display: grid; gap: 34px 48px; }
@media (min-width: 760px) { .feats { grid-template-columns: 1fr 1fr; } }
.feats li { display: grid; grid-template-columns: 62px 1fr; gap: 16px; }
.feats p { margin: 6px 0 0; color: var(--soft); }
.mark { --u: 13px; --c: var(--gold); padding-top: 4px; }

/* Ekran görüntüleri yelpaze gibi açılır; dar ekranda kaydırılır. */
.fan { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 20px 22px; margin: 0 -20px; }
.fan li { flex: 0 0 min(236px, 62vw); scroll-snap-align: center; }
.fan img { border-radius: 18px; }
@media (min-width: 1100px) {
  .fan { overflow: visible; justify-content: center; gap: 0; padding: 24px 0 32px; }
  .fan li { flex: 0 0 214px; margin: 0 -10px; transition: transform .25s; transform: rotate(calc((var(--i) - 2.5) * 2.6deg)) translateY(calc(var(--d) * 13px)); }
  .fan li:hover { transform: translateY(-14px) scale(1.06); z-index: 2; position: relative; }
}

/* Tema seçici küpü ve sayfayı boyar. */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.swatch { font: 700 17px Nunito, sans-serif; color: #fff; background: var(--line); border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer; }
.swatch[aria-pressed="true"] { background: var(--gold); color: #2b2100; }
.mosaic { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic li { position: relative; overflow: hidden; border-radius: 16px; }
.mosaic li:first-child { grid-column: span 2; }
.mosaic h3 { position: absolute; left: 12px; bottom: 10px; text-shadow: 0 2px 0 #000; }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: 2fr 1fr 1fr; }
  .mosaic li:first-child { grid-column: auto; grid-row: span 2; }
  .mosaic li:first-child img { height: 100%; object-fit: cover; }
}
.chips { display: flex; gap: 8px 22px; flex-wrap: wrap; font: 400 24px var(--display); color: var(--soft); margin-top: 26px; }

.faq details { border-bottom: 2px solid var(--line); padding: 16px 0; }
.faq summary { font: 400 23px/1.2 var(--display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 2px; color: var(--soft); }

.more { display: flex; gap: 14px; flex-wrap: wrap; }

/* Alt sayfalar */
.sub { background: radial-gradient(90% 120% at 80% 0%, var(--sky) 0%, var(--night) 55%, var(--deep) 100%); margin-top: -66px; padding-top: 66px; }
.sub-in { max-width: 1180px; margin: 0 auto; padding: 44px 20px 54px; }
.sub h1 { font-size: clamp(42px, 7vw, 76px); }
.sub.center { text-align: center; }
.sub.center h1, .sub.center p { margin-inline: auto; }
.sub.center .cta { justify-content: center; }

/* Oynanış adımları: gerçekten sıralı olduğu için numaralı; her adımın yanında küçük tahta. */
.steps { display: grid; gap: 38px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.steps h3::before { content: counter(s) ". "; color: var(--gold); }
.steps p { margin: 6px 0 0; color: var(--soft); }
.mini { --n: 104px; width: var(--n); height: var(--n); padding: 4px; border-radius: 10px; background: var(--tile-edge); display: grid; grid-template: repeat(5, 1fr) / repeat(5, 1fr); gap: 3px; transform: perspective(300px) rotateY(-14deg) rotateX(6deg); }
.mini i { border-radius: 3px; background: var(--tile); }
.mini .a { background: var(--cyan); }
.mini .b { background: var(--red); }
.mini .c { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.tips { max-width: 66ch; display: grid; gap: 12px; }
.tips li { padding-left: 28px; position: relative; }
.tips li::before { content: ""; position: absolute; left: 0; top: .42em; width: 15px; height: 15px; border-radius: 4px; background: var(--mint); }

.facts { border-collapse: collapse; width: 100%; max-width: 620px; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 2px solid var(--line); }
.facts th { font-weight: 700; color: var(--soft); width: 42%; }

.foot { padding: 34px 20px 40px; color: var(--soft); font-size: 15px; text-align: center; }
.foot nav { display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: center; }
.foot p { margin: 12px auto 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Blog: okunur satır uzunluğu, oyunun başlık yazısı daha küçük boyda. */
.byline { margin: 14px 0 0; color: var(--soft); font-weight: 700; font-size: 16px; }
.kicker { margin: 0 0 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.kicker a { text-decoration: none; }
.sub h1:not(:only-child) { font-size: clamp(34px, 5.6vw, 60px); max-width: 22ch; }
.post { max-width: 760px; margin: 0 auto; padding: 44px 20px 0; overflow-wrap: break-word; }
.post h2 { font-size: clamp(26px, 3.8vw, 36px); max-width: none; margin: 46px 0 14px; }
.post h3 { font-size: 22px; margin: 28px 0 8px; }
.post p { margin: 0 0 16px; }
.post ul, .post ol:not(.steps) { margin: 0 0 18px; display: grid; gap: 8px; }
.post > ul:not(.tips) li, .post > ol li { padding-left: 26px; position: relative; }
.post > ul:not(.tips) li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 11px; height: 11px; border-radius: 3px; background: var(--gold); }
.post > ol { counter-reset: n; }
.post > ol li { counter-increment: n; }
.post > ol li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.post .answer { font-size: 20px; font-weight: 600; color: #e9edff; border-left: 5px solid var(--gold); background: var(--tile-edge); border-radius: 0 14px 14px 0; padding: 16px 18px; max-width: none; }
.post .faq summary { font-size: 20px; }
.post .tips { margin-bottom: 8px; }
.posts { display: grid; gap: 26px; max-width: 760px; }
.post-card { display: grid; gap: 18px; align-items: start; }
@media (min-width: 640px) { .post-card { grid-template-columns: 220px 1fr; } }
.post-thumb img { border-radius: 14px; aspect-ratio: 4 / 3; object-fit: cover; }
.post figure { margin: 26px 0 28px; }
.post figure img { border-radius: 18px; margin: 0 auto; }
.post figure:not(.post-cover) img { max-width: min(100%, 360px); }
.post figcaption { margin-top: 10px; text-align: center; color: var(--soft); font-size: 15px; font-weight: 700; }
.post-cover { margin-top: 0 !important; }
.posts article { border-bottom: 2px solid var(--line); padding-bottom: 22px; }
.posts p { margin: 6px 0 0; color: var(--soft); }
.post-card-title { font-size: clamp(24px, 3.4vw, 32px); max-width: none; margin: 0; text-shadow: none; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--gold); }
