/* Tasarım stüdyosu ve masa yerleştirme: tablet içinde ve oyun alanında kaydırma gerektirmez.
   Sütun sayısını ekran değil tablet içeriğinin genişliği belirler (container query). */
.tablet-content { container-type: inline-size; }
.design-studio, .design-page { display: grid; gap: 10px; align-content: start; min-width: 0; }
.design-segment { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--panel-2); }
.design-segment button { flex: 1 1 0; min-width: 0; min-height: 40px; padding: 4px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 13px; font-weight: 900; line-height: 1.15; cursor: pointer; }
.design-segment button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.design-story { margin: 0; font-size: 13px; color: var(--ink-soft); }

.design-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; align-items: start; }
.design-fields label { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; font-weight: 800; }
.design-fields select { width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid #c7d4d7; border-radius: 10px; background: #fff; color: #24333f; font: inherit; font-weight: 700; }
.design-fields small, .furnish-card small, .decor-card small, .furnish-rules { font-size: 12px; font-weight: 600; line-height: 1.35; color: #59616e; }
.design-place { grid-column: span 2; align-self: end; }
.design-place .buy { width: 100%; min-height: 44px; justify-content: center; font-size: 16px; white-space: normal; }

.furnish-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.furnish-head .design-segment { flex: 0 0 auto; }
.furnish-head .design-segment button { flex: 1 0 auto; white-space: nowrap; }
.furnish-info { flex: 1 1 300px; min-width: 0; }
.furnish-info b { display: block; font-size: 14px; color: #256b59; }
.furnishing-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.furnish-card, .decor-card { display: grid; gap: 4px 10px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.furnish-card { grid-template-columns: 44px minmax(0, 1fr); align-items: center; }
.furnish-card .decor-swatch { grid-row: 1 / 3; align-self: start; }
.furnish-card[aria-current] { border: 2px solid var(--teal); padding: 9px; }
.furnish-card b, .decor-card b { display: block; font-size: 14px; }
.furnish-card small, .decor-card small { display: block; }
.furnish-card .decor-swatch, .decor-card .decor-swatch { width: 44px; height: 44px; border-radius: 12px; font-size: 24px; box-shadow: inset 0 0 0 1px #1F22401F; text-shadow: 0 1px 2px #1F224073; }
.furnish-card button, .decor-card button { min-height: 40px; }
.furnish-card button:disabled { opacity: .7; cursor: default; }
.furnish-rules { margin: 2px 0 0; }
.decor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.decor-card { justify-items: start; align-content: start; }
.management-tablet[data-section="design"] .tablet-content > h3 { display: none; }

@container (max-width: 600px) {
  .design-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .design-place { grid-column: 1 / -1; }
}
@container (max-width: 560px) { .decor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Telefon dikey: kartlar tek sütun; dekor kartı yatay (simge · metin · düğme). */
@container (max-width: 480px) {
  .design-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .furnishing-options, .decor-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .decor-card { grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; justify-items: stretch; }
  .furnish-head .design-segment { flex-basis: 100%; }
  .furnish-head .design-segment button { flex: 1 1 auto; padding-inline: 4px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .design-story { display: none; }
  .design-studio, .design-page { gap: 6px; }
  .furnish-head { gap: 6px 12px; }
  .design-segment { padding: 3px; }
  .design-segment button, .design-fields select, .furnish-card button, .decor-card button { min-height: 36px; padding-block: 4px; }
  .design-place .buy { min-height: 40px; }
}

/* Masa yerleştirme: kamera yuvaları çerçeveler, sahne kaydırılamaz; oyun içi yardımcılar gizlenir. */
.stage.framed { overflow: hidden; }
.stage.framed .camera-surface { overflow: hidden; overflow: clip; }
.stage.framed ~ .camera-controls { display: none; }
/* Yan çevir ipucu: yalnız dar dikey kafe görünümünde (StageScaler .cramped); akışa girmez, kaydırma üretmez. */
.rotate-hint { display: none; position: absolute; z-index: 36; top: calc(max(10px, env(safe-area-inset-top)) + 66px); left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 24px); align-items: center; gap: 8px; padding: 4px 4px 4px 12px; border-radius: 16px; background: #20394bf0; color: #fff; box-shadow: 0 3px 10px #1F224033; }
.stage.cramped ~ .rotate-hint:not(.dismissed) { display: flex; }
.app[data-editing] .stage ~ .rotate-hint:not(.dismissed) { display: none; }
.rotate-hint svg { flex: none; width: 24px; height: 24px; }
.rotate-hint p { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.3; }
.rotate-hint button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
/* Tüm kafe görünümünde yüzey sahne boyundadır; yuvarlama artığı kaydırma üretmesin. */
.stage.fitted .camera-surface { overflow: hidden; overflow: clip; }
.app[data-editing] .view-toggle, .app[data-editing] .coach, .app[data-editing] .journey-hint { display: none; }
.app[data-editing] .toast { top: 76px; bottom: auto; }
