/* Shared readability improvements in Komorebi's original green palette. */
@media (min-width: 801px) {
  body.cafe {
    background-color: #e8e7d8;
    background-image: url('/assets/komorebi-retro-wallpaper.svg');
    background-size: 192px 192px;
    background-repeat: repeat;
  }
}
body.cafe .experience { padding: 56px 24px 64px; }
body.cafe .sheet { max-width: 600px; }
.cafe .experience-brand { font-family: var(--serif); font-size: 21px; line-height: 1.6; }
.cafe-entry-visual { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 440px; margin: 8px auto 32px; }
.cafe-entry-visual .hero-art { width: 100%; height: 260px; margin: 0; }
.cafe .cafe-entry-sign { writing-mode: vertical-rl; text-orientation: upright; text-align: start; white-space: nowrap; line-height: 1.7; margin: 0; }
.cafe-sign-prefix, .cafe-sign-name { display: block; }
.cafe-sign-prefix { font-size: 17px; letter-spacing: .25em; margin-left: 10px; }
.cafe-sign-name { font-size: 32px; font-weight: 500; letter-spacing: .16em; }
.cafe .sheet .intro { font-size: 17px; line-height: 2.1; }
.cafe .primary { min-height: 64px; border-radius: 999px; font-size: 20px; }
.cafe .micro { font-size: 12px; line-height: 1.9; margin: 24px 0 0; }
.cafe .sheet-bottom { background: transparent; border: 0; border-radius: 0; font-size: 12px; margin: 8px 0 0; padding: 0; }
.cafe-master { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 20px; margin: 40px 0 0; text-align: left; }
.cafe-master-portrait { display: block; width: 128px; height: auto; }
.cafe-master-speech { position: relative; margin: 0; padding: 22px 24px; border: 1px solid #c4cfb5; border-radius: 22px; background: #f0f3e7; color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 2; }
.cafe-master-speech::before { content: ''; position: absolute; width: 14px; height: 14px; left: -8px; top: 50%; transform: translateY(-50%) rotate(45deg); border: solid #c4cfb5; border-width: 0 0 1px 1px; background: #f0f3e7; }
.cafe-master-speech p { margin: 0; }
.cafe-master-speech p + p { margin-top: 10px; }
.cafe .quiz-progress { font-size: 14px; }
.cafe .quiz-sheet h1 { font-size: 26px; line-height: 1.8; }
.cafe .option { font-size: 17px; line-height: 1.9; min-height: 72px; }
.cafe .option-letter { font-size: 14px; }
.cafe .back-button { min-height: 48px; font-size: 16px; }
body.cafe .result-experience .result-sheet { padding: 48px 32px 52px; }
.cafe .result-sheet .result-date { font-size: 14px; margin: 30px 0 24px; }
.cafe .result-sheet .preview-banner { font-size: 14px; margin: 28px 0; }
.cafe .result-sheet > .result-label { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0; line-height: 1.8; }
.cafe .result-sheet .result-art { height: 248px; margin: 24px 0 32px; }
.cafe .result-sheet h1.result-name { font-size: 36px; font-weight: 500; line-height: 1.6; letter-spacing: .025em; margin: 0 0 16px; text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }
.cafe .result-sheet .result-tag { font-size: 19px; line-height: 1.9; margin: 0 0 32px; }
.cafe .result-sheet .result-message { max-width: none; font-size: 17px; line-height: 2.1; margin: 0 0 36px; text-align: left; }
.cafe .result-sheet .result-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 48px; }
.cafe .result-sheet .result-details > div { min-width: 0; padding: 24px 12px; border: 1px solid #c4cfb5; border-radius: 16px; background: #e9eedf70; }
.cafe .result-sheet .result-details span { font-size: 14px; color: var(--accent); line-height: 1.8; }
.cafe .result-sheet .result-details strong { font-size: 18px; font-weight: 500; line-height: 1.8; margin-top: 12px; overflow-wrap: anywhere; }
.cafe .result-sheet .little-tip { position: relative; border: 1px solid #c4cfb5; border-radius: 18px; background: #e9eedf50; padding: 32px 20px 28px; margin: 0 0 40px; }
.cafe .result-sheet .little-tip > span { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; background: #e2e9d6; color: var(--accent); font-family: var(--serif); font-size: 15px; border-radius: 999px; padding: 4px 20px; line-height: 1.6; }
.cafe .result-sheet .little-tip > p { font-size: 18px; font-weight: 500; line-height: 1.9; margin: 0; }
.cafe .result-sheet .share-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(120deg, #60734f, #465a3e); }
.cafe .result-sheet .share-icon { flex-shrink: 0; }
.cafe .result-sheet .share-status { font-size: 14px; line-height: 1.8; margin: 12px 0 0; }
.cafe .result-sheet .share-status:empty { display: none; }
.cafe .result-sheet .ogp-link { display: block; font-family: var(--serif); font-size: 15px; line-height: 1.9; min-height: 44px; padding: 20px 0 24px; }
.cafe .result-sheet .secondary { display: inline-flex; width: auto; align-items: center; justify-content: center; min-height: 48px; margin: 12px auto 0; padding: 8px 16px; background: transparent; color: var(--accent); font-size: 16px; text-decoration: underline; text-underline-offset: 6px; border-radius: 4px; }
.cafe .copy-label, .cafe .copy-label textarea { font-size: 16px; line-height: 1.8; }
.cafe .error-page { max-width: 640px; margin: 0 auto; padding: 56px 24px; font-size: 16px; }
.cafe .error-page h1 { font-family: var(--serif); font-size: 26px; line-height: 1.8; }
.cafe .error-page p { font-size: 16px; }
.cafe .error-page a { display: inline-flex; align-items: center; min-height: 48px; }
@media (max-width: 640px) {
  body.cafe .experience { padding: 24px 16px 40px; }
  body.cafe .result-experience .result-sheet { padding: 36px 24px 40px; }
  .cafe .sheet .intro { font-size: 16px; }
  .cafe-entry-visual { gap: 20px; margin-top: 0; margin-bottom: 28px; }
  .cafe-entry-visual .hero-art { height: 224px; }
  .cafe-sign-prefix { font-size: 16px; margin-left: 4px; }
  .cafe-sign-name { font-size: 28px; }
  .cafe .primary { min-height: 60px; font-size: 18px; }
  .cafe-master { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
  .cafe-master-speech { grid-row: 1; padding: 20px 18px; }
  .cafe-master-speech::before { left: auto; right: 52px; top: auto; bottom: -8px; transform: rotate(-45deg); }
  .cafe-master-portrait { grid-row: 2; justify-self: end; width: 112px; margin: 14px 10px 0 0; }
  .cafe .quiz-sheet h1 { font-size: 24px; }
  .cafe .option { font-size: 16px; padding: 18px 12px; }
  .cafe .result-sheet .result-art { height: 218px; margin: 24px 0 28px; }
  .cafe .result-sheet h1.result-name { font-size: 30px; }
  .cafe .result-sheet .result-tag { font-size: 17px; margin-bottom: 28px; }
  .cafe .result-sheet .result-message { font-size: 16px; }
  .cafe .result-sheet .result-details { gap: 12px; }
  .cafe .result-sheet .result-details > div { padding: 22px 10px; }
  .cafe .result-sheet .result-details strong { font-size: 16px; }
  .cafe .result-sheet .little-tip { padding: 30px 16px 24px; }
  .cafe .result-sheet .little-tip > p { font-size: 17px; }
  .cafe .result-sheet .share-button { gap: 10px; padding-inline: 12px; }
  .cafe .result-sheet .ogp-link { font-size: 14px; }
}
@media (max-width: 370px) {
  body.cafe .experience { padding-inline: 12px; }
  body.cafe .result-experience .result-sheet { padding-inline: 18px; }
  .cafe-entry-visual { gap: 18px; }
  .cafe-entry-visual .hero-art { height: 200px; }
  .cafe-sign-name { font-size: 26px; }
  .cafe .result-sheet h1.result-name { font-size: 28px; }
  .cafe .result-sheet .result-details { grid-template-columns: 1fr; gap: 16px; }
  .cafe .result-sheet .share-button { font-size: 16px; }
}
