/* ---------- Ana Ekran ---------- */
.home-screen {
  padding: 16px 20px 60px;
  min-height: 100%;
}

.home-header {
  padding: 12px 4px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-summary {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.home-settings-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.home-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 1.2);
  padding: 18px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  text-align: left;
  font-family: inherit;
  color: inherit;
  box-shadow: var(--shadow);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  transition: transform .18s ease;
}

.home-card:hover { transform: translateY(-2px); }
.home-card:active { transform: translateY(0); }

.home-card-preview {
  width: 110px;
  height: 110px;
  border-radius: var(--radius);
  background: var(--app-bg);
  border: 1px solid var(--line-2);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-mini {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  position: relative;
}

.preview-cell {
  border: 1px dashed var(--line);
  border-radius: 2px;
}

.preview-seed {
  border-radius: var(--seed-radius);
  color: white;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px;
}

.zip-preview-mini {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-bg);
}

.zip-preview-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zip-preview-fill {
  background: color-mix(in srgb, var(--zip-path-fill, #bfdbfe) 55%, transparent);
  z-index: 1;
}

.zip-preview-path {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zip-preview-path polyline {
  fill: none;
  stroke: var(--zip-path-primary, #2563eb);
  stroke-width: 0.33;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.zip-preview-dot {
  align-self: center;
  justify-self: center;
  z-index: 4;
  width: 48%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--zip-dot-bg, #000);
  color: var(--zip-dot-ink, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
}

.zip-preview-wall {
  position: absolute;
  z-index: 3;
  background: var(--zip-wall-bg, #000);
}

.zip-preview-wall-a {
  left: 66%;
  top: 33%;
  width: 28%;
  height: 7px;
}

.zip-preview-wall-b {
  left: calc(66% + 28% - 7px);
  top: 33%;
  width: 7px;
  height: 31%;
}

.home-card-name {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.home-card-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.4;
  margin-bottom: 14px;
}

.home-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.cta-arrow {
  transition: transform .18s ease;
}

.home-card:hover .cta-arrow {
  transform: translateX(3px);
}

.home-levels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-level-card {
  background: var(--card-bg);
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) * 1.2);
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
}

.home-level-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.home-level-title {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.home-level-subtitle {
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
}

.home-level-badge {
  flex: 0 0 auto;
  background: var(--line-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.home-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.home-game-card {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--app-bg);
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.home-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.home-game-preview {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card-bg);
  padding: 5px;
  overflow: hidden;
}

.home-game-info {
  min-width: 0;
}

.home-game-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.home-game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}

/* Diğer puzzle'lar listesi */
.home-puzzles {
  margin-top: 28px;
}

.home-section-title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0 4px 10px;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.puzzle-tile {
  background: var(--card-bg);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.puzzle-tile:hover {
  transform: translateY(-2px);
}

.puzzle-tile-preview {
  width: 56px;
  height: 56px;
  background: var(--app-bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 5px;
  flex-shrink: 0;
}

.ptm-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 0;
  position: relative;
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
}

.ptm-cell {
  border-right: 0.5px dashed var(--line);
  border-bottom: 0.5px dashed var(--line);
}

.ptm-seed {
  margin: 1px;
  border-radius: 2px;
  z-index: 1;
  color: white;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.puzzle-tile-info {
  min-width: 0;
}

.puzzle-tile-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.2;
  word-break: break-word;
}

.puzzle-tile-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.puzzle-tile-difficulty {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.06em;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 999px;
}

.puzzle-tile-size {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
