﻿@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: light;
  --bg: #fff6dc;
  --cream: #fffaf0;
  --cream-deep: #f4ead2;
  --ink: #4a3728;
  --muted: #8a7663;
  --line: #f0d9a8;
  --active: #ffd782;
  --active-line: #e5a800;
  --shadow: 0 12px 30px rgba(120, 80, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Pretendard,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    system-ui,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app {
  width: 390px;
  height: 844px;
  max-height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
}

.screen {
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.home-screen {
  padding-left: 0;
  padding-right: 0;
}

.topbar {
  height: 44px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  text-align: center;
  color: var(--ink);
  font-size: 16px;
}

.topbar-spacer {
  width: 44px;
  height: 44px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.home-button {
  justify-self: end;
  position: relative;
  display: grid;
  place-items: center;
  border: 1.5px solid #e8c878;
  background: #fffaf0;
}

.home-icon {
  width: 25px;
  height: 25px;
  display: block;
  color: #b7773f;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-roof,
.home-house,
.home-door {
  transform-box: fill-box;
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.home-button:hover .home-roof {
  opacity: 0.88;
  transform: translateY(-2px);
}

.home-button:hover .home-house {
  transform: scale(0.96);
  transform-origin: center;
}

.home-button:hover .home-door {
  transform: scaleY(0.9);
  transform-origin: center bottom;
}

.home {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  justify-items: center;
  padding: 0;
  overflow: visible;
}

.home-panel {
  position: relative;
  width: 350px;
  height: min(760px, calc(100dvh - 24px));
  min-height: 0;
  padding: 48px 18px 0;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.court-decor {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 241px;
  height: 76px;
  color: #f3bd20;
  font-weight: 900;
  pointer-events: none;
  z-index: 1;
}

.court-decor span {
  position: absolute;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.court-decor span:nth-child(1) {
  left: 14px;
  top: 18px;
  font-size: 18px;
}

.court-decor span:nth-child(2) {
  left: 62px;
  top: 38px;
  font-size: 22px;
}

.court-decor span:nth-child(3) {
  right: 18px;
  top: 16px;
  font-size: 18px;
}

.court-decor span:nth-child(4) {
  left: 50%;
  top: 8px;
  font-size: 22px;
  transform: translateX(-50%) rotate(-12deg);
}

.court-decor span:nth-child(5) {
  right: 70px;
  top: 42px;
  font-size: 18px;
}

.brand-block {
  position: relative;
  text-align: center;
  z-index: 2;
  transform: translateY(30px);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: #3a2b20;
  font-size: 43px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.brand-block p {
  margin-top: 10px;
  color: #4a3728;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.speech-bubble {
  position: relative;
  width: 230px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto 0;
  border: 1.5px solid #f2bf2f;
  border-radius: 999px;
  background: #ffffff;
  color: #4a3728;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 5px 12px rgba(91, 64, 35, 0.06);
  z-index: 3;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -10px;
  width: 0;
  height: 0;
  background: transparent;
  border-left: 10px solid transparent;
  border-right: 4px solid transparent;
  border-top: 12px solid #f2bf2f;
  transform: none;
  box-shadow: none;
}

.character-row {
  position: relative;
  width: calc(100% + 36px);
  height: 370px;
  margin-top: 74px;
  margin-left: -18px;
  overflow: visible;
}

.character-row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -214px;
  height: 300px;
  border-top: 2px solid #8c562d;
  border-radius: 0;
  background: #ad6c34;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.12);
  z-index: 6;
}

.character-row::after {
  content: none;
}

.character-row img {
  position: absolute;
  display: block;
  max-width: none;
  min-width: 0;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(68, 45, 25, 0.13));
}

.character-row img:nth-child(1) {
  left: -10px;
  bottom: 72px;
  width: 172px;
  z-index: 2;
}

.character-row img:nth-child(2) {
  left: 2px;
  bottom: 34px;
  width: 158px;
  z-index: 5;
}

.character-row img:nth-child(3) {
  left: 50%;
  bottom: 34px;
  width: 222px;
  transform: translateX(-50%);
  z-index: 4;
}

.character-row img:nth-child(4) {
  right: -10px;
  bottom: 72px;
  width: 166px;
  z-index: 2;
}

.character-row img:nth-child(5) {
  right: 2px;
  bottom: 38px;
  width: 140px;
  z-index: 2;
}

.menu-card,
.content-card {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.home .menu-card {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 318px;
  height: 164px;
  max-width: calc(100% - 28px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  border: 2px solid #e8c878;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(100, 70, 30, 0.16);
  transform: translateX(-50%);
  box-sizing: border-box;
  z-index: 20;
}

.menu-button,
.primary-action,
.secondary-action {
  min-height: 48px;
  border-radius: 14px;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  min-height: 52px;
  border: 1.5px solid #f0c35b;
  background: #fff6dc;
  color: #4a3728;
  font-size: 15px;
  font-weight: 800;
}

.menu-button:first-child {
  height: 52px;
  min-height: 52px;
  border: 1.5px solid #f0c35b;
  background: #fff6dc;
  color: #4a3728;
  font-size: 15px;
  font-weight: 800;
}

.menu-button.active,
.menu-button:hover,
.menu-button:active {
  border-color: #e5a800;
  background: #ffd782;
  color: #4a3728;
  transform: translateY(1px);
}

.locked-menu-button,
.locked-menu-button:hover,
.locked-menu-button:active {
  cursor: not-allowed;
  border-color: #e0c99a;
  background: #f4ead2;
  color: #8a7663;
  transform: none;
}

.lock-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  overflow: visible;
  color: #b78a42;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.lock-shackle {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.24s ease;
}

.menu-button:hover .lock-shackle,
.locked-verdict-button:hover .lock-shackle {
  transform: translate(3px, -1.7px) rotate(40deg);
}

.primary-action {
  background: var(--active);
  color: var(--ink);
}

.secondary-action {
  border: 1.5px solid var(--line);
}

.content-card {
  margin-top: 28px;
}

.content-card h2 {
  font-size: 22px;
  font-weight: 850;
}

.content-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--ink);
}

textarea {
  resize: none;
}

.case-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.case-type-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.case-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 40px 16px 18px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.case-type-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 40px 16px 18px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.case-heading {
  text-align: center;
  transform: translateY(0);
}

.case-heading p {
  color: #8a6b40;
  font-size: 12px;
  font-weight: 800;
}

.case-heading h1 {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.1;
}

.case-lawyer-question {
  display: grid;
  grid-template-columns: 130px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 138px;
  padding: 0;
}

.case-lawyer-question img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(68, 45, 25, 0.12));
}

.case-lawyer-question div {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: center;
  padding: 12px 13px 12px 16px;
  border: 1.5px solid #e8c878;
  border-radius: 18px;
  background: #fffaf0;
}

.case-lawyer-question div::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 48px;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid #e8c878;
  border-bottom: 1.5px solid #e8c878;
  background: #fffaf0;
  transform: rotate(45deg);
}

.case-lawyer-question span,
.case-lawyer-question strong {
  display: block;
}

.case-lawyer-question span {
  color: #8a6b40;
  font-size: 12px;
  font-weight: 850;
}

.case-lawyer-question strong {
  margin-top: 4px;
  color: #3a2b20;
  font-size: 15px;
  line-height: 1.28;
  font-weight: 900;
  word-break: keep-all;
}

.field-group {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  transform: translateY(0);
}

.relation-field {
  margin-top: 4px;
}

.field-group input {
  min-height: 44px;
  border-color: #e8c878;
  background: #fffaf0;
}

.field-group select {
  min-height: 40px;
  border-color: #e8c878;
  background: #fffaf0;
  color: #4a3728;
  font-weight: 800;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #c47a14 50%),
    linear-gradient(135deg, #c47a14 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 19px,
    calc(100% - 14px) 19px;
  background-size:
    7px 7px,
    7px 7px;
  background-repeat: no-repeat;
}

.relation-picker-panel {
  padding: 12px;
  border: 1.5px solid #e8c878;
  border-radius: 20px;
  background: #fffdf7;
}

.relation-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.relation-card {
  position: relative;
  min-height: 87px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 10px 12px;
  border: 1.5px solid #e8c878;
  border-radius: 14px;
  background: #fffaf0;
  color: #4a3728;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.relation-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.relation-card strong {
  font-size: 14px;
  line-height: 1.1;
  font-weight: 900;
  text-align: center;
  word-break: keep-all;
}

.relation-card.is-selected,
.relation-card:has(input:checked) {
  border-color: #e5a800;
  background: #ffd782;
  transform: translateY(1px);
}

.locked-relation-card {
  cursor: not-allowed;
  border-color: #e0c99a;
  background: #f4ead2;
  color: #8a7663;
  transform: none;
}

.locked-relation-card .lock-icon {
  width: 21px;
  height: 21px;
  color: #b99349;
}

.case-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.case-type-card {
  position: relative;
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1.5px solid #e8c878;
  border-radius: 18px;
  background: #fffaf0;
  color: #4a3728;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.case-type-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.case-type-card:has(input:checked) {
  border-color: #e5a800;
  background: #ffd782;
  transform: translateY(1px);
}

.case-type-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #ffffff;
  color: #c47a14;
  font-size: 22px;
  font-weight: 900;
}

.case-type-card strong {
  color: #3a2b20;
  font-size: 16px;
  line-height: 1.12;
  font-weight: 900;
  text-align: center;
}

.case-type-card small {
  color: #8a6b40;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-align: center;
  word-break: keep-all;
}

.invite-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border: 1.5px solid #e8c878;
  border-radius: 18px;
  background: #fff6dc;
  transform: translateY(0);
}

.invite-box span,
.invite-box strong {
  display: block;
}

.invite-box span {
  color: #8a6b40;
  font-size: 12px;
  font-weight: 800;
}

.invite-box strong {
  margin-top: 3px;
  color: #3a2b20;
  font-size: 15px;
  font-weight: 900;
}

.invite-box button {
  flex: 0 0 auto;
  min-width: 86px;
  height: 38px;
  border: 1.5px solid #e5a800;
  border-radius: 14px;
  background: #ffd782;
  color: #4a3728;
  font-size: 13px;
  font-weight: 900;
}

.bento-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.bento-item {
  position: relative;
  cursor: pointer;
  display: grid;
  min-height: 64px;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 7px 6px;
  border: 1.5px solid #e8c878;
  border-radius: 14px;
  background: #fffaf0;
  overflow: hidden;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.bento-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.bento-item:has(input:checked),
.bento-item:hover {
  border-color: #e5a800;
  background: #ffd782;
  transform: translateY(1px);
}

.bento-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #ffffff;
  color: #c47a14;
  font-size: 16px;
  font-weight: 900;
}

.bento-item strong {
  color: #3a2b20;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.case-next {
  min-height: 48px;
  margin-top: auto;
  transform: translateY(-14px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.case-next:disabled,
.case-type-next:disabled {
  cursor: not-allowed;
  border-color: #e0c99a;
  background: #f4ead2;
  color: #8a7663;
}

.case-type-next {
  min-height: 48px;
  margin-top: auto;
  transform: translateY(-14px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.lawyer-select {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.lawyer-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.lawyer-heading {
  text-align: center;
}

.lawyer-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.lawyer-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.lawyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 38px;
  transform: translateY(4px);
}

.lawyer-card {
  position: relative;
  min-height: 206px;
  display: grid;
  grid-template-rows: 104px auto auto auto;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 10px 9px;
  border: 1.5px solid #e8c878;
  border-radius: 20px;
  background: #fffaf0;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.lawyer-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.lawyer-card:has(input:checked),
.lawyer-card:hover {
  border-color: #e5a800;
  background: #ffd782;
  box-shadow: 0 8px 16px rgba(122, 84, 36, 0.12);
  transform: translateY(1px);
}

.lawyer-portrait {
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.lawyer-portrait img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(68, 45, 25, 0.12));
}

.hamster-lawyer .lawyer-portrait img {
  width: 100px;
  height: 100px;
}

.lawyer-card strong {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}

.lawyer-stars {
  align-self: end;
  color: #e5a800;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lawyer-stars em {
  margin-right: 5px;
  color: #7a5632;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.lawyer-card small {
  color: #6f5945;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  word-break: keep-all;
}

.lawyer-invite-box {
  margin-top: 4px;
}

.locked-invite-box {
  border-color: #e0c99a;
  background: #f4ead2;
}

.locked-invite-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: not-allowed;
  border-color: #d2ad62;
  background: #efe1bd;
  color: #8a7663;
}

.locked-invite-box .lock-icon {
  width: 16px;
  height: 16px;
  color: #b99349;
}

.lawyer-next {
  min-height: 48px;
  margin-top: auto;
  transform: translateY(-10px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.statement-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.statement-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.statement-heading {
  text-align: center;
}

.statement-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.statement-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.lawyer-listening-scene {
  min-height: 116px;
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: end;
  gap: 8px;
  transform: translateY(10px);
}

.listening-lawyer-portrait {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  align-self: end;
}

.listening-lawyer-portrait img {
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(68, 45, 25, 0.14));
}

.listening-bubble {
  position: relative;
  margin-bottom: 16px;
  padding: 14px 14px 13px;
  border: 1.5px solid #f0c35b;
  border-radius: 20px 20px 20px 8px;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(100, 70, 30, 0.08);
}

.listening-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 17px;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid #f0c35b;
  border-bottom: 1.5px solid #f0c35b;
  background: #ffffff;
  transform: rotate(45deg);
}

.listening-bubble span {
  display: block;
  color: #8a6b40;
  font-size: 12px;
  font-weight: 800;
}

.listening-bubble strong {
  display: block;
  margin-top: 4px;
  color: #3a2b20;
  font-size: 17px;
  font-weight: 900;
}

.listening-bubble small {
  display: block;
  margin-top: 5px;
  color: #6f5945;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  word-break: keep-all;
}

.statement-field {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  transform: translateY(25px);
}

.statement-field textarea {
  min-height: 96px;
  padding: 12px 14px;
  border-color: #e8c878;
  border-radius: 18px;
  background: #fffaf0;
  color: #4a3728;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.wish-field textarea {
  min-height: 74px;
}

.statement-field textarea::placeholder {
  color: #b09a82;
}

.statement-choice-panel {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 12px;
  border: 1.5px solid #e8c878;
  border-radius: 22px;
  background: #fffdf7;
  transform: translateY(4px);
}

.statement-choice-panel legend {
  padding: 0 7px;
  color: #3a2b20;
  font-size: 14px;
  font-weight: 900;
}

.statement-choice-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.statement-choice-card {
  position: relative;
  min-height: 80px;
  display: grid;
  place-items: center;
  padding: 12px 10px;
  border: 1.5px solid #e8c878;
  border-radius: 16px;
  background: #fffaf0;
  color: #4a3728;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.statement-choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.statement-choice-card span {
  display: none;
}

.statement-choice-card strong {
  color: #3a2b20;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  word-break: keep-all;
}

.statement-choice-card.is-selected,
.statement-choice-card:has(input:checked) {
  border-color: #e5a800;
  background: #ffd782;
  transform: translateY(1px);
}

.statement-next {
  min-height: 52px;
  margin-top: auto;
  transform: translateY(-15px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.statement-next:disabled {
  cursor: not-allowed;
  border-color: #e0c99a;
  background: #f4ead2;
  color: #8a7663;
}

.detail-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.detail-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.detail-heading {
  text-align: center;
}

.detail-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.detail-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.detail-lawyer-scene {
  min-height: 126px;
  transform: translateY(6px);
}

.detail-progress {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1.5px solid #e8c878;
  border-radius: 16px;
  background: #fff6dc;
  color: #4a3728;
  transform: translateY(7px);
}

.detail-progress span {
  font-size: 13px;
  font-weight: 900;
}

.detail-progress strong {
  color: #c47a14;
  font-size: 13px;
  font-weight: 900;
}

.detail-option-panel {
  display: grid;
  gap: 12px;
  margin: 11px 0 0;
  padding: 13px 12px;
  border: 1.5px solid #e8c878;
  border-radius: 22px;
  background: #fffdf7;
  transform: translateY(6px);
}

.detail-option-panel legend {
  padding: 0 7px;
  color: #3a2b20;
  font-size: 14px;
  font-weight: 900;
}

.detail-option-list {
  display: grid;
  gap: 8px;
}

.detail-option-card {
  position: relative;
  min-height: 52px;
  display: grid;
  place-items: center;
  padding: 10px 14px;
  border: 1.5px solid #e8c878;
  border-radius: 16px;
  background: #fffaf0;
  color: #4a3728;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.detail-option-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.detail-option-card strong {
  color: #3a2b20;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
  word-break: keep-all;
}

.detail-option-card.is-selected,
.detail-option-card:has(input:checked) {
  border-color: #e5a800;
  background: #ffd782;
  transform: translateY(1px);
}

.detail-next {
  min-height: 52px;
  margin-top: auto;
  transform: translateY(-15px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.detail-next:disabled {
  cursor: not-allowed;
  border-color: #e0c99a;
  background: #f4ead2;
  color: #8a7663;
}

.review-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.review-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.review-heading {
  text-align: center;
}

.review-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.review-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.review-lawyer-scene {
  min-height: 116px;
  display: grid;
  grid-template-columns: 104px 1fr;
  align-items: end;
  gap: 8px;
}

.review-lawyer-portrait {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
}

.review-lawyer-portrait img {
  width: 118px;
  height: 118px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(68, 45, 25, 0.14));
}

.review-bubble {
  position: relative;
  margin-bottom: 16px;
  padding: 13px 14px 12px;
  border: 1.5px solid #f0c35b;
  border-radius: 20px 20px 20px 8px;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(100, 70, 30, 0.08);
}

.review-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 17px;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid #f0c35b;
  border-bottom: 1.5px solid #f0c35b;
  background: #ffffff;
  transform: rotate(45deg);
}

.review-bubble span {
  display: block;
  color: #8a6b40;
  font-size: 12px;
  font-weight: 800;
}

.review-bubble strong {
  display: block;
  margin-top: 4px;
  color: #3a2b20;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.draft-verdict {
  position: relative;
  min-height: 340px;
  padding: 18px 16px 14px;
  border: 1.5px solid #e8c878;
  border-radius: 20px;
  background: #fffaf0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transform: translateY(10px);
}

.draft-verdict h2 {
  color: #3a2b20;
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.draft-verdict section {
  margin-top: 14px;
}

.draft-verdict.is-editing {
  min-height: 340px;
  padding-top: 16px;
}

.draft-verdict.is-editing .draft-stamp {
  display: none;
}

.draft-verdict h3 {
  margin: 0 0 6px;
  color: #8a6b40;
  font-size: 13px;
  font-weight: 900;
}

.draft-verdict p {
  color: #4a3728;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
  word-break: keep-all;
}

.draft-edit-field {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.draft-edit-field span {
  color: #8a6b40;
  font-size: 12px;
  font-weight: 900;
}

.draft-edit-field textarea {
  width: 100%;
  min-height: 66px;
  padding: 10px 11px;
  border: 1.5px solid #e8c878;
  border-radius: 14px;
  background: #ffffff;
  color: #4a3728;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  resize: none;
}

.draft-stamp {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 5px 8px;
  border: 1.5px solid #e5a800;
  border-radius: 999px;
  background: #ffd782;
  color: #4a3728;
  font-size: 11px;
  font-weight: 900;
}

.review-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  transform: translateY(-15px);
}

.secondary-review-action,
.review-submit {
  min-height: 52px;
  border-radius: 16px;
  font-weight: 900;
}

.secondary-review-action {
  border: 1.5px solid #f0c35b;
  background: #fff6dc;
  color: #4a3728;
}

.review-submit {
  border: 1.5px solid #e5a800;
  background: #ffd782;
}

.secondary-review-action:hover,
.review-submit:hover,
.secondary-review-action:active,
.review-submit:active {
  background: #ffd782;
  transform: translateY(1px);
}

.submitting-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.submitting-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.submitting-heading {
  text-align: center;
}

.submitting-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.submitting-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.submitting-scene {
  position: relative;
  height: 360px;
  margin-top: 18px;
  border: 1.5px solid #e8c878;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 215, 130, 0.2), transparent 34%),
    #fffaf0;
  overflow: hidden;
}

.judge-desk {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 248px;
  height: 98px;
  border: 2px solid #7a4a28;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: #7b4728;
  box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
  z-index: 3;
}

.judge-desk::after {
  content: "의견서 접수";
  position: absolute;
  left: 50%;
  top: 17px;
  transform: translateX(-50%);
  color: #fff6dc;
  font-size: 13px;
  font-weight: 900;
}

.judge-desk img {
  position: absolute;
  left: 50%;
  bottom: 52px;
  width: 142px;
  height: 142px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 9px rgba(68, 45, 25, 0.14));
}

.submitting-lawyer-portrait {
  position: absolute;
  left: 15px;
  bottom: 44px;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  z-index: 5;
}

.submitting-lawyer-portrait img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px rgba(68, 45, 25, 0.14));
}

.submitting-paper {
  position: absolute;
  left: 135px;
  bottom: 128px;
  width: 72px;
  height: 54px;
  border: 1.5px solid #d9b46c;
  border-radius: 8px;
  background: #ffffff;
  transform: rotate(-8deg);
  box-shadow: 0 8px 14px rgba(100, 70, 30, 0.13);
  z-index: 6;
}

.submitting-paper span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: #d9b46c;
}

.submitting-paper span:nth-child(1) {
  top: 17px;
}

.submitting-paper span:nth-child(2) {
  top: 26px;
}

.submitting-paper span:nth-child(3) {
  top: 35px;
}

.submitting-bubble {
  position: absolute;
  right: 14px;
  top: 34px;
  width: 184px;
  padding: 14px 14px 13px;
  border: 1.5px solid #f0c35b;
  border-radius: 20px 20px 20px 8px;
  background: #ffffff;
  box-shadow: 0 7px 16px rgba(100, 70, 30, 0.08);
  z-index: 8;
}

.submitting-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 18px;
  width: 18px;
  height: 18px;
  border-left: 1.5px solid #f0c35b;
  border-bottom: 1.5px solid #f0c35b;
  background: #ffffff;
  transform: rotate(45deg);
}

.submitting-bubble span {
  display: block;
  color: #8a6b40;
  font-size: 12px;
  font-weight: 800;
}

.submitting-bubble strong {
  display: block;
  margin-top: 4px;
  color: #3a2b20;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
  word-break: keep-all;
}

.submitting-status {
  min-height: 114px;
  padding: 16px;
  border: 1.5px solid #e8c878;
  border-radius: 20px;
  background: #fffaf0;
  text-align: center;
}

.status-with-lawyer {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 246px;
  padding: 16px;
  text-align: left;
}

.submitting-status-lawyer {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.submitting-status-lawyer img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  object-position: center center;
  transform: none;
  filter: drop-shadow(0 7px 8px rgba(68, 45, 25, 0.12));
}

.confirm-scene {
  display: grid;
  place-items: center;
}

.confirm-document-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(92, 54, 22, 0.14));
}

.confirm-scene .submitting-lawyer-portrait {
  left: 34px;
  bottom: 78px;
}

.confirm-scene .submitting-paper {
  left: 158px;
  bottom: 156px;
}

.submitting-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  grid-column: 1 / -1;
  gap: 10px;
  transform: none;
}

.submitting-actions .secondary-review-action,
.submitting-actions .review-submit {
  min-height: 52px;
  height: 52px;
}

.submitting-status strong {
  color: #3a2b20;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.submitting-status p {
  margin-top: 6px;
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  word-break: keep-all;
}

.progress-track {
  height: 12px;
  margin-top: 14px;
  border: 1.5px solid #e8c878;
  border-radius: 999px;
  background: #fff6dc;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: 999px;
  background: #ffd782;
}

.judging-progress span {
  width: 0;
  animation: judging-progress-fill 6s ease-in-out forwards;
}

@keyframes judging-progress-fill {
  0% {
    width: 0;
  }

  12% {
    width: 16%;
  }

  42% {
    width: 48%;
  }

  72% {
    width: 78%;
  }

  100% {
    width: 100%;
  }
}

.submitting-next {
  min-height: 52px;
  margin-top: auto;
  transform: translateY(-15px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.judging-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.judging-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.judging-heading {
  text-align: center;
}

.judging-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.judging-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.judging-scene {
  position: relative;
  height: 360px;
  margin-top: 18px;
  border: 1.5px solid #e8c878;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 215, 130, 0.2), transparent 34%),
    #fffaf0;
  overflow: hidden;
}

.judging-scene img {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 270px;
  height: 270px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 9px rgba(68, 45, 25, 0.14));
  z-index: 4;
}

.verdict-create {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 0 14px;
  overflow: hidden;
}

.verdict-panel {
  width: 350px;
  height: 760px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 40px 16px 16px;
  border: 1.5px solid #f0d9a8;
  border-radius: 28px;
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.verdict-heading {
  text-align: center;
}

.verdict-heading p {
  color: #8a6b40;
  font-size: 13px;
  font-weight: 800;
}

.verdict-heading h1 {
  margin-top: 5px;
  color: #3a2b20;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  text-shadow:
    0 2px 0 #fff6dc,
    0 4px 8px rgba(70, 40, 15, 0.12);
}

.fault-board {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 6px;
  min-height: 282px;
  padding: 10px 12px 13px;
  border: 1.5px solid #e8c878;
  border-radius: 22px;
  background: #fffaf0;
}

.fault-judge {
  display: grid;
  place-items: center;
}

.fault-judge img {
  width: 152px;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(68, 45, 25, 0.14));
}

.fault-row {
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  align-items: center;
  gap: 9px;
}

.side-lawyer {
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #3a2b20;
  font-weight: 900;
  text-align: center;
}

.side-lawyer img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgba(68, 45, 25, 0.12));
}

.side-lawyer span {
  color: #c47a14;
  font-size: 24px;
  line-height: 1;
}

.fault-percent-row {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 8px;
}

.scale-label {
  color: #8a6b40;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  align-self: end;
  padding-bottom: 7px;
}

.fault-scale {
  display: grid;
  align-content: center;
}

.fault-percent {
  color: #c47a14;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.fault-percent-b {
  color: #e05f3f;
}

.fault-bar {
  width: 100%;
  height: 16px;
  display: flex;
  overflow: hidden;
  border: 1.5px solid #e8c878;
  border-radius: 999px;
  background: #fff6dc;
}

.fault-a {
  display: block;
  height: 100%;
  background: #ffd782;
}

.fault-b {
  display: block;
  height: 100%;
  background: #f28b68;
}

.free-verdict-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 14px 15px 13px;
  border: 1.5px solid #e8c878;
  border-radius: 20px;
  background: #fffaf0;
}

.free-verdict-card h2 {
  margin: 0;
  color: #3a2b20;
  font-size: 15px;
  font-weight: 900;
}

.free-verdict-card p {
  color: #6f5945;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
  word-break: keep-all;
}

.paid-verdict-actions {
  display: grid;
  gap: 9px;
}

.locked-verdict-button {
  position: relative;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1.5px solid #e6d4ad;
  border-radius: 16px;
  background: #f7efdc;
  color: #8a765c;
  font-family: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  cursor: not-allowed;
}

.lock-icon {
  width: 24px;
  height: 24px;
  display: block;
  overflow: visible;
  color: #b99349;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.verdict-next {
  min-height: 52px;
  margin-top: auto;
  transform: translateY(-15px);
  border: 1.5px solid #e5a800;
  border-radius: 16px;
  background: #ffd782;
  color: #4a3728;
  font-weight: 900;
}

.empty-state {
  text-align: center;
  padding: 28px 18px;
}

@media (max-height: 720px) {
  .home {
    padding: 0;
  }

  .home-panel {
    height: calc(100dvh - 24px);
    padding-top: 34px;
  }

  h1 {
    font-size: 36px;
  }

  .speech-bubble {
    height: 52px;
  }

  .character-row {
    height: 320px;
    margin-top: -8px;
  }

  .character-row img:nth-child(1) {
    width: 76px;
  }

  .character-row img:nth-child(2) {
    width: 70px;
  }

  .character-row img:nth-child(3) {
    width: 88px;
  }

  .character-row img:nth-child(4) {
    width: 70px;
  }

  .character-row img:nth-child(5) {
    width: 64px;
  }

  .home .menu-card {
    bottom: 18px;
    height: 176px;
  }
}

