/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --adventure-bg: #f6f3ee;
  --adventure-card: #fff;
  --adventure-ink: #1f1a17;
  --adventure-muted: #817a73;
  --adventure-line: #e7e1d9;
  --adventure-accent: #f36c3f;
  --adventure-soft: #fff0e9;
  --adventure-dark: #26221f;
  --adventure-purple: #6d5b95;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--adventure-ink);
  background: linear-gradient(135deg, #eee9e0, #faf8f5);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang HK", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.adventure-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.adventure-phone {
  width: min(100%, 430px);
  height: 880px;
  overflow: hidden;
  border: 9px solid #181716;
  border-radius: 42px;
  background: var(--adventure-bg);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .22);
  position: relative;
}

.adventure-status {
  height: 40px;
  padding: 12px 22px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
}

.adventure-screen {
  display: none;
  height: calc(100% - 40px);
  overflow: auto;
  padding: 0 18px 98px;
  scrollbar-width: none;
}

.adventure-screen.active {
  display: block;
}

.adventure-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.adventure-logo {
  font-size: 22px;
  font-weight: 950;
}

.adventure-logo em {
  color: var(--adventure-accent);
  font-style: normal;
}

.adventure-icon,
.adventure-back {
  border: 0;
  background: #ece5dd;
  cursor: pointer;
}

.adventure-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.adventure-back {
  color: var(--adventure-ink);
  background: transparent;
  font-weight: 850;
}

.adventure-eyebrow {
  margin: 6px 0 8px;
  color: var(--adventure-accent);
  font-size: 11px;
  font-weight: 900;
}

.adventure-heading {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.adventure-subtitle {
  margin: 10px 0 20px;
  color: var(--adventure-muted);
  font-size: 14px;
  line-height: 1.6;
}

.adventure-continue,
.adventure-hero {
  width: 100%;
  border: 0;
  border-radius: 23px;
  padding: 18px;
  color: #fff;
  text-align: left;
  background: radial-gradient(circle at 82% 20%, rgba(250, 174, 115, .7), transparent 24%), linear-gradient(145deg, #33252c, #6b434a 54%, #b4634f);
}

.adventure-continue {
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(61, 43, 31, .18);
}

.adventure-continue strong,
.adventure-continue span,
.adventure-continue small {
  display: block;
}

.adventure-continue strong,
.adventure-hero h2 {
  margin: 12px 0 7px;
  font-size: 23px;
}

.adventure-continue span:not(.adventure-tag),
.adventure-hero p {
  margin: 0 0 15px;
  color: #f5eae4;
  font-size: 12px;
  line-height: 1.5;
}

.adventure-continue small {
  color: #f7ddd3;
  font-size: 11px;
}

.adventure-tag {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .14);
  font-size: 10px;
  font-weight: 800;
}

.adventure-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 12px;
}

.adventure-section-title h2 {
  margin: 0;
  font-size: 18px;
}

.adventure-section-title span {
  color: var(--adventure-accent);
  font-size: 12px;
  font-weight: 800;
}

.adventure-scenes {
  display: grid;
  gap: 11px;
}

.adventure-scene {
  min-height: 89px;
  display: flex;
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--adventure-line);
  border-radius: 18px;
  padding: 11px;
  background: var(--adventure-card);
  text-align: left;
  cursor: pointer;
}

.adventure-cover {
  width: 66px;
  min-width: 66px;
  border-radius: 13px;
  background: linear-gradient(135deg, #533c54, #f08b61);
}

.adventure-scene strong,
.adventure-scene small,
.adventure-scene em {
  display: block;
}

.adventure-scene strong {
  margin: 1px 0 5px;
  font-size: 15px;
  font-weight: 900;
}

.adventure-scene small {
  color: var(--adventure-muted);
  font-size: 12px;
  line-height: 1.45;
}

.adventure-scene em {
  margin-top: 7px;
  color: #9b948b;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.adventure-hero {
  min-height: 210px;
  margin-bottom: 15px;
}

.adventure-form {
  margin: 15px 0;
  border: 1px solid var(--adventure-line);
  border-radius: 19px;
  padding: 15px;
  background: #fff;
}

.adventure-form h2 {
  margin: 0 0 11px;
  font-size: 16px;
}

.adventure-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.adventure-role {
  border: 1px solid var(--adventure-line);
  border-radius: 14px;
  padding: 11px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.adventure-role.active {
  border-color: var(--adventure-accent);
  background: #fff9f6;
  box-shadow: inset 0 0 0 1px var(--adventure-accent);
}

.adventure-role strong,
.adventure-role small {
  display: block;
}

.adventure-role strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.adventure-role small {
  color: var(--adventure-muted);
  font-size: 11px;
  line-height: 1.4;
}

.adventure-form label {
  display: block;
  margin: 11px 0 6px;
  color: #6e675f;
  font-size: 12px;
  font-weight: 800;
}

.adventure-form input {
  width: 100%;
  border: 1px solid #dfd8cf;
  border-radius: 12px;
  padding: 12px 13px;
  outline: none;
}

.adventure-primary {
  width: 100%;
  border: 0;
  border-radius: 15px;
  padding: 14px;
  background: var(--adventure-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.adventure-note {
  color: var(--adventure-muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.adventure-game {
  padding-bottom: 185px;
}

.adventure-topline {
  margin: 4px 0 15px;
  color: var(--adventure-muted);
  font-size: 11px;
}

.adventure-turn {
  margin-bottom: 16px;
}

.adventure-speaker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: #726a62;
  font-size: 11px;
  font-weight: 900;
}

.adventure-speaker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--adventure-accent);
}

.adventure-speaker span.you {
  background: var(--adventure-purple);
}

.adventure-bubble {
  border: 1px solid var(--adventure-line);
  border-radius: 4px 17px 17px 17px;
  padding: 13px 14px;
  background: #fff;
  color: #39332d;
  font: 14px/1.72 Georgia, "Songti SC", serif;
}

.adventure-bubble.you {
  border-color: #e4ddf5;
  border-radius: 17px 4px 17px 17px;
  background: #f1ecff;
  color: #3d3652;
  font-family: inherit;
}

.adventure-loading {
  display: none;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  color: #817a73;
  font-size: 12px;
  font-weight: 800;
}

.adventure-loading.show {
  display: flex;
}

.adventure-loading span {
  width: 15px;
  height: 15px;
  border: 2px solid #e1dad2;
  border-top-color: var(--adventure-accent);
  border-radius: 50%;
  animation: adventure-spin .75s linear infinite;
}

.adventure-controls {
  display: flex;
  gap: 8px;
}

.adventure-controls button {
  border: 1px solid var(--adventure-line);
  border-radius: 11px;
  padding: 7px 9px;
  background: #fff;
  color: #675f57;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.adventure-input-dock {
  position: absolute;
  right: 0;
  bottom: 76px;
  left: 0;
  padding: 10px 18px 11px;
  background: linear-gradient(180deg, rgba(246, 243, 238, .5), var(--adventure-bg) 30%);
}

.adventure-input-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
}

.adventure-input-row textarea {
  flex: 1;
  min-height: 45px;
  max-height: 100px;
  resize: none;
  border: 1px solid #dcd4cb;
  border-radius: 16px;
  padding: 12px 13px;
  outline: none;
  font-size: 13px;
  line-height: 1.4;
}

.adventure-input-row button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--adventure-dark);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

.adventure-input-row button:disabled {
  opacity: .55;
}

.adventure-input-help {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 3px 0;
  color: #8b837b;
  font-size: 10px;
}

.adventure-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--adventure-line);
  padding-top: 10px;
  background: rgba(255, 255, 255, .94);
}

.adventure-nav button {
  min-width: 65px;
  border: 0;
  background: transparent;
  color: #8e877f;
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.adventure-nav b {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 20px;
}

.adventure-nav button.active {
  color: var(--adventure-accent);
  font-weight: 900;
}

.adventure-toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 10px 13px;
  background: #282523;
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  transition: .2s;
}

.adventure-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes adventure-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .adventure-shell {
    padding: 0;
  }

  .adventure-phone {
    width: 100%;
    height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
