@import url("https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap");
@import url("https://cdn.jsdelivr.net/npm/galmuri/dist/galmuri.css");

:root {
  --ink: #172033;
  --ink-soft: #35405a;
  --cream: #fff8df;
  --paper: #fffdf4;
  --mint: #3dd6b4;
  --mint-dark: #118b78;
  --blue: #4f7cff;
  --blue-dark: #294bb7;
  --pink: #ff6fae;
  --yellow: #ffd95a;
  --orange: #ff9f43;
  --red: #ef476f;
  --line: #1d2940;
  --muted: #6e7891;
  --shadow: #10182a;
  --grid: rgba(255, 255, 255, 0.08);
  --pixel: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 28px 0;
  overflow-x: hidden;
  background-color: #18233c;
  background-image:
    radial-gradient(circle at 8px 8px, rgba(255, 217, 90, 0.85) 0 2px, transparent 2px),
    radial-gradient(circle at 36px 28px, rgba(61, 214, 180, 0.7) 0 2px, transparent 2px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:
    64px 64px,
    80px 80px,
    16px 16px,
    16px 16px;
  color: var(--ink);
  font-family: "Pixelify Sans", "Galmuri11", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  animation: pixel-background 18s linear infinite;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(10, 16, 32, 0.035) 3px,
    rgba(10, 16, 32, 0.035) 4px
  );
}

.container {
  position: relative;
  width: min(92%, 1040px);
  margin: 24px auto 48px;
  padding: 42px 38px 38px;
  border: 4px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(61, 214, 180, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(61, 214, 180, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  box-shadow:
    0 0 0 4px var(--cream),
    0 0 0 8px var(--line),
    12px 12px 0 var(--shadow);
}

.container::before {
  position: absolute;
  top: 12px;
  left: 16px;
  width: 68px;
  height: 8px;
  content: "";
  background:
    linear-gradient(
      90deg,
      var(--red) 0 20px,
      transparent 20px 24px,
      var(--yellow) 24px 44px,
      transparent 44px 48px,
      var(--mint) 48px 68px
    );
  box-shadow: 0 3px 0 rgba(23, 32, 51, 0.16);
}

.container::after {
  position: absolute;
  top: 11px;
  right: 16px;
  content: "◆ ◆ ◆";
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 4px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  position: relative;
  margin: 8px 0 26px;
  padding: 18px 20px 16px;
  border: 4px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff9c9 0 50%, #ffe786 50% 100%);
  box-shadow:
    inset 0 -4px 0 rgba(255, 159, 67, 0.35),
    6px 6px 0 var(--orange);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.35;
  text-shadow:
    2px 2px 0 #ffffff,
    4px 4px 0 rgba(255, 111, 174, 0.28);
}

h1::after {
  display: inline-block;
  margin-left: 10px;
  color: var(--pink);
  content: "▮";
  animation: cursor-blink 0.85s steps(1) infinite;
}

h2 {
  position: relative;
  margin: 34px 0 18px;
  padding: 12px 16px 12px 22px;
  border: 3px solid var(--line);
  border-left-width: 9px;
  border-left-color: var(--mint-dark);
  color: #173c4b;
  background:
    linear-gradient(180deg, #ecfff9 0 50%, #d8f7ee 50% 100%);
  box-shadow: 5px 5px 0 #9edfd2;
  font-size: clamp(1.18rem, 2.5vw, 1.45rem);
  line-height: 1.45;
}

h2::before {
  margin-right: 8px;
  color: var(--pink);
  content: "▸";
}

h3 {
  margin: 24px 0 10px;
  color: var(--blue-dark);
  font-size: 1.08rem;
}

p {
  margin: 10px 0;
}

.page-intro,
.required-text,
.help-text,
.best-photo figcaption {
  color: var(--muted);
}

strong {
  color: var(--ink);
}

::selection {
  color: var(--ink);
  background: var(--yellow);
}

a {
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    color 0.12s steps(2),
    background-color 0.12s steps(2),
    transform 0.12s steps(2);
}

a:hover,
a:focus-visible {
  color: #ffffff;
  background-color: var(--blue);
  outline: 3px solid var(--line);
  text-decoration: none;
}

hr {
  height: 8px;
  margin: 34px 0;
  border: 0;
  background:
    repeating-linear-gradient(
      90deg,
      var(--mint-dark) 0 12px,
      transparent 12px 18px,
      var(--pink) 18px 30px,
      transparent 30px 36px
    );
  opacity: 0.72;
}

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

.portal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.portal-nav li {
  flex: 1 1 150px;
}

.portal-nav a {
  display: block;
  min-height: 50px;
  padding: 11px 15px;
  border: 3px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0 50%, #e9f9f5 50% 100%);
  box-shadow: 5px 5px 0 var(--mint-dark);
  text-align: center;
  text-decoration: none;
}

.portal-nav a:hover,
.portal-nav a:focus-visible {
  color: #ffffff;
  background:
    linear-gradient(180deg, var(--blue) 0 50%, var(--blue-dark) 50% 100%);
  box-shadow: 2px 2px 0 var(--line);
  transform: translate(3px, 3px);
}

.portal-nav a:active {
  box-shadow: none;
  transform: translate(5px, 5px);
}

.portal-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.portal-layout > div {
  flex: 1 1 0;
  min-width: 0;
}

.portal-layout > .sidebar-column {
  position: sticky;
  top: 20px;
  z-index: 5;
  display: grid;
  flex: 0 1 370px;
  align-self: flex-start;
  min-width: 350px;
  gap: 24px;
}

.portal-layout > .sidebar-column aside h2 {
  white-space: nowrap;
  font-size: 1.2rem;
}

.portal-layout > .sidebar-column .info-list {
  margin: 0;
  padding-left: 22px;
}

.portal-layout > .sidebar-column .info-list li {
  margin-bottom: 6px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.portal-layout > .sidebar-column .info-list li:last-child {
  margin-bottom: 0;
}

.content-card,
aside,
.visitor-card,
.weather-card,
.result-card {
  position: relative;
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 0;
  background-color: #fffef8;
  box-shadow:
    inset 0 0 0 3px #ffffff,
    6px 6px 0 #a8b4c9;
  transition:
    transform 0.12s steps(2),
    box-shadow 0.12s steps(2);
}

.content-card::before,
aside::before,
.visitor-card::before,
.weather-card::before,
.result-card::before {
  position: absolute;
  top: -3px;
  right: 14px;
  width: 34px;
  height: 8px;
  content: "";
  background: var(--pink);
  box-shadow:
    -40px 0 0 var(--yellow),
    -80px 0 0 var(--mint);
}

.content-card:hover,
aside:hover,
.visitor-card:hover,
.weather-card:hover,
.result-card:hover {
  box-shadow:
    inset 0 0 0 3px #ffffff,
    9px 9px 0 var(--blue-dark);
  transform: translate(-3px, -3px);
}

.content-card + .content-card {
  margin-top: 24px;
}

aside h2,
.visitor-card h2,
.weather-card h2,
.content-card h2,
.result-card h2 {
  margin-top: 0;
}

.profile-list,
.goal-list,
.info-list,
.result-card ul {
  padding-left: 24px;
}

.profile-list li,
.goal-list li,
.info-list li,
.result-card li {
  margin-bottom: 8px;
}

.keyword-list dt {
  margin-top: 18px;
  color: var(--mint-dark);
  font-weight: 700;
}

.keyword-list dt::before {
  margin-right: 8px;
  color: var(--pink);
  content: "■";
}

.keyword-list dd {
  margin: 5px 0 0 22px;
  color: var(--muted);
}

.best-photo {
  position: relative;
  margin: 20px 0;
  padding: 12px;
  border: 3px solid var(--line);
  background-color: #ffffff;
  box-shadow: 7px 7px 0 var(--pink);
}

.best-photo::before {
  position: absolute;
  top: -10px;
  left: 18px;
  padding: 3px 9px;
  border: 2px solid var(--line);
  content: "BEST SHOT";
  color: var(--ink);
  background-color: var(--yellow);
  font-size: 0.72rem;
}

.best-photo img {
  width: 100%;
  max-height: 380px;
  border: 3px solid var(--line);
  border-radius: 0;
  object-fit: cover;
}

.best-photo figcaption {
  padding: 12px 4px 2px;
  font-size: 0.92rem;
}

.schedule-block {
  margin-bottom: 28px;
  padding: 16px;
  border: 3px solid var(--line);
  background-color: #fffdf1;
  box-shadow: 5px 5px 0 var(--yellow);
}

.schedule-item {
  margin: 0;
  padding: 11px 14px;
  border-bottom: 2px dashed #aeb7c6;
}

.schedule-item:last-child {
  border-bottom: 0;
}

mark {
  padding: 3px 7px;
  border: 2px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--orange);
}

.table-wrap {
  overflow-x: auto;
  padding: 0 0 10px;
}

.schedule-table {
  width: 100%;
  min-width: 720px;
  border: 4px solid var(--line);
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 7px 7px 0 var(--blue-dark);
  text-align: center;
}

.schedule-table th,
.schedule-table td {
  padding: 13px 10px;
  border: 2px solid var(--line);
  vertical-align: middle;
}

.schedule-table th {
  color: #ffffff;
  background:
    linear-gradient(180deg, var(--blue) 0 50%, var(--blue-dark) 50% 100%);
  font-weight: 700;
  text-shadow: 2px 2px 0 #172033;
}

.schedule-table tbody tr:nth-child(even) {
  background-color: #effaf7;
}

.schedule-table tbody tr:hover {
  background-color: #fff5bd;
}

.schedule-table .lunch-row {
  color: #503b00;
  background:
    linear-gradient(180deg, #fff4a7 0 50%, #ffe06f 50% 100%);
  font-weight: 700;
}

.media-player {
  width: 100%;
  max-width: 520px;
  border: 3px solid var(--line);
  background-color: #eefcf8;
  box-shadow: 5px 5px 0 var(--mint-dark);
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.trip-card {
  position: relative;
  margin: 0;
  padding: 12px;
  border: 3px solid var(--line);
  border-radius: 0;
  background-color: #ffffff;
  box-shadow: 6px 6px 0 #a9b7cb;
  transition:
    transform 0.13s steps(2),
    box-shadow 0.13s steps(2);
}

.trip-card:nth-child(3n + 1) {
  box-shadow: 6px 6px 0 var(--pink);
}

.trip-card:nth-child(3n + 2) {
  box-shadow: 6px 6px 0 var(--mint-dark);
}

.trip-card:nth-child(3n) {
  box-shadow: 6px 6px 0 var(--orange);
}

.trip-card::after {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--line);
  content: "";
  background-color: var(--yellow);
}

.trip-card:hover {
  z-index: 2;
  box-shadow: 10px 10px 0 var(--blue-dark);
  transform: translate(-4px, -4px) rotate(-1deg);
}

.trip-card img {
  width: 100%;
  height: 185px;
  border: 3px solid var(--line);
  border-radius: 0;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.trip-card figcaption {
  margin-top: 10px;
  padding: 9px 8px 5px;
  border-top: 3px dashed var(--line);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
}

.travel-video {
  width: 100%;
  max-width: 680px;
  border: 4px solid var(--line);
  border-radius: 0;
  background-color: #080b12;
  box-shadow:
    8px 8px 0 var(--pink),
    12px 12px 0 var(--line);
}

.signup-form fieldset {
  margin: 0 0 28px;
  padding: 26px;
  border: 3px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(79, 124, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(79, 124, 255, 0.04) 1px, transparent 1px),
    #fffef8;
  background-size: 16px 16px;
  box-shadow: 7px 7px 0 #b8c2d4;
}

.signup-form legend {
  padding: 7px 13px;
  border: 3px solid var(--line);
  color: #ffffff;
  background:
    linear-gradient(180deg, var(--mint) 0 50%, var(--mint-dark) 50% 100%);
  box-shadow: 4px 4px 0 var(--line);
  font-size: 1.05rem;
  font-weight: 700;
}

.form-group {
  display: grid;
  gap: 9px;
  margin-bottom: 22px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label,
.group-label {
  font-weight: 700;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 3px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background-color: #ffffff;
  box-shadow: inset 4px 4px 0 #e4e8f1;
  font: inherit;
  transition:
    border-color 0.12s steps(2),
    box-shadow 0.12s steps(2),
    transform 0.12s steps(2);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--blue);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pink);
  outline: 3px dashed var(--blue-dark);
  outline-offset: 4px;
  box-shadow: inset 4px 4px 0 #fff3a6;
  transform: translate(-1px, -1px);
}

textarea {
  min-height: 170px;
  resize: vertical;
}

.choice-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.choice-options label {
  padding: 7px 10px;
  border: 2px solid transparent;
  font-weight: 400;
}

.choice-options label:hover {
  border-color: var(--line);
  background-color: #fff5bd;
}

input[type="radio"],
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 6px;
  accent-color: var(--pink);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

button,
.button-link {
  display: inline-block;
  padding: 13px 24px;
  border: 3px solid var(--line);
  border-radius: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, var(--blue) 0 50%, var(--blue-dark) 50% 100%);
  box-shadow: 6px 6px 0 var(--line);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.1s steps(2),
    box-shadow 0.1s steps(2),
    filter 0.1s steps(2);
}

button:hover,
button:focus-visible,
.button-link:hover,
.button-link:focus-visible {
  color: #ffffff;
  background:
    linear-gradient(180deg, var(--pink) 0 50%, #d74687 50% 100%);
  box-shadow: 3px 3px 0 var(--line);
  outline: 0;
  filter: brightness(1.05);
  transform: translate(3px, 3px);
}

button:active,
.button-link:active {
  box-shadow: none;
  transform: translate(6px, 6px);
}

button[type="reset"] {
  background:
    linear-gradient(180deg, #9ba9bd 0 50%, #667287 50% 100%);
}

button[type="reset"]:hover,
button[type="reset"]:focus-visible {
  background:
    linear-gradient(180deg, var(--orange) 0 50%, #d97720 50% 100%);
}

.page-footer {
  margin-top: 38px;
  padding: 20px 18px 0;
  border-top: 4px double var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.page-footer::before {
  display: block;
  margin-bottom: 12px;
  color: var(--mint-dark);
  content: "◆ SAVE COMPLETE ◆";
  letter-spacing: 2px;
}

.home-link {
  display: inline-block;
  margin-top: 26px;
}

@keyframes cursor-blink {
  0%,
  48% {
    opacity: 1;
  }

  49%,
  100% {
    opacity: 0;
  }
}

@keyframes pixel-background {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      64px 64px,
      -80px 80px,
      16px 16px,
      16px 16px;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .portal-layout {
    gap: 18px;
  }

  .portal-layout > .sidebar-column {
    top: 14px;
    flex-basis: 300px;
    min-width: 280px;
    gap: 18px;
  }

  .portal-layout > .sidebar-column > aside,
  .portal-layout > .sidebar-column > .visitor-card,
  .portal-layout > .sidebar-column > .weather-card {
    padding: 18px;
  }

  .portal-layout > .sidebar-column aside h2,
  .portal-layout > .sidebar-column .visitor-card h2,
  .portal-layout > .sidebar-column .weather-card h2 {
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .portal-layout > .sidebar-column .info-list {
    padding-left: 20px;
  }

  .portal-layout > .sidebar-column .info-list li {
    margin-bottom: 5px;
    line-height: 1.45;
  }

  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .portal-layout {
    flex-direction: column;
    gap: 20px;
  }

  .portal-layout > .sidebar-column {
    position: static;
    width: 100%;
    min-width: 0;
    gap: 20px;
  }

  .portal-layout > .sidebar-column > aside,
  .portal-layout > .sidebar-column > .visitor-card,
  .portal-layout > .sidebar-column > .weather-card {
    width: 100%;
    padding: 18px;
  }

  .portal-layout > .sidebar-column aside h2,
  .portal-layout > .sidebar-column .visitor-card h2,
  .portal-layout > .sidebar-column .weather-card h2 {
    margin-bottom: 12px;
    padding: 10px 14px;
    white-space: normal;
    font-size: 1.08rem;
  }

  .portal-layout > .sidebar-column .info-list {
    margin: 0;
    padding-left: 22px;
  }

  .portal-layout > .sidebar-column .info-list li {
    margin-bottom: 5px;
    line-height: 1.45;
  }
}

@media (max-width: 760px) {
  body {
    padding: 12px 0;
    font-size: 15px;
  }

  .container {
    width: min(94%, 1040px);
    margin: 14px auto 30px;
    padding: 38px 20px 24px;
    box-shadow:
      0 0 0 3px var(--cream),
      0 0 0 6px var(--line),
      7px 7px 0 var(--shadow);
  }

  h1 {
    padding: 15px;
    font-size: 1.65rem;
  }

  .portal-layout {
    flex-direction: column;
  }

  .portal-layout > .sidebar-column {
    width: 100%;
    min-width: 0;
    gap: 18px;
  }

  .portal-layout > .sidebar-column > aside,
  .portal-layout > .sidebar-column > .visitor-card,
  .portal-layout > .sidebar-column > .weather-card {
    width: 100%;
    padding: 16px;
  }

  .portal-layout > .sidebar-column aside h2,
  .portal-layout > .sidebar-column .visitor-card h2,
  .portal-layout > .sidebar-column .weather-card h2 {
    margin-bottom: 10px;
    padding: 9px 12px;
    white-space: normal;
    font-size: 1rem;
  }

  .portal-layout > .sidebar-column .info-list {
    padding-left: 20px;
  }

  .portal-layout > .sidebar-column .info-list li {
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .portal-nav ul,
  .button-group,
  .choice-options {
    flex-direction: column;
  }

  .portal-nav a,
  button,
  .button-link {
    width: 100%;
  }

  .trip-grid {
    grid-template-columns: 1fr;
  }

  .trip-card img {
    height: 220px;
  }

  .signup-form fieldset {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.js-practice {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 3px dashed var(--line);
}

.js-practice h3 {
  margin: 0 0 14px;
  padding: 9px 10px;
  border: 3px solid var(--line);
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff4a7 0 50%, #ffe06f 50% 100%);
  box-shadow: 4px 4px 0 var(--orange);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.js-button-list {
  display: grid;
  gap: 11px;
}

.js-button-list button {
  width: 100%;
  padding: 11px 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.js-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  word-break: keep-all;
}

@media (max-width: 900px) {
  .js-practice {
    margin-top: 18px;
    padding-top: 15px;
  }

  .js-button-list {
    gap: 9px;
  }
}

@media (max-width: 760px) {
  .js-button-list button {
    padding: 12px;
    font-size: 0.88rem;
  }
}

.js-lab {
  overflow: hidden;
}

.lab-intro {
  margin-bottom: 18px;
  color: var(--muted);
  word-break: keep-all;
}

.skill-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.skill-chip-list li {
  padding: 6px 10px;
  border: 2px solid var(--line);
  color: var(--ink);
  background-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--orange);
  font-size: 0.78rem;
  line-height: 1.35;
}

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

.lab-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(79, 124, 255, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(79, 124, 255, 0.045) 1px, transparent 1px),
    #fffef8;
  background-size: 14px 14px;
  box-shadow: 6px 6px 0 #a8b4c9;
}

.lab-card:nth-child(2) {
  box-shadow: 6px 6px 0 var(--pink);
}

.lab-card:nth-child(3) {
  box-shadow: 6px 6px 0 var(--mint-dark);
}

.lab-card:nth-child(4) {
  box-shadow: 6px 6px 0 var(--orange);
}

.lab-card h3 {
  margin: 12px 0 10px;
  color: var(--ink);
}

.lab-tag {
  display: inline-block;
  padding: 4px 7px;
  border: 2px solid var(--line);
  color: #ffffff;
  background-color: var(--blue-dark);
  font-size: 0.7rem;
  line-height: 1.3;
}

.live-date {
  min-height: 28px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-clock {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: clamp(1.75rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 3px 3px 0 #d6e3ff;
}

.random-message {
  min-height: 78px;
  margin: 12px 0 16px;
  padding: 12px;
  border: 2px dashed var(--line);
  background-color: #fff8cf;
  word-break: keep-all;
}

.message-pop {
  animation: message-pop 0.28s steps(3);
}

.study-checklist {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}

.study-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 9px;
  border: 2px solid #b7c1d1;
  background-color: #ffffff;
  cursor: pointer;
  line-height: 1.4;
  word-break: keep-all;
}

.study-checklist label:has(input:checked) {
  border-color: var(--mint-dark);
  background-color: #dcfff4;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.study-checklist input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.progress-track {
  width: 100%;
  height: 20px;
  overflow: hidden;
  border: 3px solid var(--line);
  background-color: #ffffff;
  box-shadow: inset 3px 3px 0 #d7deeb;
}

.progress-value {
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(
      90deg,
      var(--mint) 0 12px,
      var(--mint-dark) 12px 16px
    );
  transition: width 0.25s steps(5);
}

.progress-text {
  margin: 9px 0 13px;
  color: var(--mint-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.secondary-button {
  background:
    linear-gradient(180deg, #9ba9bd 0 50%, #667287 50% 100%);
}

.click-count {
  margin: 14px 0;
  color: var(--pink);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow:
    3px 3px 0 #ffffff,
    6px 6px 0 #ffd0e5;
}

.counter-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.counter-buttons button {
  width: 100%;
}

.count-pop {
  animation: count-pop 0.22s steps(3);
}

@keyframes message-pop {
  0% {
    transform: translateY(4px);
    opacity: 0.35;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes count-pop {
  0% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 900px) {
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .random-message {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .skill-chip-list {
    gap: 7px;
  }

  .skill-chip-list li {
    font-size: 0.72rem;
  }

  .lab-card {
    padding: 16px;
  }

  .counter-buttons {
    grid-template-columns: 1fr;
  }
}

.start-screen {
  display: none;
}

html.js:not(.intro-seen) {
  overflow: hidden;
}

html.js:not(.intro-seen) .start-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px;
  color: #f8fbff;
  background:
    linear-gradient(rgba(9, 14, 42, 0.22) 50%, transparent 50%),
    radial-gradient(circle at 15% 18%, #fff7a8 0 2px, transparent 3px),
    radial-gradient(circle at 80% 12%, #b9f8ff 0 2px, transparent 3px),
    radial-gradient(circle at 63% 32%, #ffd1ea 0 2px, transparent 3px),
    radial-gradient(circle at 25% 72%, #d6c6ff 0 2px, transparent 3px),
    linear-gradient(180deg, #0c1237 0%, #171d58 58%, #31255f 100%);
  background-size:
    100% 4px,
    auto,
    auto,
    auto,
    auto,
    auto;
  image-rendering: pixelated;
}

html.intro-seen .start-screen {
  display: none;
}

.start-screen::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 62px,
      rgba(104, 226, 255, 0.08) 62px 64px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 62px,
      rgba(104, 226, 255, 0.08) 62px 64px
    );
  animation: intro-grid-move 8s steps(8) infinite;
}

.start-scanline {
  position: fixed;
  inset: -25% 0 auto;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(144, 246, 255, 0.11),
    transparent
  );
  animation: intro-scan 4.5s linear infinite;
}

.start-console {
  position: relative;
  width: min(760px, 100%);
  padding: 52px 48px 34px;
  border: 6px solid #080d27;
  outline: 4px solid #79e9ff;
  outline-offset: -14px;
  background:
    linear-gradient(
      90deg,
      rgba(121, 233, 255, 0.06) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(121, 233, 255, 0.06) 1px,
      transparent 1px
    ),
    #101742;
  background-size: 20px 20px;
  box-shadow:
    0 0 0 8px #d8f8ff,
    0 0 0 14px #080d27,
    18px 18px 0 rgba(0, 0, 0, 0.52);
  text-align: center;
}

.start-window-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border-bottom: 4px solid #080d27;
  color: #080d27;
  background: #79e9ff;
  text-align: left;
}

.start-window-bar span {
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border: 2px solid #080d27;
  background: #ff8dc5;
}

.start-window-bar span:nth-child(2) {
  background: #ffe56e;
}

.start-window-bar span:nth-child(3) {
  background: #80f0c8;
}

.start-window-bar strong {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 1px;
}

.start-label {
  margin: 2px 0 16px;
  color: #80f0c8;
  font-size: 0.72rem;
  letter-spacing: 2px;
}

.start-title {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 4.3rem);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow:
    4px 0 0 #ff67b6,
    0 4px 0 #5edcf4,
    4px 4px 0 #080d27,
    8px 8px 0 rgba(0, 0, 0, 0.42);
}

.start-title span:last-child {
  color: #ffe56e;
}

.start-subtitle {
  margin: 18px 0 20px;
  color: #bcefff;
  font-size: clamp(0.72rem, 2vw, 1rem);
  letter-spacing: 4px;
}

.pixel-stage {
  position: relative;
  width: min(560px, 100%);
  height: 174px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid #080d27;
  background:
    linear-gradient(180deg, transparent 0 63%, rgba(71, 42, 111, 0.8) 63%),
    linear-gradient(180deg, #17205c, #36246b);
  box-shadow:
    inset 0 0 0 4px #4b5bb2,
    6px 6px 0 #080d27;
}

.stage-star {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ffffff;
  box-shadow:
    5px 0 0 #ffffff,
    -5px 0 0 #ffffff,
    0 5px 0 #ffffff,
    0 -5px 0 #ffffff;
  animation: pixel-star-blink 1.4s steps(2) infinite;
}

.star-one {
  top: 27px;
  left: 12%;
}

.star-two {
  top: 46px;
  left: 38%;
  animation-delay: 0.4s;
}

.star-three {
  top: 24px;
  right: 24%;
  animation-delay: 0.8s;
}

.star-four {
  top: 67px;
  right: 8%;
  animation-delay: 1.1s;
}

.pixel-moon {
  position: absolute;
  top: 20px;
  right: 16%;
  width: 35px;
  height: 35px;
  background: #fff0a6;
  box-shadow:
    7px 0 0 #fff0a6,
    0 7px 0 #fff0a6,
    7px 7px 0 #fff0a6,
    14px 7px 0 #17205c,
    14px 14px 0 #17205c;
}

.pixel-building {
  position: absolute;
  bottom: 28px;
  border: 3px solid #080d27;
  background: #20295d;
}

.pixel-building span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffe56e;
  box-shadow:
    14px 0 0 #79e9ff,
    0 15px 0 #ff8dc5;
}

.building-one {
  left: 3%;
  width: 74px;
  height: 58px;
}

.building-one span {
  top: 12px;
  left: 12px;
}

.building-one span:last-child {
  top: 33px;
  left: 38px;
}

.building-two {
  left: 18%;
  width: 64px;
  height: 82px;
}

.building-two span {
  top: 13px;
  left: 10px;
}

.building-two span:nth-child(2) {
  top: 35px;
  left: 34px;
}

.building-two span:nth-child(3) {
  top: 57px;
  left: 12px;
}

.building-three {
  right: 4%;
  width: 82px;
  height: 67px;
}

.building-three span {
  top: 14px;
  left: 14px;
}

.building-three span:last-child {
  top: 39px;
  left: 45px;
}

.pixel-ground {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30px;
  border-top: 4px solid #080d27;
  background:
    repeating-linear-gradient(
      90deg,
      #35406d 0 18px,
      #445288 18px 36px
    );
}

.pixel-character {
  position: absolute;
  bottom: 34px;
  left: 45%;
  z-index: 4;
  width: 42px;
  height: 70px;
  animation: hero-idle 0.8s steps(2) infinite;
}

.character-head {
  position: absolute;
  top: 5px;
  left: 10px;
  width: 24px;
  height: 23px;
  border: 4px solid #080d27;
  background: #ffc58f;
}

.character-hair {
  position: absolute;
  top: 1px;
  left: 7px;
  width: 30px;
  height: 10px;
  border: 4px solid #080d27;
  border-bottom: 0;
  background: #26305f;
}

.character-body {
  position: absolute;
  top: 27px;
  left: 7px;
  width: 30px;
  height: 27px;
  border: 4px solid #080d27;
  background: #69e3ff;
}

.character-arm {
  position: absolute;
  top: 31px;
  width: 9px;
  height: 25px;
  border: 3px solid #080d27;
  background: #ffc58f;
}

.arm-left {
  left: 0;
}

.arm-right {
  right: 0;
}

.character-leg {
  position: absolute;
  bottom: 0;
  width: 12px;
  height: 19px;
  border: 3px solid #080d27;
  background: #ff72b9;
}

.leg-left {
  left: 7px;
}

.leg-right {
  right: 5px;
}

.pixel-portal {
  position: absolute;
  right: 26%;
  bottom: 28px;
  z-index: 3;
  width: 68px;
  height: 98px;
  border: 7px solid #080d27;
  background:
    repeating-radial-gradient(
      circle,
      #ffffff 0 5px,
      #7ef1ff 6px 11px,
      #916cff 12px 17px
    );
  box-shadow:
    0 0 0 5px #ff75bd,
    0 0 24px #7ef1ff;
  animation: portal-pulse 0.9s steps(3) infinite;
}

.pixel-portal span {
  position: absolute;
  inset: 11px;
  border: 4px solid #080d27;
}

.start-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 20px;
}

.start-status span,
.start-status strong {
  padding: 5px 8px;
  border: 2px solid #080d27;
  color: #080d27;
  background: #bcefff;
  box-shadow: 3px 3px 0 #080d27;
  font-size: 0.68rem;
}

.start-status strong {
  color: #0b3c32;
  background: #80f0c8;
}

.start-button {
  min-width: min(330px, 100%);
  padding: 15px 24px;
  border: 4px solid #080d27;
  color: #080d27;
  background:
    linear-gradient(180deg, #fff59d 0 50%, #ffc943 50% 100%);
  box-shadow:
    0 0 0 4px #ffffff,
    8px 8px 0 #ff67b6;
  font-size: clamp(1rem, 3vw, 1.35rem);
  letter-spacing: 2px;
  animation: start-button-blink 1s steps(2) infinite;
}

.start-button:hover,
.start-button:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow:
    0 0 0 4px #ffffff,
    11px 11px 0 #5edcf4;
}

.start-button:active {
  transform: translate(5px, 5px);
  box-shadow:
    0 0 0 4px #ffffff,
    3px 3px 0 #ff67b6;
}

.start-button:disabled {
  cursor: wait;
  filter: grayscale(0.25);
}

.start-arrow {
  display: inline-block;
  margin-right: 8px;
  animation: start-arrow-move 0.7s steps(2) infinite;
}

.start-guide {
  margin: 20px 0 0;
  color: #ffffff;
  font-size: 0.78rem;
  word-break: keep-all;
}

.start-guide kbd {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 7px;
  border: 2px solid #080d27;
  color: #080d27;
  background: #ffffff;
  box-shadow: 2px 2px 0 #79e9ff;
  font: inherit;
}

.start-storage-note {
  margin: 12px 0 0;
  color: #9ba9d7;
  font-size: 0.65rem;
  word-break: keep-all;
}

.start-screen.is-starting .start-console {
  animation: intro-console-exit 0.76s steps(7) forwards;
}

.start-screen.is-starting::after {
  position: fixed;
  inset: 0;
  z-index: 20;
  content: "";
  pointer-events: none;
  background: #ffffff;
  animation: intro-flash 0.76s steps(4) forwards;
}

.replay-intro-button {
  margin-top: 10px;
  padding: 8px 12px;
  border-width: 3px;
  font-size: 0.75rem;
}

#portalContent:focus {
  outline: none;
}

@keyframes intro-grid-move {
  to {
    background-position:
      64px 0,
      0 64px;
  }
}

@keyframes intro-scan {
  from {
    transform: translateY(-20vh);
  }

  to {
    transform: translateY(125vh);
  }
}

@keyframes pixel-star-blink {
  50% {
    opacity: 0.25;
  }
}

@keyframes hero-idle {
  50% {
    transform: translateY(-4px);
  }
}

@keyframes portal-pulse {
  50% {
    filter: brightness(1.35);
    transform: scaleX(0.94);
  }
}

@keyframes start-button-blink {
  50% {
    filter: brightness(1.12);
  }
}

@keyframes start-arrow-move {
  50% {
    transform: translateX(5px);
  }
}

@keyframes intro-console-exit {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  55% {
    opacity: 1;
    transform: scale(1.04);
  }

  100% {
    opacity: 0;
    transform: scale(0.03);
  }
}

@keyframes intro-flash {
  0%,
  52% {
    opacity: 0;
  }

  65% {
    opacity: 0.95;
  }

  100% {
    opacity: 0;
  }
}

@media (max-width: 760px) {
  html.js:not(.intro-seen) .start-screen {
    padding: 18px;
  }

  .start-console {
    padding: 48px 20px 27px;
    outline-width: 3px;
    outline-offset: -11px;
    box-shadow:
      0 0 0 6px #d8f8ff,
      0 0 0 11px #080d27,
      10px 10px 0 rgba(0, 0, 0, 0.52);
  }

  .start-title {
    letter-spacing: 0;
  }

  .start-subtitle {
    letter-spacing: 2px;
  }

  .pixel-stage {
    height: 145px;
  }

  .pixel-character {
    left: 39%;
    transform: scale(0.88);
    transform-origin: bottom center;
  }

  .pixel-portal {
    right: 15%;
    bottom: 27px;
    width: 56px;
    height: 82px;
  }

  .building-two {
    display: none;
  }

  .start-guide {
    line-height: 1.7;
  }
}

@media (max-width: 430px) {
  .start-status span {
    display: none;
  }

  .start-console {
    padding-inline: 16px;
  }

  .pixel-character {
    left: 31%;
  }

  .pixel-portal {
    right: 12%;
  }

  .building-three {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .start-screen *,
  .start-screen::before,
  .start-screen::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .start-screen.is-starting .start-console {
    opacity: 0;
  }
}

h1 .intro-rocket-button {
  display: inline-grid;
  place-items: center;
  width: 1.55em;
  min-width: 0;
  height: 1.55em;
  margin: 0 4px 0 8px;
  padding: 0;
  border: 3px solid var(--line);
  color: inherit;
  background:
    linear-gradient(180deg, #ffffff 0 50%, #dff7ff 50% 100%);
  box-shadow:
    3px 3px 0 var(--blue),
    6px 6px 0 var(--line);
  font: inherit;
  font-size: 0.72em;
  line-height: 1;
  text-shadow: none;
  vertical-align: 0.12em;
  cursor: pointer;
  animation: header-rocket-idle 1.3s steps(3) infinite;
}

h1 .intro-rocket-button:hover,
h1 .intro-rocket-button:focus-visible {
  color: inherit;
  background:
    linear-gradient(180deg, #fff7a7 0 50%, #ffc952 50% 100%);
  box-shadow:
    2px 2px 0 var(--pink),
    5px 5px 0 var(--line);
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  filter: none;
  transform: translate(2px, 2px) rotate(-8deg);
}

h1 .intro-rocket-button:active {
  box-shadow: none;
  transform: translate(6px, 6px) rotate(-8deg);
}

@keyframes header-rocket-idle {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@media (max-width: 760px) {
  h1 .intro-rocket-button {
    margin-left: 5px;
    border-width: 2px;
    box-shadow:
      2px 2px 0 var(--blue),
      4px 4px 0 var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1 .intro-rocket-button {
    animation: none;
  }
}

.visitor-card h2 {
  margin-bottom: 16px;
}

.visitor-counter {
  display: grid;
  gap: 8px;
  margin-top: 0;
  padding: 14px;
  border: 3px solid var(--line);
  background:
    linear-gradient(180deg, #182052 0 48%, #10163e 48% 100%);
  box-shadow:
    4px 4px 0 var(--blue),
    8px 8px 0 var(--line);
  text-align: center;
}

.visitor-counter span {
  color: #9cefff;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.visitor-counter strong {
  color: #fff07e;
  font-size: 2rem;
  letter-spacing: 5px;
  line-height: 1;
  text-shadow:
    3px 3px 0 #ff68b4,
    5px 5px 0 #080d27;
}

.daily-quest-card {
  background:
    linear-gradient(90deg, rgba(255, 198, 68, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 198, 68, 0.08) 1px, transparent 1px),
    #fffdf1;
  background-size: 18px 18px;
  box-shadow:
    7px 7px 0 var(--yellow),
    12px 12px 0 var(--line);
}

.quest-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quest-heading h2 {
  margin-bottom: 0;
}

.quest-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 2px solid var(--line);
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 0.72rem;
}

.daily-quest {
  min-height: 54px;
  margin: 20px 0 16px;
  padding: 14px;
  border: 3px dashed var(--line);
  background: #ffffff;
  font-size: 0.95rem;
  line-height: 1.65;
  word-break: keep-all;
}

#completeQuestButton.is-complete {
  color: #10372f;
  background:
    linear-gradient(180deg, #b9ffe9 0 50%, #72ddb9 50% 100%);
  box-shadow: 4px 4px 0 var(--mint-dark);
}

.dom-practice-page {
  min-height: calc(100vh - 48px);
}

.dom-lab-main {
  margin-top: 24px;
}

.dom-lab-main .lab-card {
  display: flex;
  flex-direction: column;
}

.dom-lab-main .lab-card > h2 {
  margin: 0 0 18px;
}

.dom-lab-main .random-message {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 125px;
  text-align: center;
}

.dom-lab-main .clock-card {
  justify-content: center;
  text-align: center;
}

.dom-lab-main .live-clock {
  margin-top: 20px;
}

.dom-lab-main .counter-card {
  justify-content: center;
}

.dom-lab-main .click-count {
  margin-block: 32px;
}

@media (max-width: 760px) {
  .quest-heading {
    align-items: flex-start;
  }

  .visitor-counter strong {
    font-size: 1.7rem;
  }

  .dom-lab-main {
    margin-top: 18px;
  }
}

.weather-card h2 {
  margin-bottom: 16px;
}

.weather-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.weather-select {
  width: 100%;
  min-height: 46px;
  padding: 9px 38px 9px 11px;
  border: 3px solid var(--line);
  color: var(--ink);
  background-color: #ffffff;
  box-shadow: 4px 4px 0 var(--blue);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.weather-select:focus {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.weather-box {
  min-height: 178px;
  margin-top: 18px;
  padding: 16px;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(58, 91, 190, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(58, 91, 190, 0.06) 1px, transparent 1px),
    #f4fffc;
  background-size: 14px 14px;
  box-shadow:
    inset 5px 0 0 var(--mint),
    5px 5px 0 var(--line);
}

.weather-box.is-loading {
  background-color: #fff9db;
}

.weather-box.is-success {
  background-color: #e8fff8;
}

.weather-box.is-error {
  background-color: #fff0f3;
}

.weather-city {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
  word-break: keep-all;
}

.weather-coordinate,
.weather-time,
.weather-loading,
.weather-error {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
  word-break: keep-all;
}

.weather-values {
  display: grid;
  gap: 10px;
}

.weather-values p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px;
  border: 2px solid #aebbd3;
  background: #ffffff;
  line-height: 1.4;
}

.weather-values span {
  font-size: 0.73rem;
}

.weather-values strong {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.92rem;
}

#weatherRetryButton {
  width: 100%;
  margin-top: 14px;
}

@media (min-width: 841px) {
  .portal-layout > .sidebar-column {
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 3px 12px 12px 3px;
    scrollbar-width: thin;
  }
}

@media (max-width: 760px) {
  .weather-box {
    min-height: 155px;
  }
}

.weather-card h2,
.visitor-card h2 {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.weather-card,
.visitor-card {
  min-width: 0;
}

.weather-select {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.weather-city {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-values p {
  flex-wrap: nowrap;
}

.weather-values span,
.weather-values strong {
  white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 841px) {
  .portal-layout > .sidebar-column {
    flex-basis: 340px;
    min-width: 320px;
  }

  .weather-card h2,
  .visitor-card h2 {
    font-size: 0.94rem;
  }
}

@media (max-width: 840px) {
  .weather-card h2,
  .visitor-card h2 {
    white-space: normal;
    font-size: 1rem;
  }
}


.profile-section {
  margin-top: 28px;
}

.profile-section:first-child {
  margin-top: 12px;
}

.profile-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-card-list .profile-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 22px 18px 18px;
  border: 3px solid var(--line);
  background:
    linear-gradient(90deg, rgba(79, 124, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(79, 124, 255, 0.06) 1px, transparent 1px),
    #fffef8;
  background-size: 14px 14px;
  box-shadow:
    6px 6px 0 var(--blue),
    10px 10px 0 var(--line);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.profile-card-list .profile-card:nth-child(2) {
  box-shadow:
    6px 6px 0 var(--pink),
    10px 10px 0 var(--line);
}

.profile-card-list .profile-card:nth-child(3) {
  box-shadow:
    6px 6px 0 var(--mint),
    10px 10px 0 var(--line);
}

.profile-card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 3px solid var(--line);
  background: #fff4a7;
  box-shadow: 4px 4px 0 var(--orange);
  font-size: 1.65rem;
  line-height: 1;
}

.profile-card-number {
  display: inline-block;
  padding: 5px 9px;
  border: 2px solid var(--line);
  color: #ffffff;
  background: var(--blue-dark);
  box-shadow: 3px 3px 0 var(--line);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.profile-card strong,
.keyword-list dt {
  color: var(--blue-dark);
  font-size: 1rem;
  line-height: 1.45;
}

.profile-card > span:last-child,
.keyword-list dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.65;
}

.keyword-list {
  margin: 0;
}

.keyword-list .profile-card {
  min-height: 160px;
}

.keyword-list dt::before {
  content: "◆";
  margin-right: 7px;
  color: var(--pink);
}

@media (max-width: 900px) {
  .profile-card-list {
    grid-template-columns: 1fr;
  }

  .profile-card-list .profile-card,
  .keyword-list .profile-card {
    min-height: auto;
  }
}
