/* masturbate-together.live: warm coral-brown, one narrow centred column. */
@font-face {
  font-family: 'Ktg Cabin'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/type/ktg-cabin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Ktg Cabin'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/type/ktg-cabin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ktg-earth: #2a1411;
  --ktg-clay: #3b1f1a;
  --ktg-seam: #5c3a31;
  --ktg-cream: #fbeee8;
  --ktg-sand: #dcc2b7;
  --ktg-coral: #ff7a5c;
  --ktg-coral-up: #ff9478;
  --ktg-peach: #ffb9a4;
  --ktg-ink: #2a0f0a;
  --ktg-face: 'Ktg Cabin', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ktg-earth); color: var(--ktg-cream);
  font: 400 1.0625rem/1.62 var(--ktg-face); overflow-wrap: break-word;
}
a { color: var(--ktg-peach); text-underline-offset: 0.18em; }
a:hover { color: var(--ktg-cream); }
:focus-visible { outline: 2px solid var(--ktg-cream); outline-offset: 2px; }
#ktg-main:focus { outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li + li { margin-top: 0.3rem; }
code { font-size: 0.95em; color: var(--ktg-peach); }

.ktg-jump { position: absolute; left: -9999px; top: 0; }
.ktg-jump:focus { left: 0.75rem; top: 0.75rem; z-index: 9; padding: 0.4rem 0.8rem; color: var(--ktg-ink); background: var(--ktg-cream); }
.ktg-region { display: none; margin: 0; padding: 0.5rem 1rem; text-align: center; font-size: 0.82rem; line-height: 1.4; color: var(--ktg-sand); background: var(--ktg-clay); }
html[data-lx-avl] .ktg-region { display: block; }

/* Top line */
.ktg-top { display: grid; justify-items: center; gap: 0.15rem; padding: 0.7rem 1rem 0; text-align: center; }
.ktg-name { font-size: 0.95rem; font-weight: 600; color: var(--ktg-cream); text-decoration: none; }
.ktg-langs { display: flex; flex-wrap: wrap; justify-content: center; }
.ktg-langs a { padding: 0.15rem 0.42rem; font-size: 0.82rem; color: var(--ktg-sand); text-decoration: none; }
.ktg-langs a:hover { color: var(--ktg-cream); }
.ktg-langs a[aria-current='page'] { color: var(--ktg-coral); font-weight: 700; }

/* First screen */
.ktg-open {
  width: min(100% - 2rem, 30rem); margin-inline: auto; padding-top: clamp(0.7rem, 2.6vh, 1.6rem);
  display: grid; justify-items: center; text-align: center;
}
h1 { font-size: clamp(1.6rem, 5.4vw, 2.3rem); margin-bottom: 0.55rem; }
.ktg-lede { margin-bottom: 0.9rem; font-size: 1rem; line-height: 1.48; color: var(--ktg-sand); }
.ktg-frame {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: min(100%, 19.5rem); min-height: clamp(19rem, 52vh, 26rem); padding: 0.9rem;
  border-radius: 1.7rem; background: var(--ktg-clay); scroll-margin-top: 1rem;
  box-shadow: 0 1.4rem 2.8rem -1.6rem #0d0403;
}
.ktg-tiles { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.ktg-tiles i { position: absolute; display: block; }
.ktg-tiles i:nth-child(1) { left: -12%; top: -6%; width: 96%; height: 62%; border-radius: 45%; background: #a8503f; filter: blur(2.6rem); }
.ktg-tiles i:nth-child(2) { right: -18%; top: 30%; width: 82%; height: 56%; border-radius: 50%; background: #6c2f38; filter: blur(2.8rem); }
.ktg-tiles i:nth-child(3) { right: 0.9rem; top: 0.9rem; width: 26%; height: 22%; border-radius: 0.8rem; background: #d98a72; opacity: 0.55; filter: blur(0.45rem); }
.ktg-ask, .ktg-begin { position: relative; display: grid; gap: 0.5rem; text-align: center; }
.ktg-ask-q { margin: 0; font-size: 1.28rem; line-height: 1.2; font-weight: 700; }
.ktg-ask-sub { margin: 0 0 0.25rem; font-size: 0.82rem; line-height: 1.36; color: var(--ktg-cream); }
.ktg-begin .ktg-ask-sub { margin: 0.1rem 0 0.3rem; }
.ktg-note { margin: 0.75rem 0 0; font-size: 0.82rem; line-height: 1.4; color: var(--ktg-sand); }

/* Buttons, stacked and wide */
.ktg-press {
  display: block; width: 100%; min-height: 2.9rem; padding: 0.68rem 1rem; border: 1px solid transparent; border-radius: 1rem;
  font: 700 1.02rem/1.25 var(--ktg-face); text-align: center; text-decoration: none; cursor: pointer;
  color: var(--ktg-ink); background: var(--ktg-coral);
}
.ktg-press:hover { color: var(--ktg-ink); background: var(--ktg-coral-up); }
.ktg-press-calm { color: var(--ktg-cream); background: rgba(42, 20, 17, 0.62); border-color: var(--ktg-sand); font-weight: 600; }
.ktg-press-calm:hover { color: var(--ktg-cream); background: var(--ktg-earth); }
.ktg-press-big { min-height: 3.5rem; font-size: 1.28rem; padding-block: 0.9rem; }

/* Guide and notes: one reading column, no boxes */
.ktg-col { width: min(100% - 2rem, 38rem); margin-inline: auto; }
.ktg-col h2 { margin: clamp(2.6rem, 7vw, 3.8rem) 0 0.8rem; font-size: clamp(1.42rem, 4vw, 1.8rem); }
.ktg-col h3 { margin: 1.4rem 0 0.3rem; font-size: 1.1rem; font-weight: 600; color: var(--ktg-peach); }
.ktg-col > h2:first-child { margin-top: clamp(2.8rem, 8vw, 4.4rem); }
.ktg-firm { margin-top: 1.4rem; font-weight: 600; }
.ktg-dim { font-size: 0.86rem; color: var(--ktg-sand); }
.ktg-side { margin-top: clamp(2.6rem, 7vw, 3.8rem); border-top: 1px solid var(--ktg-seam); }
.ktg-side > h2:first-child { margin-top: 2rem; }

/* Footer */
.ktg-end {
  width: min(100% - 2rem, 38rem); margin: clamp(2.4rem, 6vw, 3.4rem) auto 0; padding-bottom: 2rem;
  font-size: 0.85rem; line-height: 1.5; color: var(--ktg-sand);
}
.ktg-end p { margin: 0 0 0.45rem; }
.ktg-end-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
.ktg-end a { color: var(--ktg-cream); }

/* Legal pages and other plain documents */
.ktg-doc { width: min(100% - 2rem, 38rem); margin-inline: auto; padding-top: clamp(1.8rem, 5vw, 3rem); }
.ktg-doc h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 0.5rem; }
.ktg-doc h2 { margin: 1.9rem 0 0.5rem; font-size: 1.2rem; }
.ktg-doc .ktg-press { display: inline-block; width: auto; }
.ktg-form { display: grid; gap: 0.4rem; margin-top: 1.6rem; }
.ktg-form label { margin-top: 0.8rem; font-weight: 600; }
.ktg-form label span { font-weight: 400; color: var(--ktg-sand); }
.ktg-form input, .ktg-form select, .ktg-form textarea {
  width: 100%; padding: 0.7rem 0.85rem; font: inherit; color: var(--ktg-cream); background: var(--ktg-clay);
  border: 1px solid var(--ktg-seam); border-radius: 0.7rem;
}
.ktg-form input:focus, .ktg-form select:focus, .ktg-form textarea:focus { outline: none; border-color: var(--ktg-coral); }
.ktg-form textarea { resize: vertical; }
.ktg-form button { justify-self: start; }
.ktg-form-note { margin: 1.1rem 0 0.4rem; font-size: 0.88rem; color: var(--ktg-sand); }
.ktg-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Chat layer */
html.ktg-layer-on, html.ktg-layer-on body { overflow: hidden; }
.ktg-layer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  flex-direction: column; color: var(--ktg-cream); background: var(--ktg-earth);
}
.ktg-layer[open] { display: flex; }
.ktg-layer::backdrop { background: var(--ktg-earth); }
.ktg-layer-bar { flex: none; display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.7rem 0.45rem 1rem; border-bottom: 1px solid var(--ktg-seam); }
.ktg-layer-name { flex: 1; min-width: 0; margin: 0; font-weight: 600; font-size: 0.95rem; }
.ktg-layer-bar .ktg-press { width: auto; min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.92rem; }
.ktg-layer-stage { position: relative; flex: 1; min-height: 0; }
#app_container { position: absolute; inset: 0; }
.ktg-layer-wait { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: min(26rem, 88%); margin: 0; text-align: center; color: var(--ktg-sand); }
.ktg-layer-stuck {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(30rem, calc(100% - 2rem));
  padding: 1.3rem; background: var(--ktg-clay); border-radius: 1.2rem;
}
.ktg-layer-stuck-h { margin-bottom: 0.5rem; font-size: 1.1rem; font-weight: 700; }
.ktg-layer-row { display: grid; gap: 0.5rem; }

@media (min-width: 48rem) {
  .ktg-top { padding-top: 1rem; }
  .ktg-lede { font-size: 1.06rem; }
}
