/* ============================================================
   シャトー覚醒ブリアン 公式HP — Main Stylesheet
   2026 Redesign v2 · Keep all gimic selectors intact
   ============================================================ */

:root {
  --bg:       #0c0510;
  --bg-deep:  #060208;
  --paper:    #e8d9aa;
  --paper-dim:#d4c088;
  --paper-old:#b89850;
  --ink:      #1a0e08;
  --muted:    #6a5540;
  --gold:     #a07820;
  --gold-lt:  #c8a030;
  --gold-pale:#e8c860;
  --red:      #8a0f1a;
  --red-br:   #c01828;
  --stamp:    #b8182a;
  --purple:   #2a0e35;
  --line:     rgba(80,50,10,.48);
  --gold-dark:#6f5017;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN","Yu Mincho","YuMincho",Georgia,serif;
  background:
    radial-gradient(circle at 50% -8%, rgba(230,178,76,.16), transparent 25rem),
    radial-gradient(circle at 12% 18%, rgba(128,14,38,.30), transparent 24rem),
    radial-gradient(circle at 88% 30%, rgba(74,8,88,.22), transparent 26rem),
    repeating-linear-gradient(115deg, rgba(232,190,82,.03) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #140407 0%, #090205 48%, #16050d 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,.03)  25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.022) 25%, transparent 25%);
  background-size: 26px 26px;
  opacity: .2;
}

a { color: #7b1133; }

/* ===== NOTICE BAR ===== */
.notice-bar {
  background: #6a0b15;
  border-bottom: 1px solid rgba(180,140,30,.55);
  color: #ffd8a0;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 5px 0;
  text-align: center;
}
.notice-bar a { color: #ffd8a0; text-decoration: underline; }

/* ===== HEADER ===== */
.site-header {
  background: #120716;
  border-bottom: 3px double var(--gold);
  box-shadow: 0 5px 0 rgba(0,0,0,.28);
}

.header-inner {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0 0;
}

.header-top-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}

.brand {
  display: block;
  color: #f2d884;
  text-decoration: none;
  text-shadow: 0 1px 0 #000, 0 0 9px rgba(179,138,44,.4);
  letter-spacing: .04em;
}
.brand-title {
  display: block;
  font-size: clamp(18px,2.6vw,29px);
  font-weight: 700;
}
.brand-subtitle {
  display: block;
  margin-top: 3px;
  color: rgba(255,248,232,.65);
  font-size: 11px;
  letter-spacing: .06em;
}

.header-meta {
  text-align: right;
  color: rgba(240,210,140,.75);
  font-size: 11px;
  line-height: 1.6;
}
.header-phone {
  font-size: 17px;
  font-weight: 700;
  color: #f2d884;
  letter-spacing: .05em;
}
.header-counter {
  font-size: 10px;
  color: rgba(240,210,140,.6);
}

/* ===== NAV ===== */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid rgba(179,138,44,.32);
}
.main-nav a {
  display: block;
  padding: 9px 16px;
  color: #ead9aa;
  text-decoration: none;
  border-right: 1px solid rgba(179,138,44,.25);
  font-size: 13px;
  letter-spacing: .06em;
}
.main-nav a:hover { background: rgba(255,248,232,.07); }
.main-nav a.current { background: rgba(139,15,26,.35); color: #f2d884; }

/* ===== LAYOUT ===== */
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 272px;
  gap: 16px;
  width: min(1200px, calc(100% - 24px));
  margin: 20px auto 44px;
}
.layout-wide { grid-template-columns: 1fr; }

.main-panel {
  background: rgba(255,247,229,.96);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(0,0,0,.2), 0 16px 40px rgba(0,0,0,.36);
  min-height: 60vh;
  padding: 18px 20px 34px;
}
.sidebar {
  align-self: start;
  background: rgba(255,248,232,.93);
  border: 1px solid rgba(160,120,32,.55);
  box-shadow: 4px 4px 0 rgba(0,0,0,.18);
  padding: 10px;
}
.widget {
  background: #fff8e8;
  border: 1px solid var(--line);
  padding: 10px 12px;
  margin-bottom: 12px;
}
.widget:last-child { margin-bottom: 0; }
.widget h2, .widget-title {
  margin: 0 0 9px;
  padding: 5px 8px;
  color: #f5ddb0;
  background: #2b1438;
  border-left: 5px solid var(--gold);
  font-size: 13px;
}
.side-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.8;
  font-size: 13px;
}
.search-row { display: flex; gap: 5px; }
.search-row input {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid var(--line);
  background: #fffdf4;
  font: inherit;
  font-size: 13px;
}

/* ===== SECTION HEADING ===== */
.page-title, .section-heading {
  margin: 0 0 16px;
  padding: .5em .75em;
  color: #f5ddb0;
  background: linear-gradient(90deg, #2b1438 0%, #4b1e4f 58%, #2a112c 100%);
  border-left: 9px solid var(--gold);
  border-bottom: 2px solid #7d5f1e;
  text-shadow: 0 1px 0 #000;
  font-size: clamp(19px,2.5vw,27px);
  letter-spacing: .05em;
}
.section {
  margin: 20px 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 4px 4px 0 rgba(56,24,60,.14);
}

/* ===== BUTTONS ===== */
.occult-button {
  position: relative;
  display: inline-block;
  min-width: 220px;
  padding: 13px 34px;
  background: linear-gradient(180deg, #b1122e 0%, #6f0b20 100%);
  border: 2px solid #f1d170;
  border-radius: 2px;
  color: #fff6db;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 4px 4px 0 rgba(0,0,0,.3);
  cursor: pointer;
  font: inherit;
}
.occult-button:hover {
  transform: translate(1px,1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 2px 2px 0 rgba(0,0,0,.34);
}
.ghost-button {
  min-width: 150px;
  background: #2b1438;
}
.small-button {
  border: 1px solid var(--gold);
  background: #6f0b20;
  color: #fff8e8;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 22px;
}

/* ===== HERO (TOP page) ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px,260px) 1fr;
  gap: 22px 28px;
  align-items: center;
  min-height: 400px;
  margin: -2px -2px 22px;
  padding: 54px 28px 30px;
  overflow: hidden;
  color: #fff4d7;
  background:
    linear-gradient(90deg, rgba(18,6,28,.95), rgba(45,15,60,.9)),
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 2px,
      transparent 2px, transparent 18px);
  border: 3px double var(--gold);
  box-shadow: inset 0 0 60px rgba(0,0,0,.58), 0 9px 0 rgba(0,0,0,.16);
}
.hero::before {
  content: "シャトー覚醒ブリアン 公式HP";
  position: absolute;
  left: 24px; top: 16px;
  color: rgba(242,216,132,.5);
  font-size: 12px;
  letter-spacing: .08em;
}
.hero::after {
  content: "人生と運命の流れを確定させる覚醒鑑定";
  position: absolute;
  right: 22px; bottom: 16px;
  color: rgba(255,248,232,.5);
  font-size: 11px;
  letter-spacing: .04em;
}
.brian-portrait {
  width: 100%;
  max-width: 245px;
  grid-row: 1 / span 9;
  justify-self: center;
  background: #1b111d;
  border: 7px solid #26122c;
  outline: 3px double var(--gold);
  box-shadow: 0 0 0 1px #000, 8px 9px 0 rgba(0,0,0,.28);
  filter: contrast(1.06) saturate(.88);
  cursor: default;
  display: block;
}
.hero h1 {
  margin: 0 0 8px;
  color: #f8e6ad;
  font-size: clamp(26px,4vw,46px);
  line-height: 1.12;
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(179,138,44,.44);
}
.hero p {
  margin: 0 0 6px;
  color: #fff8e8;
  font-size: 15px;
  line-height: 1.8;
  text-shadow: 0 1px 0 #000;
}
.hero .hero-lead {
  margin-top: 14px;
  padding-top: 12px;
  color: #f0d786;
  border-top: 1px dotted rgba(240,215,134,.32);
  font-size: 14px;
}
.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.hero-badge {
  padding: 4px 10px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(160,120,32,.45);
  border-top: 2px solid rgba(160,120,32,.6);
  color: var(--gold-lt);
  font-size: 11px;
  letter-spacing: .18em;
}

/* ===== SERVICE CARDS ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 18px 0;
}
.service-card {
  padding: 16px;
  background: #fff8e8;
  border: 1px solid var(--line);
  box-shadow: 3px 3px 0 rgba(0,0,0,.12);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  margin: -16px -16px 12px;
}
.service-card h3 {
  margin: 0 0 7px;
  color: #591a5f;
  font-size: 15px;
  border-left: 5px solid var(--red);
  padding-left: 8px;
}
.service-card p { margin: 0; font-size: 13px; line-height: 1.7; color: #3a1f3a; }
.service-card .card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

/* ===== VOICE ===== */
.voice {
  padding: 10px 0 12px;
  border-bottom: 1px dotted rgba(110,80,22,.32);
  font-size: 14px;
  line-height: 1.8;
}
.voice:last-child { border-bottom: 0; }
.voice cite { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-style: normal; }

/* ===== NEWS LIST ===== */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dotted rgba(110,80,22,.3);
  font-size: 13px;
  align-items: baseline;
}
.news-list li:last-child { border-bottom: 0; }
.news-date { color: var(--red); font-weight: 700; font-size: 12px; }
.news-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  margin-left: 5px;
  vertical-align: middle;
}

/* ===== SIDEBAR LOCK BOX ===== */
.sidebar-lock-box {
  background: #1a0e22;
  border: 1px solid rgba(160,120,32,.55);
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #f8e6c0;
  text-align: center;
}
.sidebar-lock-box h3 {
  margin: 0 0 6px;
  color: var(--gold-lt);
  font-size: 12px;
  letter-spacing: .12em;
  border-bottom: 1px solid rgba(160,120,32,.35);
  padding-bottom: 5px;
}
.sidebar-lock-icon { font-size: 22px; margin: 4px 0; display: block; }
.sidebar-lock-code {
  font-size: 20px;
  font-weight: 700;
  color: #f2d884;
  letter-spacing: .18em;
  display: block;
  margin: 4px 0;
  text-shadow: 0 0 8px rgba(240,200,50,.4);
}
.sidebar-lock-desc { font-size: 10px; color: rgba(240,210,150,.6); line-height: 1.5; }
.sidebar-lock-link {
  display: inline-block;
  margin-top: 7px;
  padding: 5px 14px;
  background: #6a0b15;
  border: 1px solid rgba(240,200,80,.4);
  color: #ffd8a0;
  font-size: 11px;
  text-decoration: none;
  letter-spacing: .08em;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line);
}
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 5px; }

/* ===== INPUT ===== */
.input {
  display: block;
  width: 100%;
  padding: .65em .85em;
  color: var(--ink);
  background: #fffdf4;
  border: 1px solid rgba(110,80,22,.54);
  border-bottom: 2px solid rgba(110,80,22,.6);
  font: inherit;
  font-size: 15px;
  margin-bottom: 1rem;
}
.input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(160,120,32,.15);
}
textarea.input { resize: vertical; min-height: 80px; }

/* ===== FORM BUTTON ===== */
.form-button {
  display: block;
  width: 100%;
  padding: .8em;
  color: rgba(245,221,176,.42);
  background: #2b1438;
  border: 1px solid rgba(179,138,44,.42);
  font: inherit;
  letter-spacing: .16em;
  cursor: default;
}
.form-button.ready,
.form-button:not(:disabled) {
  color: #f5ddb0;
  border-color: var(--gold);
  cursor: pointer;
}

/* ===== SECRET DOT (hidden trigger) ===== */
.secret-dot {
  display: inline-block;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(184,24,42,.34);
  background:
    radial-gradient(circle at 38% 42%, rgba(184,24,42,.62) 0 18%, transparent 20%),
    radial-gradient(circle at 55% 55%, rgba(184,24,42,.18), rgba(184,24,42,.04) 58%, transparent 60%);
  box-shadow: 0 0 0 1px rgba(218,170,70,.08);
  opacity: .48;
  user-select: none;
  touch-action: none;
  cursor: pointer;
  flex-shrink: 0;
}
.secret-dot.brn-secret-on,
.secret-dot.secret-ok {
  background:
    radial-gradient(circle at 50% 56%, rgba(94,6,15,.72) 0 22%, rgba(120,12,24,.18) 24% 58%, transparent 60%);
  border-color: rgba(90,8,16,.42);
  opacity: .64;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.45);
  transform: translateY(2px) scale(.94);
}

/* ===== ACCIDENT FLASH ===== */
.accident {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: none;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255,255,255,.78), transparent 18%),
    linear-gradient(90deg, rgba(120,0,20,.72), transparent 44%, rgba(120,0,20,.72)),
    #050105;
  mix-blend-mode: screen;
  animation: flash .92s steps(3,end);
}
body.accident-on .accident { display: block; }
@keyframes flash {
  0%   { opacity: 0; }
  18%  { opacity: 1; }
  38%  { opacity: .18; }
  54%  { opacity: .82; }
  100% { opacity: 0; }
}

/* ===== ABYSS OVERLAY (compatibility keep) ===== */
.abyss-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1.5rem;
  color: #e8daf0;
  text-align: center;
  background: #09060f;
  transition: opacity .7s ease;
}
body.skip-abyss .abyss-overlay { display: none !important; }
.abyss-overlay[aria-hidden="true"] { display: none; }

/* ===== PHONE MODAL / VIDEO CALL (gimic – keep intact) ===== */
.phone-modal,
.video-call {
  position: fixed; inset: 0; z-index: 10000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78);
}
.phone-modal[aria-hidden="false"],
.video-call[aria-hidden="false"] { display: flex; }

.call-card, .video-frame {
  width: min(92vw, 390px);
  padding: 24px;
  text-align: center;
  color: #fff;
  background: #0d0d10;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.58);
}
.call-avatar {
  width: 94px; height: 94px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.22);
}
.call-name { margin-top: 12px; font-size: 20px; }
.call-type, .call-status { color: rgba(255,255,255,.6); font-size: 14px; }
.call-actions {
  display: flex; justify-content: center;
  gap: 52px; margin-top: 28px;
}
.call-button {
  width: 72px; height: 72px;
  border: 0; border-radius: 50%;
  color: #fff; font-size: 24px; cursor: pointer;
}
.decline { background: #e33b3b; }
.decline:disabled { cursor: not-allowed; opacity: .85; }
.accept { background: #20c563; }
.video-frame { width: min(92vw, 430px); padding: 12px; }
.video-frame video {
  display: block; width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}
.hangup {
  display: none; margin-top: 12px;
  padding: 10px 22px; border: 0; border-radius: 999px;
  color: #fff; background: #e33b3b; cursor: pointer; font: inherit;
}
.call-lock { overflow: hidden; }

/* ===== PASSWORD GATE ===== */
.dark-panel {
  color: #fff8e8;
  background: rgba(14,6,18,.94) !important;
}
.password-gate {
  max-width: 440px;
  margin: 8vh auto;
  padding: 28px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff8e8, #ead7b7);
  border: 2px solid var(--gold);
  box-shadow: 6px 6px 0 rgba(0,0,0,.32);
}
.password-gate-title {
  margin-bottom: 16px;
  color: var(--purple);
  font-weight: 700;
}
.password-error { min-height: 1.5em; margin-top: 10px; color: var(--red); font-size: 13px; }
.secret-ok { color: var(--red); transform: translateY(2px); }

/* ===== THREAD PAGE ===== */
.thread-page {
  color: #222;
  background: #f5f0e5 !important;
  border-color: #99845b !important;
  font-family: "MS PGothic","Hiragino Kaku Gothic ProN",sans-serif;
}
.bbs-bar { padding: 7px 10px; color: #fff; background: #28446d; font-weight: 700; font-size: 13px; }
.thread-title { padding: 10px 12px; background: #ded6c6; border: 1px solid #b6aa94; font-size: 14px; }
.post { padding: 10px 0; border-bottom: 1px solid #d8d0c0; font-size: 13px; }
.post-meta { color: #0b8a2a; font-weight: 700; font-size: 12px; margin-bottom: 4px; }

/* ===== RESULT AREA (old - keep for compat) ===== */
.result-area {
  text-align: center;
  background: #130817;
  border: 3px double var(--gold);
  padding: 18px;
}
.result-image {
  max-width: min(100%, 520px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 36px rgba(0,0,0,.4);
}

/* ===== FOOTER ===== */
.site-footer {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto 22px;
  color: rgba(255,248,232,.5);
  text-align: center;
  font-size: 12px;
  border-top: 1px solid rgba(179,138,44,.25);
  padding-top: 14px;
}

/* ================================================================
   NEW BRIAN DESIGN COMPONENTS (2026)
   ================================================================ */

/* ===== FADE-IN ANIMATION ===== */
@keyframes brnFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brn-fade-in { animation: brnFadeUp .8s ease forwards; }

/* ===== STEP DOTS (spinner substitute) ===== */
@keyframes brnPulse {
  0%, 100% { opacity: .3; }
  50%       { opacity: 1; }
}
.brn-processing-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 3px;
  animation: brnPulse 1.2s ease infinite;
}
.brn-processing-dot:nth-child(2) { animation-delay: .2s; }
.brn-processing-dot:nth-child(3) { animation-delay: .4s; }

/* ===== FORM PANEL (uranai) ===== */
.brn-uranai-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  align-items: start;
}
.brn-form-panel {
  background: linear-gradient(180deg, #1e0c28 0%, #160820 100%);
  border: 1px solid rgba(160,120,32,.55);
  border-top: 3px solid var(--gold);
  box-shadow: inset 0 0 40px rgba(0,0,0,.35), 5px 5px 0 rgba(0,0,0,.25);
  padding: 24px 22px 28px;
}
.brn-form-heading {
  color: var(--gold-lt);
  font-size: 13px;
  letter-spacing: .22em;
  margin: 0 0 6px;
}
.brn-form-title {
  color: var(--gold-pale);
  font-size: clamp(18px,2.2vw,24px);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(160,120,32,.35);
  text-shadow: 0 0 12px rgba(200,160,40,.3);
}
.brn-field { margin-bottom: 16px; }
.brn-field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(240,210,140,.8);
  font-size: 12px;
  letter-spacing: .14em;
}
.brn-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  color: #111;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(160,120,32,.4);
  border-bottom: 2px solid rgba(160,120,32,.55);
  font: inherit;
  font-size: 15px;
}
.brn-input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.1);
}
.brn-input::placeholder { color: rgba(200,170,100,.4); }
.brn-input option { background: #1e0c28; color: var(--paper); }

.brn-date-row { display: flex; gap: 6px; }
.brn-date-row select { flex: 1; }
.brn-date-row select:last-child { flex: .7; }

textarea.brn-input { min-height: 72px; resize: vertical; }

.brn-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(160,120,32,.3);
  margin-bottom: 18px;
  font-size: 12px;
}
.brn-code-label { color: rgba(200,160,80,.65); letter-spacing: .1em; white-space: nowrap; }
.brn-code-value {
  font-family: "Courier New", monospace;
  color: var(--gold-pale);
  letter-spacing: .12em;
  font-size: 13px;
}

.brn-start-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: linear-gradient(180deg, #9a1128 0%, #600a1c 60%, #3d0612 100%);
  border: 1px solid var(--gold-lt);
  border-bottom: 3px solid rgba(100,60,10,.45);
  color: rgba(240,210,160,.45);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  cursor: default;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 3px 4px 0 rgba(0,0,0,.28);
  transition: filter .12s, transform .1s;
}
.brn-start-btn:not(:disabled),
.brn-start-btn.ready {
  color: #fff6d8;
  cursor: pointer;
}
.brn-start-btn:not(:disabled):hover { filter: brightness(1.1); transform: translateY(-1px); }
.brn-start-btn:disabled { opacity: .55; }

/* ===== PORTRAIT PANEL (right of form) ===== */
.brn-portrait-panel {
  position: sticky;
  top: 20px;
}
.brn-portrait-img {
  display: block;
  width: 100%;
  border: 6px solid #1a082a;
  outline: 2px solid var(--gold);
  box-shadow: 8px 10px 0 rgba(0,0,0,.3), 0 0 0 1px #000;
  filter: contrast(1.08) saturate(.85) sepia(.06);
}
.brn-caution-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: #1a0e22;
  border: 1px solid var(--gold);
  border-left: 4px solid var(--red);
}
.brn-caution-box strong {
  display: block;
  color: var(--gold-pale);
  font-size: 13px;
  margin-bottom: 5px;
}
.brn-caution-box p {
  margin: 0;
  color: rgba(240,210,160,.75);
  font-size: 12px;
  line-height: 1.7;
}

/* ===== 特殊鑑定紙 ===== */
.brn-kantei-section {
  margin-top: 28px;
}
.brn-section-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(160,120,32,.7);
  margin-bottom: 12px;
}
.brn-paper-sheet {
  position: relative;
  margin: 0 auto;
  max-width: 680px;
  padding: 28px 30px 32px;
  background:
    radial-gradient(circle at 18% 82%, rgba(120,60,10,.14), transparent 40%),
    radial-gradient(circle at 82% 18%, rgba(80,40,5,.1),  transparent 35%),
    repeating-linear-gradient(180deg,
      transparent, transparent 27px,
      rgba(80,50,10,.06) 27px, rgba(80,50,10,.06) 28px),
    linear-gradient(162deg, #f2e4be 0%, #e2cc98 35%, #d4b870 65%, #c8a858 100%);
  border: 1px solid rgba(80,50,10,.7);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 0 0 3px rgba(60,30,5,.35),
    8px 10px 0 rgba(0,0,0,.25),
    0 20px 40px rgba(0,0,0,.2);
  overflow: hidden;
}
.brn-paper-sheet::before {
  content: "極秘";
  position: absolute;
  right: 22px; bottom: 18px;
  font-size: 80px;
  font-weight: 900;
  color: rgba(140,15,25,.04);
  transform: rotate(-12deg);
  pointer-events: none;
  user-select: none;
  font-family: serif;
}

.brn-paper-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(80,50,10,.3);
}
.brn-paper-doctitle {
  font-size: 20px;
  font-weight: 700;
  color: #1a0e08;
  letter-spacing: .12em;
}
.brn-paper-doctitle small {
  display: block;
  font-size: 11px;
  color: rgba(80,40,10,.6);
  margin-top: 3px;
  letter-spacing: .18em;
}
.brn-paper-code-disp {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: rgba(80,40,10,.7);
  text-align: right;
  line-height: 1.6;
}

.brn-paper-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.brn-paper-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(80,50,10,.25);
}
.brn-paper-key {
  font-size: 12px;
  color: rgba(80,40,10,.65);
  letter-spacing: .08em;
  white-space: nowrap;
  min-width: 6em;
}
.brn-paper-val {
  font-size: 16px;
  font-weight: 700;
  color: #1a0e08;
  letter-spacing: .05em;
}
.brn-paper-val.lg { font-size: 22px; }

.brn-paper-measures {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(80,50,10,.22);
}
.brn-paper-measure {
  text-align: center;
  padding: 6px 4px;
  background: rgba(80,40,5,.06);
  border: 1px solid rgba(80,50,10,.2);
  font-size: 11px;
  color: rgba(60,30,5,.7);
}
.brn-paper-measure strong {
  display: block;
  font-size: 17px;
  color: #1a0e08;
  margin-top: 2px;
}

/* ===== STAMPS ===== */
.brn-stamp-area {
  position: absolute;
  right: 22px; top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.brn-stamp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 3px solid var(--stamp);
  color: var(--stamp);
  font-size: 16px;
  font-weight: 900;
  font-family: serif;
  letter-spacing: .04em;
  transform: rotate(-9deg);
  opacity: .82;
  box-shadow: inset 0 0 0 2px var(--stamp), 0 0 0 1px rgba(180,20,30,.15);
  position: relative;
  text-shadow: 1px 1px 0 rgba(180,20,30,.25);
  line-height: 1.1;
  text-align: center;
}
.brn-stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--stamp);
  border-radius: 50%;
  opacity: .5;
}
.brn-stamp-sq {
  border-radius: 4px;
  transform: rotate(8deg);
  width: 56px; height: 56px;
  font-size: 28px;
}
.brn-stamp-sm {
  width: 52px; height: 52px;
  font-size: 13px;
  transform: rotate(4deg);
}

/* ===== 波動照合票 ===== */
.brn-readings-section {
  margin-top: 24px;
}
.brn-readings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.brn-readings-title {
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink);
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(80,50,10,.4);
}
.brn-readings-title small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .1em;
  margin-top: 2px;
}

.brn-hado-wrap {
  background:
    radial-gradient(circle at 85% 12%, rgba(185,145,50,.07), transparent 40%),
    linear-gradient(180deg, #f5e8c8, #e2ce98 70%, #d4b870);
  border: 1px solid rgba(80,50,10,.6);
  border-top: 3px solid rgba(80,50,10,.5);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 4px 5px 0 rgba(0,0,0,.18);
  padding: 14px 14px 10px;
}
.brn-hado-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.brn-hado-table tr { border-bottom: 1px dotted rgba(80,50,10,.25); }
.brn-hado-table tr:last-child { border-bottom: 0; }
.brn-hado-table td { padding: 6px 4px; color: var(--ink); }
.brn-hado-key { font-weight: 700; font-size: 11px; color: rgba(60,30,5,.7); letter-spacing: .08em; width: 6em; }
.brn-hado-val { text-align: right; font-size: 13px; font-weight: 700; padding-right: 6px; }
.brn-hado-censor { font-family: monospace; letter-spacing: .1em; color: rgba(30,14,8,.35); }

.brn-rating-badge {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  border: 1px solid currentColor;
}
.brn-rating-yu   { color: #0a5e1f; background: rgba(10,94,31,.1); }
.brn-rating-ryo  { color: #2a4a8a; background: rgba(42,74,138,.1); }
.brn-rating-ka   { color: #7a5010; background: rgba(122,80,16,.1); }
.brn-rating-sho  { color: #7a3010; background: rgba(122,48,16,.1); }
.brn-rating-jyaku{ color: #8a0f1a; background: rgba(138,15,26,.1); }
.brn-rating-kyo  { color: #6a0508; background: rgba(106,5,8,.14); font-weight: 900; }

/* ===== 印影分布図 ===== */
.brn-seal-wrap {
  background: linear-gradient(180deg, #1c0b28 0%, #120618 100%);
  border: 1px solid rgba(160,120,32,.5);
  border-top: 3px solid rgba(160,120,32,.45);
  box-shadow: inset 0 0 30px rgba(0,0,0,.4), 4px 5px 0 rgba(0,0,0,.22);
  padding: 14px;
}
.brn-seal-svg {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}
.brn-seal-caption {
  text-align: center;
  font-size: 9px;
  color: rgba(160,120,32,.55);
  margin-top: 6px;
  letter-spacing: .14em;
}

/* ===== PREVIEW BOX ===== */
.brn-preview-box {
  margin-top: 18px;
  padding: 14px 16px;
  background: #1e0c28;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--red);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  color: rgba(240,210,160,.82);
  font-size: 13px;
  line-height: 1.8;
}
.brn-preview-box strong {
  display: block;
  color: var(--gold-pale);
  margin-bottom: 5px;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ===== SUBMIT ROW (uranai) ===== */
.brn-submit-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.brn-result-btn {
  min-height: 50px;
  padding: 12px 38px;
  background: linear-gradient(180deg, #9a1128 0%, #5e0818 60%, #3a0410 100%);
  border: 1px solid var(--gold-lt);
  border-bottom: 3px solid rgba(100,60,10,.45);
  color: #fff6d8;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 3px 4px 0 rgba(0,0,0,.28);
  transition: filter .12s, transform .1s;
}
.brn-result-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.brn-result-btn:active { transform: translateY(1px); }

/* ===== RESULT PAGE ===== */
.brn-result-header {
  text-align: center;
  padding: 24px 20px 20px;
  background:
    linear-gradient(180deg, #1c0a28 0%, #120618 100%);
  border: 1px solid var(--gold);
  border-top: 4px solid var(--gold);
  margin-bottom: 20px;
  box-shadow: inset 0 0 40px rgba(0,0,0,.5), 0 0 0 4px rgba(0,0,0,.2);
}
.brn-result-sup {
  display: block;
  font-size: 11px;
  letter-spacing: .3em;
  color: rgba(160,120,32,.65);
  margin-bottom: 8px;
}
.brn-result-name {
  display: block;
  font-size: clamp(46px,8vw,88px);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5), 0 0 30px rgba(200,30,40,.3);
  color: #f2d884;
}
.brn-result-name.bad  { color: #f2d884; }
.brn-result-name.good { color: #ffe8a0; text-shadow: 3px 3px 0 rgba(0,0,0,.5), 0 0 30px rgba(200,160,30,.4); }
.brn-result-sub {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(240,210,140,.65);
  letter-spacing: .12em;
}

/* ===== FORTUNE DOCUMENT ===== */
.brn-fortune-doc {
  position: relative;
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 22px 24px 24px;
  background:
    radial-gradient(circle at 15% 85%, rgba(120,60,10,.12), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(80,40,5,.09), transparent 35%),
    linear-gradient(162deg, #f4e8c4 0%, #e4d098 35%, #d8bc78 65%, #ccaa60 100%);
  border: 1px solid rgba(80,50,10,.65);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.65),
    0 0 0 3px rgba(60,30,5,.32),
    8px 10px 0 rgba(0,0,0,.22),
    0 20px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.brn-fortune-doc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg,
    transparent, transparent 30px,
    rgba(80,50,10,.04) 30px, rgba(80,50,10,.04) 31px);
  pointer-events: none;
}

.brn-fortune-doc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(80,50,10,.28);
  position: relative;
  z-index: 1;
}
.brn-fortune-doc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .1em;
}
.brn-fortune-doc-title small {
  display: block;
  font-size: 10px;
  color: rgba(60,30,5,.55);
  letter-spacing: .16em;
}
.brn-fortune-doc-code {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(60,30,5,.55);
  text-align: right;
}

.brn-fortune-items {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.brn-fortune-items li {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 6px;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(80,50,10,.22);
  font-size: 13px;
  align-items: baseline;
}
.brn-fortune-items li:last-child { border-bottom: 0; }
.brn-fi-key {
  color: rgba(60,30,5,.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.brn-fi-val {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.brn-fi-val.bad  { color: #7a0a18; }
.brn-fi-val.good { color: #0a4a1a; }
.brn-fi-val.kaiun {
  font-size: 16px;
  letter-spacing: .08em;
}

.brn-fortune-stamps {
  position: absolute;
  right: 16px;
  top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 2;
}

/* ===== BRIAN WORD ===== */
.brn-brian-word {
  max-width: 560px;
  margin: 0 auto 20px;
  padding: 18px 20px;
  background: rgba(18,8,26,.92);
  border: 1px solid rgba(160,120,32,.45);
  border-left: 5px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  color: rgba(240,215,165,.88);
  font-size: 14px;
  line-height: 2;
  position: relative;
}
.brn-brian-word::before {
  content: "ブリアンからの言葉";
  display: block;
  color: var(--gold-lt);
  font-size: 11px;
  letter-spacing: .22em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(160,120,32,.3);
}
.brn-brian-sig {
  display: block;
  text-align: right;
  margin-top: 12px;
  color: rgba(200,165,80,.65);
  font-size: 12px;
  font-style: italic;
  letter-spacing: .1em;
}

/* ===== ACTION BOX ===== */
.brn-action-box {
  max-width: 560px;
  margin: 0 auto 22px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 4px 4px 0 rgba(56,24,60,.14);
}
.brn-action-box h3 {
  margin: 0 0 10px;
  padding: .45em .7em;
  color: #f5ddb0;
  background: linear-gradient(90deg, #2b1438, #4a1e50 58%, #2a112c);
  border-left: 7px solid var(--gold);
  border-bottom: 2px solid #7d5f1e;
  font-size: 14px;
  letter-spacing: .06em;
}
.brn-action-box p { margin: 8px 0 0; font-size: 13px; line-height: 1.8; color: #3a1f3a; }
.brn-action-items { list-style: none; margin: 8px 0 0; padding: 0; }
.brn-action-items li {
  padding: 5px 0 5px 16px;
  border-bottom: 1px dotted rgba(80,50,10,.2);
  font-size: 12px;
  color: #3a1f3a;
  position: relative;
}
.brn-action-items li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 8px;
  top: 8px;
}

/* ===== RESULT CTA ===== */
.brn-result-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dotted rgba(80,50,10,.35);
}

/* ===== GATE LOCK (thread-lock redesign) ===== */
.brn-gate-outer {
  max-width: 580px;
  margin: 28px auto;
}
.brn-gate-header-bar {
  background: #1a0e22;
  border: 1px solid rgba(160,120,32,.55);
  border-bottom: 0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brn-gate-header-bar .brn-gate-system-id {
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: rgba(160,120,32,.65);
  letter-spacing: .12em;
}
.brn-gate-box {
  background: linear-gradient(180deg, #fff8e8 0%, #ead7b0 100%);
  border: 2px solid var(--gold);
  box-shadow:
    6px 6px 0 rgba(0,0,0,.3),
    inset 0 0 0 1px rgba(255,255,255,.6);
  padding: 28px 28px 24px;
  text-align: center;
}
.brn-gate-lock-icon {
  font-size: 36px;
  display: block;
  margin-bottom: 8px;
  filter: sepia(1) saturate(.5);
}
.brn-gate-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .12em;
  margin: 0 0 6px;
  border-bottom: 1px double rgba(80,50,10,.4);
  padding-bottom: 8px;
}
.brn-gate-desc {
  font-size: 13px;
  color: rgba(40,20,8,.7);
  margin: 8px 0 18px;
  line-height: 1.7;
}
.brn-gate-input {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 12px;
  padding: 11px 14px;
  text-align: center;
  font: inherit;
  font-size: 18px;
  font-family: "Courier New", monospace;
  letter-spacing: .2em;
  color: var(--ink);
  background: #fffdf4;
  border: 1px solid rgba(80,50,10,.55);
  border-bottom: 2px solid rgba(80,50,10,.65);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.07);
}
.brn-gate-input:focus { outline: none; border-color: var(--gold); }
.brn-gate-btn {
  display: inline-block;
  padding: 10px 36px;
  background: linear-gradient(180deg, #8a1020 0%, #5a0814 100%);
  border: 1px solid var(--gold-lt);
  color: #fff6d8;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,.28);
}
.brn-gate-btn:hover { filter: brightness(1.1); }
.brn-gate-error {
  min-height: 1.4em;
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
}

.brn-gate-info {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dotted rgba(80,50,10,.35);
  font-size: 11px;
  color: rgba(60,30,5,.55);
  font-family: "Courier New", monospace;
  letter-spacing: .1em;
}
.brn-gate-info span { display: flex; align-items: center; gap: 5px; }

.brn-gate-triangle {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}
.brn-triangle-svg { width: 52px; opacity: .7; }

.brn-gate-notice {
  margin-top: 20px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 3px 3px 0 rgba(0,0,0,.14);
  padding: 14px 16px;
  font-size: 12px;
  color: #3a1f3a;
  line-height: 1.8;
  text-align: left;
}
.brn-gate-notice h4 {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 12px;
  letter-spacing: .08em;
  border-left: 4px solid var(--red);
  padding-left: 6px;
}
.brn-gate-notice p { margin: 0 0 10px; }
.brn-gate-notice p:last-child { margin-bottom: 0; }
.brn-gate-notice ul { margin: 4px 0 0; padding-left: 1.4em; }
.brn-gate-notice ul li { margin-bottom: 4px; }

.brn-gate-activity {
  margin-top: 12px;
  background: #f5f0e5;
  border: 1px solid rgba(120,90,40,.4);
  padding: 10px 14px;
  font-size: 11px;
  font-family: "MS PGothic","Hiragino Kaku Gothic ProN",sans-serif;
  color: #333;
}
.brn-gate-activity h5 {
  margin: 0 0 6px;
  font-size: 11px;
  color: #28446d;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}
.brn-gate-activity-list { list-style: none; margin: 0; padding: 0; }
.brn-gate-activity-list li {
  padding: 3px 0;
  border-bottom: 1px dotted #ddd;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.brn-gate-activity-list li:last-child { border-bottom: 0; }
.brn-act-date { color: #888; font-size: 10px; }
.brn-act-name { color: #0b8a2a; }
.brn-act-status { color: #28446d; }

/* ===== PROCESSING STATE ===== */
.brn-processing {
  text-align: center;
  padding: 28px 20px;
  color: rgba(160,120,32,.75);
  font-size: 14px;
  letter-spacing: .14em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .hero { display: block; min-height: 0; }
  .brian-portrait { display: block; max-width: 200px; margin: 0 auto 18px; }
  .hero::after { position: static; display: block; margin-top: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .brn-uranai-grid { grid-template-columns: 1fr; }
  .brn-portrait-panel { position: static; }
  .brn-readings-grid { grid-template-columns: 1fr; }
  .brn-paper-body { grid-template-columns: 1fr; }
  .brn-paper-measures { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 600px) {
  .brn-fortune-stamps { position: static; flex-direction: row; margin: 10px 0; justify-content: flex-end; }
  .brn-result-name { font-size: clamp(38px,11vw,68px); }
}

/* ================================================================
   DESIGN REFINEMENTS v2 — モック精度向上
   ================================================================ */

/* ── 黒塗り（redaction） ── */
.brn-redacted {
  display: inline-block;
  background: #0a0508;
  color: #0a0508;
  border-radius: 1px;
  padding: 0 4px;
  user-select: none;
  letter-spacing: .05em;
  box-shadow: 0 1px 0 #0a0508;
  vertical-align: baseline;
}
.brn-redacted-block {
  display: block;
  background: #0a0508;
  color: #0a0508;
  border-radius: 1px;
  padding: 3px 6px;
  margin: 2px 0;
  user-select: none;
}

/* ── 波動照合票（結果ページ用、旧よりリッチ） ── */
.brn-ledger {
  position: relative; /* anchor for stamps + watermark */
  max-width: 660px;
  margin: 0 auto 22px;
  padding: 0;
  background:
    radial-gradient(ellipse at 20% 88%, rgba(100,55,10,.2), transparent 32%),
    radial-gradient(ellipse at 80% 15%, rgba(70,35,5,.14), transparent 28%),
    radial-gradient(ellipse at 50% 50%, rgba(90,50,8,.06), transparent 60%),
    repeating-linear-gradient(180deg,
      transparent, transparent 30px,
      rgba(80,50,10,.065) 30px, rgba(80,50,10,.065) 31px),
    linear-gradient(165deg,
      #f8eed8 0%, #eedd9c 20%, #e2ca82 42%,
      #d8bc70 62%, #ccaa5c 80%, #c4a04e 100%);
  border: 1px solid rgba(80,50,10,.68);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.55),
    0 0 0 1px rgba(60,30,5,.22),
    0 0 0 4px rgba(60,30,5,.12),
    10px 12px 0 rgba(0,0,0,.2),
    0 22px 44px rgba(0,0,0,.16);
  overflow: hidden;
}
/* 上辺の装飾帯 */
.brn-ledger::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    rgba(120,60,10,.4), rgba(160,100,20,.7), rgba(120,60,10,.4));
}
/* 全面の微細ノイズ風オーバーレイ */
.brn-ledger::after {
  content: "極秘";
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%) rotate(-5deg);
  font-size: 100px;
  font-weight: 900;
  font-family: serif;
  color: rgba(140,15,25,.035);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.brn-ledger-inner { padding: 20px 22px 22px; position: relative; z-index: 1; }

/* ledger header */
.brn-ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px double rgba(80,50,10,.35);
}
.brn-ledger-doctitle {
  font-size: 17px;
  font-weight: 700;
  color: #1a0e08;
  letter-spacing: .12em;
}
.brn-ledger-doctitle small {
  display: block;
  font-size: 9px;
  color: rgba(60,30,5,.52);
  letter-spacing: .18em;
  margin-top: 2px;
}
.brn-ledger-code {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(60,30,5,.55);
  text-align: right;
  line-height: 1.7;
}

/* fortune items (ledger rows) */
.brn-ledger-rows { list-style: none; margin: 0; padding: 0; }
.brn-ledger-rows li {
  display: flex;
  align-items: baseline;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(80,50,10,.16);
  position: relative;
}
.brn-ledger-rows li:last-child { border-bottom: 0; }
.brn-ledger-rows li::before {
  content: "";
  display: block;
  width: 3px;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  background: rgba(80,50,10,.1);
}
.brn-lk {
  min-width: 5.5em;
  font-size: 12px;
  font-weight: 700;
  color: rgba(60,30,5,.6);
  letter-spacing: .06em;
  padding-left: 8px;
}
.brn-lv {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  padding-left: 12px;
  border-left: 1px solid rgba(80,50,10,.2);
}
.brn-lv.bad  { color: #7a0a18; }
.brn-lv.good { color: #0a4a1a; }
.brn-lv.kaiun { font-size: 18px; letter-spacing: .08em; }
.brn-lv.neutral { color: #3a1f3a; }

/* 開運数 special row */
.brn-ledger-kaiun-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 8px 8px 4px;
  background: rgba(80,50,10,.07);
  border: 1px solid rgba(80,50,10,.2);
  border-left: 4px solid rgba(80,50,10,.35);
}

/* stamp float zone */
.brn-ledger-stamps {
  position: absolute;
  right: 18px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

/* ── 結果タイトル（モック準拠） ── */
.brn-result-header-v2 {
  text-align: center;
  padding: 20px 20px 18px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(130,60,160,.28), transparent 45%),
    radial-gradient(ellipse at 70% 100%, rgba(100,20,40,.22), transparent 40%),
    linear-gradient(180deg, #1e0a2e 0%, #130618 55%, #0e0412 100%);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  margin-bottom: 22px;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,.55),
    inset 0 -1px 0 rgba(160,120,32,.25),
    0 0 0 4px rgba(0,0,0,.22);
}
.brn-result-header-v2 .rh-breadcrumb {
  font-size: 11px;
  color: rgba(160,120,32,.55);
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.brn-result-header-v2 .rh-breadcrumb a { color: rgba(160,120,32,.55); text-decoration: none; }
.brn-result-header-v2 .rh-tag {
  display: block;
  font-size: 10px;
  letter-spacing: .28em;
  color: rgba(160,120,32,.6);
  margin-bottom: 6px;
}
.brn-result-header-v2 .rh-label {
  display: block;
  font-size: 12px;
  letter-spacing: .22em;
  color: rgba(240,210,140,.55);
  margin-bottom: 10px;
}
.brn-result-header-v2 .rh-name {
  display: block;
  font-size: clamp(52px,10vw,96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
  margin: 0 0 10px;
}
.brn-result-header-v2 .rh-name.bad {
  color: #f2d884;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5), 0 0 32px rgba(180,30,40,.35);
}
.brn-result-header-v2 .rh-name.good {
  color: #ffe890;
  text-shadow: 3px 3px 0 rgba(0,0,0,.5), 0 0 32px rgba(200,160,30,.42);
}
.brn-result-header-v2 .rh-sub {
  display: block;
  font-size: 13px;
  color: rgba(240,210,140,.62);
  letter-spacing: .1em;
  line-height: 1.7;
}

/* ── ブリアンの言葉（モック準拠） ── */
.brn-brian-word-v2 {
  max-width: 660px;
  margin: 0 auto 20px;
  padding: 18px 22px;
  background:
    linear-gradient(180deg, #1e0c2a 0%, #14071a 100%);
  border: 1px solid rgba(160,120,32,.42);
  border-left: 4px solid var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 4px 4px 0 rgba(0,0,0,.22);
  color: rgba(240,215,165,.88);
  font-size: 14px;
  line-height: 2;
  position: relative;
}
.brn-brian-word-v2 .bw-eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--gold-lt);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(160,120,32,.28);
}
.brn-brian-word-v2 .bw-body { display: block; }
.brn-brian-word-v2 .bw-sig {
  display: block;
  text-align: right;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dotted rgba(160,120,32,.25);
  font-size: 13px;
  color: rgba(200,165,80,.7);
  letter-spacing: .1em;
}
.brn-brian-word-v2 .bw-sig em { font-style: italic; }

/* ── 鑑定対処 / 吉の維持ボックス（モック準拠） ── */
.brn-action-box-v2 {
  max-width: 660px;
  margin: 0 auto 24px;
  background: linear-gradient(180deg, var(--paper), var(--paper-dim));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.72), 4px 4px 0 rgba(56,24,60,.14);
  overflow: hidden;
}
.brn-action-box-v2-head {
  padding: .55em .8em;
  background: linear-gradient(90deg, #2b1438 0%, #4b1e4f 58%, #2a112c 100%);
  border-left: 8px solid var(--gold);
  border-bottom: 2px solid #7d5f1e;
  color: #f5ddb0;
  font-size: 14px;
  letter-spacing: .07em;
}
.brn-action-box-v2-body { padding: 14px 16px; }
.brn-action-box-v2-body p { margin: 0 0 8px; font-size: 13px; line-height: 1.8; color: #3a1f3a; }
.brn-action-box-v2-body ul { list-style: none; margin: 0; padding: 0; }
.brn-action-box-v2-body ul li {
  padding: 5px 0 5px 16px;
  border-bottom: 1px dotted rgba(80,50,10,.2);
  font-size: 12px; color: #3a1f3a;
  position: relative;
}
.brn-action-box-v2-body ul li::before {
  content: "◆"; position: absolute; left: 0; top: 8px;
  color: var(--red); font-size: 8px;
}
.brn-action-box-v2-body ul li:last-child { border-bottom: 0; }

/* ── CTAボタン行 ── */
.brn-result-cta-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dotted rgba(80,50,10,.3);
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}

/* ── スレロック 黒塗り強調 ── */
.brn-gate-classified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0a0508;
  color: #fff;
  font-size: 10px;
  font-family: "Courier New", monospace;
  letter-spacing: .14em;
  padding: 2px 8px;
  margin: 2px 4px;
  vertical-align: middle;
}

/* ── 占いページ：特殊鑑定紙（モック精度向上版） ── */
.brn-kantei-doc {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background:
    radial-gradient(ellipse at 20% 88%, rgba(100,55,10,.2), transparent 32%),
    radial-gradient(ellipse at 82% 14%, rgba(70,35,5,.14), transparent 28%),
    repeating-linear-gradient(180deg,
      transparent, transparent 28px,
      rgba(80,50,10,.06) 28px, rgba(80,50,10,.06) 29px),
    linear-gradient(165deg,
      #f8eeda 0%, #eedda0 22%, #e4cc84 44%,
      #d8be70 64%, #ccaa5a 84%, #c4a04c 100%);
  border: 1px solid rgba(80,50,10,.68);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.58),
    0 0 0 1px rgba(60,30,5,.22),
    0 0 0 5px rgba(60,30,5,.12),
    10px 12px 0 rgba(0,0,0,.22);
  overflow: hidden;
}
.brn-kantei-doc::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    rgba(140,20,30,.5), rgba(180,40,50,.8) 30%,
    rgba(160,30,40,.7) 70%, rgba(140,20,30,.5));
}
.brn-kantei-doc-inner { padding: 22px 24px 24px; position: relative; z-index: 1; }

/* doc header */
.brn-kantei-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px double rgba(80,50,10,.32);
}
.brn-kantei-doc-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a0e08;
  letter-spacing: .14em;
}
.brn-kantei-doc-title small {
  display: block;
  font-size: 10px;
  color: rgba(60,30,5,.5);
  letter-spacing: .2em;
  margin-top: 3px;
}
.brn-kantei-doc-meta {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: rgba(60,30,5,.55);
  text-align: right;
  line-height: 1.7;
}

/* doc body 2-col */
.brn-kantei-doc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.brn-kantei-doc-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dotted rgba(80,50,10,.22);
}
.brn-kd-key {
  font-size: 11px;
  color: rgba(60,30,5,.62);
  letter-spacing: .07em;
  white-space: nowrap;
  min-width: 5.5em;
}
.brn-kd-val {
  font-size: 15px;
  font-weight: 700;
  color: #1a0e08;
  letter-spacing: .03em;
}
.brn-kd-val.lg { font-size: 22px; letter-spacing: .05em; }
.brn-kd-val.sm { font-size: 12px; }

/* measure grid */
.brn-kd-measures {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(80,50,10,.2);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.brn-kd-measure {
  text-align: center;
  padding: 6px 4px;
  background: rgba(80,40,5,.06);
  border: 1px solid rgba(80,50,10,.2);
  font-size: 10px;
  color: rgba(60,30,5,.65);
  line-height: 1.4;
}
.brn-kd-measure strong {
  display: block;
  font-size: 16px;
  color: #1a0e08;
  margin-top: 2px;
}

/* stamp zone on kantei doc */
.brn-kantei-stamps {
  position: absolute;
  right: 22px;
  top: 34px; /* after the red top band */
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 4;
}

/* ── 印影分布図（redesigned） ── */
.brn-inei-wrap {
  background: linear-gradient(180deg, #1c0b28 0%, #110518 100%);
  border: 1px solid rgba(160,120,32,.48);
  border-top: 3px solid rgba(160,120,32,.42);
  box-shadow: inset 0 0 28px rgba(0,0,0,.42), 4px 5px 0 rgba(0,0,0,.2);
  padding: 14px 14px 10px;
}
.brn-inei-svg { display: block; width: 100%; max-width: 220px; margin: 0 auto; }
.brn-inei-cap {
  text-align: center;
  font-size: 9px;
  color: rgba(160,120,32,.5);
  margin-top: 6px;
  letter-spacing: .12em;
}

/* ── TOP ページ ── */
.top-notice {
  background: linear-gradient(90deg, #6a0b15 0%, #8a1020 50%, #6a0b15 100%);
  border-bottom: 1px solid rgba(180,140,30,.4);
  color: #ffd8a0;
  font-size: 12px;
  letter-spacing: .04em;
  padding: 6px 12px;
  text-align: center;
}
.top-notice a { color: #ffd8a0; font-weight: 700; margin-left: 8px; }

/* ── レスポンシブ（追加） ── */
@media (max-width: 700px) {
  .brn-kantei-doc-body { grid-template-columns: 1fr; }
  .brn-kantei-stamps { position: static; flex-direction: row; justify-content: flex-end; margin-bottom: 10px; }
  .brn-ledger-stamps { position: static; flex-direction: row; justify-content: flex-end; margin-bottom: 10px; }
  .brn-ledger::after { font-size: 60px; }
}

/* ================================================================
   RESULT PAGE — theatrical bg + full-width layout + Brian photo
   ================================================================ */

/* ── 背景レイヤー（画像overlay） ── */
.result-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.16;
  pointer-events: none;
  filter: saturate(.75) brightness(.65);
}

/* ── フル幅centered wrapper（サイドバーなし） ── */
.res-wrap {
  max-width: 720px;
  margin: 22px auto 50px;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ── パンくずリスト（結果ページ版） ── */
.res-breadcrumb {
  font-size: 11px;
  color: rgba(160,120,32,.52);
  margin-bottom: 16px;
  padding: 5px 0 8px;
  border-bottom: 1px dotted rgba(160,120,32,.22);
  letter-spacing: .06em;
}
.res-breadcrumb a {
  color: rgba(160,120,32,.52);
  text-decoration: none;
}
.res-breadcrumb a:hover { text-decoration: underline; }

/* ── Brian photo + message 横並び ── */
.res-brian-grid {
  max-width: 720px;
  margin: 0 auto 22px;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  align-items: start;
}
.res-brian-photo-wrap {
  position: sticky;
  top: 20px;
}
.res-brian-photo {
  display: block;
  width: 100%;
  border: 5px solid #1a082a;
  outline: 2px solid var(--gold);
  box-shadow: 8px 10px 0 rgba(0,0,0,.32), 0 0 0 1px #000;
  filter: contrast(1.08) saturate(.82) sepia(.08);
}
.res-brian-caption {
  margin-top: 8px;
  font-size: 10px;
  color: rgba(200,165,80,.55);
  letter-spacing: .12em;
  text-align: center;
  font-style: italic;
}

/* brn-ledger / message / action-box: 結果ページでは max-width 100% に広げる */
.res-wrap .brn-ledger,
.res-wrap .brn-brian-word-v2,
.res-wrap .brn-action-box-v2,
.res-wrap .brn-result-cta-v2 {
  max-width: 100%;
}

/* ── 結果ページ responsive ── */
@media (max-width: 620px) {
  .res-brian-grid {
    grid-template-columns: 1fr;
  }
  .res-brian-photo-wrap {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }
}

/* ================================================================
   IMAGE-BASED PAGE LAYOUT (index / thread-lock full-image mode)
   ================================================================ */

.imgpg {
  position: relative;
  margin: 0 auto;
  background: #0c0510;
  line-height: 0;
  overflow: hidden;   /* 子要素のはみ出し防止 */
  width: 100%;        /* 横幅を親に合わせる */
}
.imgpg-bg {
  display: block;
  width: 100%;
  pointer-events: none;
  user-select: none;
}
.imgpg-ov {
  position: absolute;
  inset: 0;
  line-height: normal;
}

/* 透明リンク */
.hs {
  position: absolute;
  display: block;
  cursor: pointer;
  background: transparent;
  border: none;
  color: transparent;
  font-size: 1px;
  text-decoration: none;
  pointer-events: all;
}
.hs:hover { background: rgba(255,255,255,.06); }
.hs:focus { outline: 2px solid rgba(200,160,60,.5); outline-offset: -1px; }

/* 透明入力欄 */
.ti {
  position: absolute;
  background: rgba(255,248,220,.05);
  border: 1px solid rgba(200,160,60,.12);
  color: rgba(255,220,160,.92);
  font-family: "Hiragino Mincho ProN","Yu Mincho",Georgia,serif;
  padding: 3px 8px;
  box-sizing: border-box;
  pointer-events: all;
}
.ti:focus {
  background: rgba(255,248,220,.14);
  border-color: rgba(200,160,60,.55);
  outline: none;
}
.ti::placeholder { color: transparent; }
.ti option { background: #1e0c28; color: #e8d9aa; }

/* 透明ボタン */
.tb {
  position: absolute;
  cursor: pointer;
  background: transparent;
  border: none;
  color: transparent;
  font-size: 1px;
  pointer-events: all;
}
.tb:hover { background: rgba(255,255,255,.07); }

/* thread-lock: 1422px画像の左半分だけ表示 */
.imgpg-half {
  max-width: 711px;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  background: #0c0510;
  line-height: 0;
}
.imgpg-half .imgpg-bg {
  width: 200%;
  max-width: none;
  pointer-events: none;
  display: block;
}
