:root {
  --navy-900: #102544;
  --navy-800: #173762;
  --navy-700: #295083;
  --sky-100: #eef6ff;
  --sky-200: #dbe8ff;
  --gold-400: #d8a44a;
  --gold-200: #f7e4b8;
  --white-strong: rgba(255, 255, 255, 0.92);
  --white-soft: rgba(255, 255, 255, 0.16);
  --text-dark: #14243f;
  --text-soft: #5b6c89;
  --text-light: rgba(255, 248, 233, 0.92);
  --shadow-xl: 0 24px 80px rgba(9, 20, 43, 0.26);
  --shadow-lg: 0 18px 40px rgba(15, 31, 62, 0.14);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-title: "STZhongsong", "SimSun", serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
}

img,
canvas {
  display: block;
  max-width: 100%;
}

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

a {
  text-decoration: none;
}

.wall-page,
.submit-page {
  position: relative;
  overflow-x: hidden;
}

.wall-background,
.wall-mask,
.submit-background {
  position: fixed;
  inset: 0;
}

.wall-background {
  background:
    linear-gradient(180deg, rgba(9, 21, 42, 0.34), rgba(9, 21, 42, 0.64)),
    url("/assets/campus-scene.svg") center 68% / cover no-repeat;
  transform: scale(1.03);
}

.wall-mask {
  background:
    linear-gradient(180deg, rgba(7, 18, 39, 0.78) 0%, rgba(7, 18, 39, 0.28) 18%, rgba(7, 18, 39, 0.2) 100%),
    radial-gradient(circle at left 12% top 16%, rgba(255, 236, 188, 0.12), transparent 22%),
    radial-gradient(circle at right center, rgba(91, 157, 230, 0.14), transparent 22%);
}

.submit-background {
  background:
    radial-gradient(circle at top left, rgba(255, 235, 186, 0.48), transparent 26%),
    linear-gradient(180deg, #fdf6ea 0%, #eef6ff 48%, #e0ebff 100%);
}

.wall-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 22px 28px 24px;
}

.wall-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.wall-heading {
  max-width: 760px;
}

.wall-kicker,
.panel-tag {
  margin: 0 0 10px;
  color: rgba(249, 227, 175, 0.96);
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
}

.wall-page .panel-tag {
  color: rgba(247, 224, 170, 0.92);
}

#wall-title,
#submit-title {
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.06em;
}

#wall-title {
  color: #fff6e7;
  font-size: clamp(48px, 4.4vw, 60px);
  line-height: 1.14;
  text-shadow: 0 12px 24px rgba(4, 12, 29, 0.24);
}

.wall-subtitle,
.submit-subtitle {
  margin: 14px 0 0;
  line-height: 1.8;
  font-size: 16px;
}

.wall-subtitle {
  color: rgba(255, 247, 230, 0.88);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.7;
  margin-top: 10px;
}

.wall-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.message-total-card,
.ghost-button,
.wall-stage-panel,
.spotlight-card,
.instruction-card,
.submit-hero-card,
.submit-panel,
.preview-panel {
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.message-total-card {
  min-width: 174px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.16);
  text-align: center;
  color: #fff9ec;
}

.message-total-card strong {
  display: block;
  margin: 6px 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
  color: #fff7e3;
}

.message-total-label {
  font-size: 13px;
  letter-spacing: 0.06em;
}

.ghost-button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff8ea;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 250, 235, 0.26);
}

.wall-stage-panel {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 158px);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(13, 28, 58, 0.12), rgba(13, 28, 58, 0.28)),
    rgba(255, 255, 255, 0.08);
}

.stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 64px, 64px 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2));
}

.wall-display-column {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: calc(100vh - 198px);
}

.barrage-stage {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 378px);
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(7, 17, 36, 0.12), rgba(7, 17, 36, 0.22)),
    rgba(255, 255, 255, 0.03);
}

.barrage-item {
  position: absolute;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 720px;
  min-width: 0;
  padding: 8px 20px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
  box-shadow: 0 10px 22px rgba(7, 16, 35, 0.22);
  pointer-events: none;
  opacity: 0.98;
  transform: translate3d(0, 0, 0);
  transition-property: transform;
  transition-timing-function: linear;
}

.barrage-item.tone-white {
  color: #0e2441;
  background: rgba(255, 255, 255, 0.94);
}

.barrage-item.tone-gold {
  color: #513507;
  background: rgba(247, 228, 184, 0.96);
}

.barrage-item.tone-blue {
  color: #eef7ff;
  background: rgba(53, 104, 168, 0.92);
}

.barrage-item.is-default {
  color: #fffaf0;
  background: rgba(17, 50, 90, 0.84);
}

.stage-footer-note {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
  min-height: 146px;
}

.spotlight-card,
.instruction-card {
  padding: 18px 20px;
  background: rgba(8, 20, 43, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-light);
}

.spotlight-card h2,
.preview-header h2 {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1.35;
}

.spotlight-card p:last-child,
.instruction-card p {
  margin: 8px 0 0;
  color: rgba(255, 246, 229, 0.84);
  line-height: 1.72;
  font-size: 14px;
}

.wall-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wall-info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff8ea;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-shell {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.submit-hero-card,
.submit-panel,
.preview-panel {
  background: var(--white-strong);
  box-shadow: var(--shadow-lg);
}

.submit-hero-card {
  padding: 28px 24px;
  background:
    radial-gradient(circle at top left, rgba(255, 238, 196, 0.92), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.94));
}

#submit-title {
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.2;
  color: #13284b;
}

.submit-panel,
.preview-panel {
  margin-top: 18px;
  padding: 22px;
}

.wish-form {
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span {
  font-weight: 600;
  color: #1e2f50;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(20, 36, 63, 0.12);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(41, 80, 131, 0.48);
  box-shadow: 0 0 0 4px rgba(41, 80, 131, 0.1);
  transform: translateY(-1px);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-field small {
  text-align: right;
  color: var(--text-soft);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
}

.primary-button {
  color: #fffdf8;
  background: linear-gradient(135deg, #19457b, #2d698d);
  box-shadow: 0 16px 30px rgba(25, 69, 123, 0.22);
}

.secondary-button {
  color: var(--navy-800);
  background: rgba(216, 164, 74, 0.15);
}

.primary-button:disabled,
.secondary-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.submit-status,
.preview-tip {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14px;
}

.preview-panel[hidden] {
  display: none;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.serial-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(216, 164, 74, 0.14);
  color: #7a5510;
  font-size: 13px;
  font-weight: 700;
}

.card-canvas {
  display: none;
}

.card-preview {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(12, 27, 54, 0.18);
  background: #f5f8ff;
}

.preview-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-page {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.portal-background,
.portal-mask {
  position: fixed;
  inset: 0;
}

.portal-background {
  background:
    linear-gradient(180deg, rgba(9, 21, 42, 0.44), rgba(9, 21, 42, 0.82)),
    url("/assets/campus-scene.svg") center 60% / cover no-repeat;
  transform: scale(1.03);
}

.portal-mask {
  background:
    radial-gradient(circle at top left, rgba(255, 231, 182, 0.15), transparent 24%),
    radial-gradient(circle at right center, rgba(91, 157, 230, 0.12), transparent 20%);
}

.portal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.portal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff7e6;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(10, 22, 45, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 247, 230, 0.84);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-button {
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: #193861;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff9ef;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.portal-nav-light .brand-mark,
.portal-nav-light .nav-links a {
  color: #193861;
}

.portal-nav-light .brand-mark {
  background: rgba(255, 255, 255, 0.66);
  border-color: rgba(23, 55, 98, 0.08);
}

.portal-nav-light .nav-links a {
  background: rgba(255, 255, 255, 0.34);
}

.portal-nav-light .nav-links a:hover,
.portal-nav-light .nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.68);
}

.hero-panel,
.subhero-panel,
.portal-card,
.hero-side-card,
.join-card,
.join-side-card {
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-xl);
}

.hero-panel,
.subhero-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(135deg, rgba(10, 27, 54, 0.62), rgba(25, 51, 88, 0.42)),
    rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.hero-panel {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
}

.subhero-panel {
  margin-bottom: 18px;
}

.hero-panel h1,
.subhero-panel h1,
.join-card h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.18;
  color: #fff6e7;
}

.hero-text {
  margin: 14px 0 0;
  line-height: 1.9;
  color: rgba(255, 247, 231, 0.9);
  font-size: 16px;
}

.hero-actions,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.compact-actions {
  margin-top: 18px;
}

.hero-side-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-side-card h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.4;
  color: #fff7e8;
}

.hero-side-card p {
  margin: 10px 0 0;
  line-height: 1.8;
  color: rgba(255, 247, 230, 0.86);
}

.hero-side-stats,
.mini-stat-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-side-stats span,
.mini-stat-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff7e8;
}

.hero-side-stats strong,
.mini-stat-row strong {
  color: #f7e4b8;
  font-size: 20px;
}

.portal-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.portal-stat-card,
.portal-card,
.module-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.portal-stat-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  color: var(--text-light);
  box-shadow: var(--shadow-lg);
}

.portal-stat-label {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 224, 170, 0.92);
}

.portal-stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 2.8vw, 40px);
  color: #fff7e6;
}

.portal-stat-card p {
  margin: 8px 0 0;
  line-height: 1.7;
  color: rgba(255, 247, 231, 0.84);
  font-size: 14px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.portal-column {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.portal-card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(10, 27, 54, 0.46), rgba(10, 27, 54, 0.30)),
    rgba(255, 255, 255, 0.08);
  color: var(--text-light);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.module-card h3,
.empty-card h3 {
  margin: 0;
  color: #fff7e7;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.35;
}

.text-link {
  color: rgba(247, 224, 170, 0.96);
}

.wish-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wish-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 32px rgba(9, 20, 43, 0.16);
  color: var(--text-dark);
}

.wish-card.is-emphasize {
  background:
    linear-gradient(135deg, rgba(255, 247, 225, 0.98), rgba(243, 249, 255, 0.98));
}

.wish-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.wish-card-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  color: #173762;
}

.wish-card-serial {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(216, 164, 74, 0.14);
  color: #8f6212;
  font-size: 12px;
  white-space: nowrap;
}

.wish-card-major,
.wish-card-meta,
.highlight-meta,
.result-summary,
.mini-list-row span,
.module-card p,
.empty-card p {
  margin: 0;
  line-height: 1.75;
  color: var(--text-soft);
}

.wish-card-content,
.highlight-text {
  margin: 0;
  font-size: 18px;
  line-height: 1.82;
  color: #1d3558;
}

.keyword-list,
.lucky-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-chip {
  border: 0;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 16px;
  cursor: pointer;
  color: #173762;
  background: rgba(255, 255, 255, 0.88);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.keyword-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 34, 66, 0.14);
}

.keyword-chip:disabled {
  cursor: default;
}

.keyword-chip.tone-1 {
  background: rgba(255, 248, 232, 0.95);
}

.keyword-chip.tone-2 {
  background: rgba(234, 243, 255, 0.95);
}

.keyword-chip.tone-3 {
  background: rgba(255, 238, 208, 0.95);
}

.keyword-chip.tone-4 {
  background: rgba(241, 246, 255, 0.95);
}

.lucky-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fffaf1;
  background: rgba(25, 69, 123, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.module-card {
  display: block;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.88));
  color: var(--text-dark);
  box-shadow: var(--shadow-lg);
}

.module-card h3 {
  color: #173762;
  font-size: 24px;
}

.module-card p {
  margin-top: 10px;
}

.module-stack {
  display: grid;
  gap: 14px;
}

.module-card.compact {
  padding: 18px;
}

.module-card.compact h3 {
  font-size: 22px;
}

.filter-bar {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.filter-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(20, 36, 63, 0.12);
  border-radius: var(--radius-md);
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  outline: none;
}

.filter-input:focus {
  border-color: rgba(41, 80, 131, 0.48);
  box-shadow: 0 0 0 4px rgba(41, 80, 131, 0.1);
}

.sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sort-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  cursor: pointer;
}

.sort-chip.is-active {
  background: rgba(247, 228, 184, 0.92);
  color: #553a06;
}

.highlight-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
}

.highlight-panel h3 {
  margin: 0;
  color: #173762;
  font-size: 24px;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.mini-list-row strong {
  color: #fff6e7;
}

.empty-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-light);
}

.lookup-form {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.lookup-result[hidden] {
  display: none;
}

.mine-query-layout {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.access-code-input {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.access-code-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 237, 193, 0.72), transparent 38%),
    linear-gradient(135deg, rgba(238, 246, 255, 0.98), rgba(255, 248, 231, 0.98));
  border: 1px solid rgba(216, 164, 74, 0.22);
}

.access-code-panel .panel-tag {
  color: #8e641b;
}

.access-code-panel strong {
  display: block;
  color: #173762;
  font-size: clamp(30px, 7vw, 48px);
  letter-spacing: 0.16em;
}

.access-code-panel p:last-child {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.wall-nav-link {
  display: inline-flex;
  align-items: center;
}

.recent-entry {
  display: grid;
  gap: 10px;
}

.recent-entry-button {
  width: 100%;
}

.compact-preview {
  margin-top: 18px;
}

.join-shell {
  width: min(1040px, calc(100vw - 28px));
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.join-card,
.join-side-card {
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(10, 27, 54, 0.52), rgba(10, 27, 54, 0.32)),
    rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.join-card .hero-text {
  margin-bottom: 18px;
}

.admin-manage-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.admin-manage-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-manage-hero h1 {
  margin: 0;
  font-family: var(--font-title);
  color: #13284b;
  font-size: clamp(32px, 5vw, 48px);
}

.admin-total-card {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 180px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--text-soft);
}

.admin-total-card strong {
  color: #173762;
  font-size: 42px;
  line-height: 1;
}

.admin-data-panel {
  padding: 24px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-search-field {
  display: grid;
  gap: 8px;
}

.admin-search-field span {
  color: #1e2f50;
  font-weight: 700;
}

.admin-message-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-message-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 234, 185, 0.36), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(23, 55, 98, 0.08);
  box-shadow: 0 14px 34px rgba(15, 31, 62, 0.09);
}

.admin-message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-message-identity h2 {
  margin: 0;
  color: #173762;
  font-size: 25px;
}

.admin-message-identity p {
  margin: 6px 0 0;
  color: var(--text-soft);
}

.admin-message-content {
  margin: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(230, 239, 252, 0.62);
  color: #1d3558;
  font-size: 18px;
  line-height: 1.8;
}

.admin-binding-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.5fr;
  gap: 12px;
}

.admin-binding-item {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(23, 55, 98, 0.06);
}

.admin-binding-item span {
  color: var(--text-soft);
  font-size: 13px;
}

.admin-binding-item strong {
  overflow-wrap: anywhere;
  color: #173762;
}

.admin-binding-item .access-code {
  color: #9c6810;
  font-size: 20px;
  letter-spacing: 0.14em;
}

.admin-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.warning-button,
.danger-button {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.warning-button {
  color: #6f4b0c;
  background: rgba(236, 190, 100, 0.25);
}

.danger-button {
  color: #fff8f4;
  background: #a64e3b;
}

.warning-button:disabled,
.danger-button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.admin-empty-state {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.admin-empty-state h2 {
  margin: 0;
  color: #173762;
}

.admin-empty-state p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

@media (max-width: 1080px) {
  .wall-shell {
    padding: 18px 16px 26px;
  }

  .wall-header {
    flex-direction: column;
  }

  .wall-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .wall-stage-panel {
    min-height: auto;
  }

  .stage-footer-note {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .barrage-stage {
    min-height: 52vh;
  }

  .portal-shell,
  .join-shell,
  .admin-manage-shell {
    width: min(100vw - 20px, 1180px);
  }

  .hero-panel,
  .portal-grid,
  .join-layout,
  .module-grid,
  .portal-stat-grid {
    grid-template-columns: 1fr;
  }

  .wish-card-grid {
    grid-template-columns: 1fr;
  }

  .admin-binding-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .submit-shell {
    width: min(100vw - 18px, 760px);
    padding-top: 14px;
  }

  .submit-hero-card,
  .submit-panel,
  .preview-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .preview-header {
    flex-direction: column;
  }

  .preview-actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .message-total-card {
    min-width: 0;
  }

  .portal-nav,
  .section-heading,
  .mini-stat-row,
  .hero-side-stats,
  .access-code-panel,
  .admin-manage-hero,
  .admin-message-header {
    flex-direction: column;
    align-items: stretch;
  }

  .portal-shell,
  .join-shell,
  .admin-manage-shell {
    width: min(100vw - 16px, 1180px);
    padding-top: 14px;
  }

  .hero-panel,
  .subhero-panel,
  .portal-card,
  .join-card,
  .join-side-card,
  .portal-stat-card,
  .module-card {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-actions,
  .compact-actions,
  .sort-group,
  .keyword-list,
  .lucky-list {
    flex-direction: column;
  }

  .brand-mark,
  .nav-links a,
  .nav-button,
  .hero-side-stats span,
  .mini-stat-row span,
  .lucky-chip,
  .keyword-chip,
  .sort-chip {
    width: 100%;
    justify-content: center;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-message-actions,
  .admin-message-actions .secondary-button,
  .admin-message-actions .warning-button,
  .admin-message-actions .danger-button {
    width: 100%;
  }
}
