.yayla-title {
  display: none;
}

html[data-world="yayla"] :is(.boot-title, .slot-title) picture,
html[data-world="yayla"] :is(#boot, #slot-picker) .lang-pick {
  display: none;
}

html[data-world="yayla"] .yayla-title {
  display: inline-block;
  max-width: 94vw;
  padding: 0.12em 0.45em 0.17em;
  color: #f6ebd1;
  background: #254635;
  border: 1px solid #bac39f;
  border-radius: 0.22em;
  box-shadow: 0 0.1em 0 #182d24, 0 0.18em 0.5em #24372f55;
  font: 700 clamp(3rem, 8vw, 6.3rem) / 1 var(--font-display, Georgia, serif);
  letter-spacing: -0.025em;
  text-shadow: 0 2px #14251d;
  white-space: nowrap;
}

html[data-world="yayla"] .slot-title .yayla-title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

html[data-world="yayla"] #boot.modal-layer {
  --yayla-opening-art: url('../assets/art/yayla-splash.webp');
  background: var(--yayla-opening-art) center / cover no-repeat, #d9ad92;
}

html[data-world="yayla"] #boot.modal-layer::after {
  background: linear-gradient(180deg, #fff5dc42 0%, transparent 29%, transparent 72%, #171c1680 100%);
}

html[data-world="yayla"] #boot > .smoke {
  display: none;
}

html[data-world="yayla"] #boot .boot-card {
  position: absolute;
  inset: 0;
  align-self: stretch;
  height: 100%;
  justify-content: space-between;
  margin: 0;
  padding: max(1.4rem, 6dvh, env(safe-area-inset-top)) 1rem
    max(1.5rem, 5dvh, calc(env(safe-area-inset-bottom) + 0.9rem));
}

html[data-world="yayla"] #boot .boot-title {
  margin: 0;
}

html[data-world="yayla"] #boot .yayla-title {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #412a21;
  font: 700 clamp(3.05rem, 7.2vw, 7.35rem) / 1.05 Georgia, Cambria, serif;
  letter-spacing: -0.055em;
  text-shadow: 0 1px 1px #fff2d7c4, 0 5px 32px #ffe4be80;
}

html[data-world="yayla"] #boot .boot-line {
  width: min(18.5rem, 100%);
  min-height: 3.45rem;
  gap: 0.6rem;
  padding: 0.71rem 0.95rem 1rem;
  border: 1px solid #ecd39e59;
  border-radius: 0.75rem;
  color: #fff4db;
  background: #20251dea;
  box-shadow: 0 10px 34px #150f0970;
  font-size: 0.97rem;
}

html[data-world="yayla"] #boot .boot-line.bad {
  background: #622f27;
  text-shadow: none;
}

html[data-world="yayla"] #boot .boot-line.no-pct {
  padding-bottom: 0.71rem;
}

html[data-world="yayla"] #boot-text {
  flex: 1;
}

html[data-world="yayla"] #boot .spin {
  width: 0.9rem;
  height: 0.9rem;
  flex: none;
  border: 2px solid #e8d6ae46;
  border-top-color: #f4ce8b;
}

html[data-world="yayla"] #boot .boot-pct {
  color: #f4d28e;
}

html[data-world="yayla"] #boot .boot-prog {
  inset: auto 0.95rem 0.4rem;
  height: 0.19rem;
  background: #fff3d231;
}

html[data-world="yayla"] #boot .boot-prog > i {
  background: linear-gradient(90deg, #c78958, #f6cf87);
}

@media (max-aspect-ratio: 4 / 5) {
  html[data-world="yayla"] #boot.modal-layer {
    background: linear-gradient(166deg, #f7ddc1 9%, #d1a288 36%, #777053 70%, #28362b 100%);
  }

  html[data-world="yayla"] #boot.modal-layer::before {
    content: '';
    position: absolute;
    inset: 49% 0 auto;
    height: min(62dvh, 116vw);
    transform: translateY(-50%);
    background: var(--yayla-opening-art) 42% center / auto 100% no-repeat;
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 85%, transparent);
  }

  html[data-world="yayla"] #boot .yayla-title {
    font-size: clamp(3rem, 11vw, 5.5rem);
  }
}

.yayla-actions {
  position: fixed;
  top: max(6.1rem, calc(env(safe-area-inset-top) + 5.2rem));
  right: max(4.25rem, calc(env(safe-area-inset-right) + 3.5rem));
  z-index: 9;
  width: min(19.4rem, calc(100vw - 2.3rem));
  display: grid;
  justify-items: end;
  gap: 0.45rem;
  pointer-events: none;
  color: #172b22;
  font: 600 0.93rem / 1.3 var(--font-ui, system-ui);
}

.yayla-actions button,
.yayla-actions select {
  min-height: 40px;
  padding: 0.3rem 0.78rem;
  border: 1px solid #274637;
  border-radius: 0.55rem;
  background: #315746;
  color: #fff9eb;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.yayla-actions .yayla-toggle,
.yayla-sheet {
  pointer-events: auto;
}

.yayla-sheet {
  width: 100%;
  max-height: min(60vh, 480px);
  overflow: auto;
  padding: 0.85rem;
  border: 1px solid #b9c8ae;
  border-radius: 0.75rem;
  background: #f8f2e2f5;
  box-shadow: 0 5px 24px #192d2a36;
  scrollbar-width: thin;
}

.yayla-sheet h2 {
  margin: 0;
  font: 700 1.35rem / 1.05 var(--font-display, Georgia);
}

.yayla-sheet p {
  margin: 0.5rem 0 0;
}

.yayla-sheet p:empty {
  display: none;
}

.yayla-stock {
  font-size: 0.83rem;
  color: #40563b;
}

.yayla-buttons,
.yayla-pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.yayla-buttons {
  margin-top: 0.6rem;
}

.yayla-actions :is(.yayla-minor, select) {
  background: #f2ebd9;
  color: #283d31;
  border-color: #aebd9d;
}

.yayla-actions button:disabled {
  opacity: 0.6;
  cursor: default;
}

.yayla-actions :is(button, select):focus-visible {
  outline: 3px solid #d7a957;
  outline-offset: 1px;
}

.yayla-work {
  position: fixed;
  z-index: 8;
  left: 0;
  top: 0;
  display: grid;
  gap: 5px;
  width: max-content;
  min-width: 9rem;
  max-width: min(16rem, calc(100vw - 16px));
  padding: 6px 8px;
  border: 1px solid #b9c8ae;
  border-radius: 9px;
  background: #fcf5e3;
  color: #172b22;
  box-shadow: 0 2px 9px #172b2266;
  font: 700 .8125rem / 1.18 var(--font-ui, system-ui);
  pointer-events: none;
}

body.hud-hidden .yayla-work {
  display: none;
}

.yayla-work-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.yayla-work-remaining {
  color: #315746;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.yayla-progress {
  appearance: none;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #e1dec8;
}

.yayla-progress::-webkit-progress-bar { background: #e1dec8; }
.yayla-progress::-webkit-progress-value { background: #426f52; }
.yayla-progress::-moz-progress-bar { background: #426f52; }
}

html[data-world="yayla"] #hud .hud-bl > .social:not([hidden]) {
  display: block;
}

html[data-world="yayla"] #hud :is(.social-shortcuts, .together-menu) {
  gap: 8px;
  max-width: calc(100vw - 24px - var(--sal) - var(--sar));
  flex-wrap: wrap;
}

.social-shortcuts {
  display: flex;
  align-items: center;
}

html[data-world="yayla"] #hud .social-btn:not([hidden]) {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: 44px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--ink-900);
  font: 750 .875rem / 1 var(--font-ui, system-ui);
}

html[data-world="yayla"] #hud .social-btn .glyph {
  width: 20px;
  height: 20px;
}

html[data-world="yayla"] #hud .social-btn .lbl {
  display: inline;
}

html[data-world="yayla"] #hud .together-menu {
  box-sizing: border-box;
  width: max-content;
}

html[data-world="yayla"] #hud .together-menu .key {
  display: none;
}

html[data-world="yayla"] #hud .hud-bl:has(.yayla-chat) .feed {
  display: none;
}

.avatar-speech {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  max-width: min(17rem, calc(100vw - 2rem));
  padding: .48rem .7rem;
  border: 2px solid #8d5b35;
  border-radius: .85rem;
  background: #fff8e9;
  color: #412b1e;
  box-shadow: 0 3px 0 #4925153d;
  font: 650 .875rem / 1.3 var(--font-ui, system-ui);
  text-align: center;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  pointer-events: none;
}

.avatar-speech::after {
  position: absolute;
  bottom: -5px;
  left: calc(var(--speech-tail, 50%) - 4px);
  width: 8px;
  height: 8px;
  border: solid #8d5b35;
  border-width: 0 2px 2px 0;
  background: inherit;
  transform: rotate(45deg);
  content: "";
}

.avatar-speech[data-below]::after {
  top: -5px;
  bottom: auto;
  transform: rotate(225deg);
}

html[data-world="yayla"] #hud .yayla-chat {
  width: min(350px, calc(100vw - 24px - var(--sal) - var(--sar)));
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  color: var(--ink-900);
  font: 500 .9rem / 1.35 var(--font-ui, system-ui);
}

.yayla-chat header,
.yayla-chat .chat-compose {
  display: flex;
  gap: 8px;
  align-items: center;
}

.yayla-chat header {
  justify-content: space-between;
  padding-left: 4px;
  font-size: 1rem;
}

.yayla-chat .chat-dismiss {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--paper-100);
  color: var(--ink-900);
  cursor: pointer;
}

.yayla-chat .chat-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 42px;
  max-height: min(206px, 32dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 4px;
  overflow-wrap: anywhere;
  user-select: text;
}

.yayla-chat .chat-line {
  display: grid;
  align-self: flex-start;
  gap: 2px;
  max-width: 90%;
  border-radius: 10px;
  padding: 6px 9px;
  background: #efe4cd;
}

.yayla-chat .chat-line.mine {
  align-self: flex-end;
  background: #dbe9d9;
}

.yayla-chat .chat-empty {
  margin: 0;
  color: #48543e;
}

.yayla-chat .field, .yayla-chat .btn {
  min-height: 44px;
}

@media (max-width: 360px), (max-height: 500px) {
  html[data-world="yayla"] #hud .social-btn:not([hidden]) {
    gap: 4px;
    padding-inline: 8px;
  }
}

html[data-world="yayla"] .coach,
html[data-world="yayla"] #tracker {
  display: none;
}

@media (max-width: 900px) {
  .yayla-actions {
    top: max(5.1rem, calc(env(safe-area-inset-top) + 4.4rem));
    width: min(17.3rem, 46vw);
    font-size: 0.87rem;
  }
}

@media (max-width: 540px) {
  .yayla-actions {
    width: min(17rem, 69vw);
    top: max(4.9rem, calc(env(safe-area-inset-top) + 4.05rem));
  }
  .yayla-sheet {
    max-height: 45vh;
  }
}
