/* The original forum DOM, column proportions, image frames and spacing remain.
   These overrides change YEARNER content and repair narrow-screen wrapping. */
html { min-width: 280px; }
body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('/assets/yearner-dream-background.webp');
  background-color: #d7d0f2;
  background-size: cover;
  background-position: center center;
}
#container { position: relative; width: 100%; flex: 0 0 auto; margin: auto; }
#container > br { display: none; }
#container > .buttonss { position: absolute; top: calc(100% + 8px); left: 10px; right: 10px; width: auto; }
.row, .pdialogue, .player2 { position: relative; }
.row { width: 100%; }
.inline-flex { width: 100%; }
.col-6.plainbox { min-height: 104px; }
.bannerbox { padding-right: 96px; white-space: nowrap; }
.bannerbox h1 { font: inherit; margin: 0; }
.dream-stamp {
  position: absolute; right: -2px; top: -2px; width: 88px; height: 31px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  background: #16152e; border: 2px outset #e3e3e3; color: #ddf6ce;
  font-size: 15px; line-height: 11px; text-align: center;
}
.dream-stamp img { width: 25px; height: 26px; object-fit: cover; object-position: 42% 65%; }
.dream-stamp small { font-size: 10px; color: #e0d6fa; }
.destinations { margin-top: 5px; text-align: center; }
.destinations button {
  font-family: Arial, sans-serif; font-size: 13px; color: #202020;
  border: 2px outset #eee; background: #e9e9e9; padding: 1px 7px;
  min-height: 23px; border-radius: 0;
}
.destinations button[aria-disabled='true'] { cursor: default; }
.destinations button:hover { opacity: 1; background: #f3f1fa; }
.destinations button:active { border-style: inset; }
.destinations button:focus-visible { outline: 2px dotted #38295f; outline-offset: 2px; }
.links-note { font-size: 12px; line-height: 13px; margin: 3px 0 0; color: #707070; }
.definition { font-size: 14px !important; line-height: 1; }
.definition .definition-copy { color: #686868; }
.definition strong { color: #3d3d3d; font-size: 19px; font-weight: normal; }
.pronunciation { color: #888; }
.window-title, .toolbar-labels, .window-status,
.pdialogue::before, .pdialogue::after, .player2::before { pointer-events: none; }
.window-title {
  position: absolute; top: -88px; left: 50%; transform: translateX(-50%);
  width: 165px; height: 22px; background: #c7c7c7; color: #292929;
  text-align: center; font-size: 23px; line-height: 22px; letter-spacing: 3px;
}
.toolbar-labels {
  position: absolute; left: 7px; right: 62px; top: -24px; height: 20px;
  display: grid; grid-template-columns: repeat(7,1fr); align-items: start;
  text-align: center; color: #555; background: #efefef; font-size: 16px;
}
.mobile-phrase { display: none; }
.window-status {
  position: absolute; bottom: -26px; left: 46px; right: 28px; height: 17px;
  color: #333; background: #eee; font-size: 17px; line-height: 17px;
}
.pdialogue::before {
  content: 'the yearning room'; position: absolute; top: -38px; left: 50%;
  transform: translateX(-50%); width: 165px; height: 16px;
  background: #cbcbcb; color: #373737; font-size: 17px; text-align: center; line-height: 16px;
}
.pdialogue::after {
  content: 'somewhere between a dream and a feeling'; position: absolute;
  top: -19px; left: -1px; right: -1px; height: 17px;
  background: #fff; color: #4c4c4c; font-size: 17px; line-height: 17px; text-align: center;
}
.player2::before {
  content: 'YEARNER.mov'; position: absolute; top: -21px; left: 50%;
  transform: translateX(-50%); width: 72%; height: 17px;
  background: #cbcbcb; color: #454545; font-size: 17px; line-height: 17px; text-align: center;
}
.character-scene { display: block; width: 100%; height: auto; aspect-ratio: 500 / 490; margin-bottom: 4px; object-fit: cover; object-position: center 65%; }
.player2[data-video-player] { border-bottom-width: 36px; border-image-width: 23px 6px 36px 7px; }
.video-stage {
  position: relative; width: 100%; aspect-ratio: 500 / 490; margin-bottom: 4px; overflow: hidden;
  background: #ded1e7 url('/assets/yearner-video-poster.jpg') center / cover;
}
.video-stage::before { content: ''; position: absolute; inset: 0; background: #d7cae459; backdrop-filter: blur(18px); }
.dream-video { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.video-controls {
  position: absolute; left: -6px; right: -5px; bottom: -33px; height: 31px; z-index: 2;
  display: flex; gap: 5px; align-items: center; padding: 2px 5px;
  background: #ccc; border: 1px solid #777; box-shadow: inset 0 1px #f7f7f7;
}
.video-controls[hidden] { display: none; }
.video-controls button { min-height: 26px; padding: 0 7px; color: #333; font: 16px/20px VT323, monospace; white-space: nowrap; background: #e4e4e4; border: 2px outset #eee; border-radius: 0; cursor: pointer; }
.video-controls button:active { border-style: inset; }
.video-controls button:focus-visible { outline: 2px dotted #55416d; outline-offset: 1px; }
.video-time { margin-left: auto; white-space: nowrap; color: #484848; font-size: 15px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pdialogue { display: flex; align-items: center; justify-content: center; padding: 10px !important; }
.ascii-stage {
  position: relative; isolation: isolate;
  container-type: inline-size; width: 100%; margin: 0; padding: 4px 0;
  background: radial-gradient(ellipse at 72% 15%, #fff9e9a8, transparent 45%), linear-gradient(#fcf9ff, #f3f8fb);
  box-shadow: inset 0 0 28px #e9def13d;
}
.ascii-stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 68% 24%, #f6dfad50, transparent 52%);
  background-size: 160% 160%; opacity: .45;
}
.ascii-art {
  width: max-content; margin: 0 auto; padding: 0; border: 0;
  font-family: 'Courier New', Courier, monospace; font-size: clamp(8px, 1.75cqw, 9px);
  line-height: 1.01; font-weight: 600; letter-spacing: 0; font-variant-ligatures: none;
  font-synthesis: none; white-space: pre; tab-size: 2; color: #9485a5;
}
.ascii-compact { display: none; }
.ink-star { color: #ad8c48; text-shadow: 0 0 5px #edd49b; }
.ink-constellation { color: #b8a8c8; }
.ink-moon { color: #a58b54; }
.ink-cloud { color: #8d7ba3; }
.ink-mountain { color: #807197; }
.ink-horizon { color: #b5a3be; }
.ink-field { color: #7c9575; }
.ink-flower { color: #b57998; }
.ink-water { color: #668b9f; }
.ink-cap { color: #4f865b; }
.ink-face { color: #a87d7b; }
.ink-glasses { color: #51485f; }
.ink-red { color: #a85c74; }
.ink-whisper { color: #897198; }
.buttonss { display: flex; justify-content: center; flex-wrap: wrap; gap: 0; padding-bottom: 4px; }
.web-badge {
  width: 88px; height: 31px; flex: 0 0 88px; border: 2px outset #d1d1d1;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  text-align: center; font-size: 14px; line-height: 12px; color: #e7f4e8;
  background: #263329; text-shadow: 1px 1px #263329; overflow: hidden;
}
.web-badge:nth-child(2n) { background: #b5a2d8; color: #fff; text-shadow: 1px 1px #74608c; }
.web-badge:nth-child(3n) { background: #d8d9f1; color: #453d63; text-shadow: 1px 1px #fff; }
.web-badge img { width: 26px; height: 27px; object-fit: cover; object-position: 42% 65%; }
@media (prefers-reduced-motion: no-preference) {
  .ascii-art { animation: yearner-breathe 12s ease-in-out infinite; }
  .ascii-stage::before { animation: yearner-glow 18s ease-in-out infinite alternate; }
  .ink-star { animation: yearner-starlight 8s ease-in-out infinite alternate; animation-delay: var(--phase, 0s); }
  .ink-moon { animation: yearner-moonlight 16s ease-in-out infinite alternate; }
  .ink-cloud { animation: yearner-cloudlight 17s ease-in-out infinite alternate; animation-delay: var(--phase, 0s); }
  .ink-water { animation: yearner-waterlight 10s ease-in-out infinite alternate; animation-delay: var(--phase, 0s); }
  .web-badge:nth-child(2)::before { content: '✦'; animation: yearner-starlight 8s ease-in-out infinite alternate; }
  @keyframes yearner-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.65px); } }
  @keyframes yearner-glow { from { opacity: .35; background-position: 20% 15%; } to { opacity: .6; background-position: 70% 45%; } }
  @keyframes yearner-starlight { from { opacity: .78; text-shadow: 0 0 2px #e4ce9a40; } to { opacity: 1; text-shadow: 0 0 6px #e4ce9a80; } }
  @keyframes yearner-moonlight { from { text-shadow: 0 0 2px #e4ce9a20; } to { text-shadow: 0 0 5px #e4ce9a65; } }
  @keyframes yearner-cloudlight { from { opacity: .86; } to { opacity: 1; } }
  @keyframes yearner-waterlight { from { color: #668b9f; text-shadow: 0 0 0 #b7c9e000; } to { color: #6f8da8; text-shadow: 0 0 1px #b7c9e055; } }
}
@media (prefers-reduced-motion: reduce) {
  .ascii-art, .ascii-stage::before, .ascii-stage span, .web-badge::before { animation: none !important; transform: none !important; }
}
@media only screen and (max-width: 800px) {
  body { background-attachment: scroll; background-position: center top; }
  #container { max-width: 600px; padding: 10px; }
  .row { display: block; min-width: 0; }
  .mobile-phrase {
    display: block; position: absolute; top: -18px;
    left: 0; right: 0; height: 16px; background: #fff; color: #555;
    text-align: center; font-size: 16px; line-height: 16px;
  }
  .inline-flex { display: block; }
  [class*='col-'] { float: none; width: 100%; }
  .col-6.plainbox { min-height: 104px; }
  .window-title { top: -34px; width: 120px; height: 22px; font-size: 21px; }
  .toolbar-labels { display: none; }
  .window-status { left: 0; right: 0; bottom: -36px; height: 32px; border: 2px inset #ccc; line-height: 26px; font-size: 14px; padding-left: 5px; }
  .pdialogue { min-height: 330px; padding: 10px !important; }
  .pdialogue::after { font-size: 14px; }
  .player2 { margin-top: 10px; }
  .buttonss { gap: 2px; }
}
@media only screen and (max-width: 360px) {
  .bannerbox { font-size: 16px; }
  .destinations button { padding: 1px 5px; font-size: 12px; }
  .pdialogue::after { font-size: 12px; }
  .mobile-phrase { font-size: 12px; }
}
@media only screen and (max-width: 600px) {
  .ascii-wide { display: none; }
  .ascii-compact { display: block; font-size: clamp(7.5px, 3.3cqw, 10px); line-height: 1.12; }
}
