@import "https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@300;400;500&family=M+PLUS+Rounded+1c:wght@400;700;900&display=swap";

:root {
  --primary-color: #48c774;
  --secondary-color: #3298dc;
  --accent-color: #ffdd57;
  --text-color: #4a4a4a;
  --bg-color: #fafafa;
  --font-main: "M PLUS Rounded 1c", sans-serif;
  --font-hand: "Kiwi Maru", serif;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, .1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, .1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --neo-bg: #f4f4f0;
  --neo-text: #1a1a1a;
  --neo-primary: #5b8dee;
  --neo-secondary: #48c9b0;
  --neo-accent: #f39c12;
  --neo-pink: #e74c3c;
  --neo-purple: #9b59b6;
  --neo-accent-bg: #fff8e1;
  --neo-border: 3px solid #1a1a1a;
  --neo-shadow: 6px 6px 0px #1a1a1a;
  --neo-shadow-hover: 10px 10px 0px #1a1a1a;
  --neo-radius: 16px;
}

body {
  padding-top: 70px;
  position: relative;
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--bg-color);
}

body:before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -2;
  width: 100%;
  height: 100vh;
  background: url("/bg_img9.png");
  background-repeat: repeat;
}

body:after {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, .5);
}

body.dashboard-page {
  background: var(--bg-color);
  padding-top: 0;
}

body.dashboard-page:before, body.dashboard-page:after {
  display: none;
}

.ultra-wrapper {
  font-family: Helvetica Neue, Arial, Hiragino Kaku Gothic ProN, sans-serif;
  background-color: rgba(0, 0, 0, 0);
  color: var(--neo-text);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
}

.pop-title {
  font-family: var(--font-hand);
  font-size: 2rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.pop-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: .5rem auto 0;
  border-radius: 2px;
}

.no-spin {
  -moz-appearance: textfield;
}

.no-spin::-webkit-inner-spin-button, .no-spin::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.simple-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2-cols {
  grid-template-columns: 1fr 1fr;
}

.grid-3-cols {
  grid-template-columns: repeat(3, 1fr);
}

@media (width <= 768px) {
  .grid-2-cols, .grid-3-cols {
    grid-template-columns: 1fr;
  }
}

.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.bubble-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bubble-circle {
  position: absolute;
  background: rgba(72, 199, 116, .1);
  border-radius: 50%;
  animation: 20s linear infinite floatUp;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh)scale(0);
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

@keyframes feedback-pop {
  0% {
    transform: scale(.5);
    opacity: 0;
  }

  50% {
    transform: scale(1.2);
  }

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

@keyframes wiggle {
  0%, 100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

.fun-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fun-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}

.card-header {
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0;
}

.card-subtitle {
  font-size: .9rem;
  color: #888;
  margin-top: .25rem;
}

.card-body {
  flex-grow: 1;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.card-text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.fun-btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: background .2s;
  border: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: auto;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-accent {
  background-color: var(--accent-color);
  color: #333;
}

.btn-dark {
  background-color: #363636;
  color: #fff;
}

.btn-link {
  background-color: #3273dc;
  color: #fff;
}

.btn-info {
  background-color: #209cee;
  color: #fff;
}

.btn-danger {
  background-color: #ff3860;
  color: #fff;
}

.btn-warning {
  background-color: #ffdd57;
  color: rgba(0, 0, 0, .7);
}

.btn-black {
  background-color: #0a0a0a;
  color: #fff;
}

.fun-btn:hover {
  opacity: .9;
}

.game-container {
  background-color: #fff8e1;
  border: 2px solid var(--accent-color);
}

.game-area-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 2px dashed #ddd;
  margin-top: 1rem;
}

.score-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.code-snippet {
  background: #2d2d2d;
  color: #76e094;
  padding: .8rem;
  border-radius: 8px;
  font-family: monospace;
  margin-bottom: 1rem;
}

.input-box {
  width: 100%;
  padding: .8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-sizing: border-box;
}

.booking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-note {
  font-size: .8rem;
  color: #666;
  text-align: center;
  margin-top: -.5rem;
}

.contact-info {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
}

.contact-label {
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: .5rem;
  display: block;
}

.footer-note {
  text-align: center;
  font-size: .8rem;
  color: #999;
  margin-top: 2rem;
}

.top-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 4px solid #1a1a1a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  transition: background-color .3s;
}

.top-navbar.type2 {
  background: #48c9b0;
  border-bottom: 4px solid #1a1a1a;
  box-shadow: none;
}

.top-navbar.type2 .navbar-item, .top-navbar.type2 .navbar-item i {
  color: #fff !important;
}

@media (width <= 968px) {
  .top-navbar.type2 .navbar-menu .navbar-item, .top-navbar.type2 .navbar-menu .navbar-item i {
    color: #1a1a1a !important;
  }
}

.navbar-container {
  max-width: 1400px;
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  transition: transform .3s;
}

.navbar-logo img:hover {
  transform: scale(1.05);
}

.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid #1a1a1a;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: all .3s;
}

.navbar-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  transition: all .3s;
}

.navbar-burger.is-active span:first-child {
  transform: rotate(45deg)translate(7px, 7px);
}

.navbar-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.is-active span:nth-child(3) {
  transform: rotate(-45deg)translate(7px, -7px);
}

@media (width <= 968px) {
  .navbar-burger {
    display: flex;
  }
}

.navbar-menu {
  display: flex;
  align-items: center;
}

@media (width <= 968px) {
  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 4px solid #1a1a1a;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
  }

  .navbar-menu.is-active {
    max-height: 600px;
    padding: 1rem 0;
  }
}

.navbar-end {
  display: flex;
  align-items: center;
  gap: .75rem;
}

@media (width <= 968px) {
  .navbar-end {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
}

.navbar-item {
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a1a1a;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  padding: .5rem;
  margin-right: 1rem;
}

.navbar-item:last-child {
  margin-right: 0;
}

.navbar-item:hover {
  opacity: .8;
}

.navbar-item i {
  margin-right: .5rem;
  font-size: 1.2rem;
}

.navbar-btn {
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all .3s;
  border: 3px solid #1a1a1a;
  cursor: pointer;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 3px 3px #1a1a1a;
  font-family: inherit;
}

.navbar-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px #1a1a1a;
}

.navbar-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px #1a1a1a;
}

@media (width <= 968px) {
  .navbar-btn {
    width: 100%;
    text-align: center;
  }
}

.btn-game {
  background: #2c3e50;
  color: #fff;
}

.btn-blog {
  background: #e74c3c;
  color: #fff;
}

.btn-contact {
  background: #f39c12;
  color: #fff;
}

.btn-reserve {
  background: #5b8dee;
  color: #fff;
}

.btn-dashboard {
  background: #48c9b0;
  color: #fff;
}

.navbar-dropdown-wrapper {
  position: relative;
}

.navbar-dropdown-wrapper:hover .navbar-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (width <= 968px) {
  .navbar-dropdown-wrapper {
    width: 100%;
  }
}

.navbar-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  box-shadow: 6px 6px #1a1a1a;
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all .3s;
}

@media (width <= 968px) {
  .navbar-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: .5rem;
    width: 100%;
  }
}

.dropdown-label {
  display: block;
  padding: .5rem 1rem .25rem;
  font-size: .75rem;
  color: #666;
  font-weight: 700;
  text-transform: uppercase;
}

.dropdown-item {
  display: block;
  padding: .5rem 1rem;
  color: #1a1a1a;
  text-decoration: none;
  transition: all .2s;
  font-size: .9rem;
}

.dropdown-item:hover {
  background: #f4f4f0;
  padding-left: 1.5rem;
}

.dropdown-divider {
  margin: .5rem 0;
  border: 0;
  border-top: 2px solid #e0e0e0;
}

.typing-preview {
  font-family: monospace;
  background: #f5f5f5;
  padding: 1rem;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.5;
}

.typing-game-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(.4rem, 1vw, .8rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px - 1rem);
  max-height: calc(100vh - 70px - 1rem);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.typing-game-grid {
  display: grid;
  grid-template-columns: minmax(140px, .3fr) minmax(0, 1.7fr);
  gap: .6rem;
  align-items: flex-start;
  height: 100%;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 230px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.gameplay-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
}

@media (width <= 1400px) {
  .typing-game-grid {
    grid-template-columns: minmax(150px, .33fr) minmax(0, 1.67fr);
    gap: .6rem;
  }

  .info-column {
    max-width: 220px;
  }

  .typing-stats .stat-label {
    font-size: .58rem;
  }

  .typing-stats .stat-value {
    font-size: .95rem;
  }

  .clear-conditions {
    font-size: .8rem;
  }
}

@media (width <= 1100px) {
  .typing-game-grid {
    grid-template-columns: minmax(140px, .33fr) minmax(0, 1.67fr);
    gap: .6rem;
  }

  .info-column {
    max-width: 240px;
  }

  .typing-stats .stat-label {
    font-size: .52rem;
  }

  .typing-stats .stat-value {
    font-size: .85rem;
  }

  .clear-conditions {
    font-size: .8rem;
  }

  .typing-line {
    font-size: 1.6rem;
  }
}

@media (width <= 1024px) {
  .typing-game-grid {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .info-column {
    max-width: none;
    overflow: visible;
  }
}

.typing-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.typing-text {
  font-family: "M PLUS Rounded 1c", monospace;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
}

.typing-scroll-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  mask-image: linear-gradient(rgba(0, 0, 0, 0) 0%, #000 20% 80%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0) 0%, #000 20% 80%, rgba(0, 0, 0, 0) 100%);
}

.typing-scroll-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s cubic-bezier(.25, 1, .5, 1);
}

.typing-line {
  font-size: 2.5rem;
  line-height: 1.5;
  padding: .5rem 0;
  color: #ccc;
  transition: all .3s;
  text-align: center;
  width: 100%;
  opacity: .4;
  transform: scale(.9);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.typing-line.active {
  color: #333;
  font-weight: bold;
  opacity: 1;
  transform: scale(1.1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.typing-line.completed {
  color: #888;
  opacity: .6;
}

@media (width <= 768px) {
  .typing-line {
    font-size: 1.2rem;
  }
}

@media (width <= 480px) {
  .typing-line {
    font-size: .9rem;
  }
}

.romaji-text {
  font-family: Courier New, Courier, monospace;
  font-size: .5em;
  color: #888;
  margin-top: .2rem;
  display: block;
  height: 1em;
}

.char {
  display: inline-block;
  transition: color .1s;
}

.char.correct {
  color: var(--primary-color);
}

.char.wrong {
  color: #ff3860;
  background-color: rgba(255, 56, 96, .1);
  border-radius: 2px;
}

.char.current {
  background-color: var(--accent-color);
  color: #333;
  border-radius: 2px;
  animation: 1s infinite blink;
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background-color: var(--primary-color);
  vertical-align: middle;
  margin-left: -1px;
  animation: 1s infinite blink;
}

.typing-input-hidden {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  cursor: default;
  z-index: 10;
}

.typing-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  background: #f0f0f0;
  border-radius: 8px;
  font-family: monospace;
  font-size: 1.1rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-label {
  font-size: .8rem;
  color: #666;
}

.status-value {
  font-weight: bold;
  color: #333;
}

.keyboard-hint {
  margin-top: 1rem;
  text-align: center;
  color: #888;
  font-size: .9rem;
}

.key-hint {
  display: inline-block;
  padding: .2rem .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  margin: 0 .2rem;
  font-family: monospace;
  font-weight: bold;
}

.keyboard-responsive-wrapper {
  transform: scale(.75);
  transform-origin: top;
  transition: transform .2s;
  width: 100%;
  overflow: visible;
}

@media (width <= 1200px) {
  .keyboard-responsive-wrapper {
    transform: scale(.65);
  }
}

@media (width <= 980px) {
  .keyboard-responsive-wrapper {
    transform: scale(.55);
  }
}

@media (width <= 820px) {
  .keyboard-responsive-wrapper {
    transform: scale(.48);
  }
}

@media (width <= 720px) {
  .keyboard-responsive-wrapper {
    transform: scale(.42);
  }
}

@media (width <= 600px) {
  .typing-game-container {
    padding: .5rem .6rem;
    height: calc(92vh - 70px);
    max-height: calc(92vh - 70px);
  }

  .typing-area {
    padding: .7rem;
  }

  .typing-text {
    font-size: 1.3rem;
  }

  .typing-game-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .info-column {
    order: 2;
  }

  .gameplay-column {
    order: 1;
  }

  .typing-status-bar {
    font-size: .9rem;
    padding: .5rem;
  }
}

@media (width <= 600px) and (width <= 480px) {
  .typing-text {
    font-size: 10px !important;
  }
}

.typing-line-block {
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.japanese-text {
  font-size: 1em;
  line-height: 1.2em;
  color: #555;
  margin-bottom: 0;
}

.romaji-text {
  font-size: 2.05em;
  color: #888;
  font-family: Courier New, Courier, monospace;
  margin-top: 0;
}

.typing-line.active .japanese-text {
  color: #333;
  font-weight: bold;
}

.typing-line.active .romaji-text {
  color: #555;
  font-weight: bold;
}

.char {
  transition: color .1s;
}

.char.correct {
  color: var(--primary-color);
}

.char.wrong {
  color: #ff3860;
  background-color: rgba(255, 56, 96, .1);
  border-radius: 2px;
}

.char.current {
  background-color: var(--accent-color);
  color: #333;
  border-radius: 2px;
}

.next-char-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: bold;
  background: #e6f7ff;
  padding: .5rem;
  border-radius: 8px;
  display: inline-block;
}

.start-screen {
  text-align: center;
  padding: 2rem;
}

.start-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.start-instruction {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.key-instruction {
  display: inline-block;
  padding: .5rem 1rem;
  background: #eee;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-family: monospace;
  font-weight: bold;
  font-size: 1.5rem;
  color: #333;
  margin-bottom: .5rem;
}

.instruction {
  font-size: 1.1rem;
  color: #666;
  animation: 2s infinite pulse;
}

.typing-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: .5rem;
  padding: .75rem;
  background: linear-gradient(135deg, #e0f7fa 0%, #e8f5e9 100%);
  border-radius: 12px;
}

.char-correct {
  color: var(--primary-color);
}

.char-ng {
  color: #ff3860;
}

.typing-char {
  display: inline-block;
  min-width: .65em;
  font-family: inherit;
  text-decoration: none;
}

.char-miss {
  color: #ff3860;
}

.char-current {
  display: inline-block;
  border-bottom: 3px solid var(--neo-accent);
  padding-bottom: 2px;
  min-width: .5em;
}

.char-pending {
  color: #bbb;
}

span.space-char {
  color: rgba(0, 0, 0, 0) !important;
  text-shadow: 0 0 !important;
}

span.space-char.char-current {
  color: rgba(0, 0, 0, 0) !important;
  text-shadow: 0 0 !important;
}

span.space-char.char-ng {
  color: rgba(0, 0, 0, 0) !important;
  text-shadow: 0 0 !important;
}

span.space-char.char-pending {
  color: rgba(0, 0, 0, 0) !important;
  text-shadow: 0 0 !important;
}

span.space-char.char-correct {
  color: rgba(0, 0, 0, 0) !important;
  text-shadow: 0 0 !important;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: .8rem;
  color: #666;
  display: block;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.result-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  text-align: center;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  margin: 0 auto;
  animation: .5s ease-out slideUp;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.result-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.result-score {
  font-size: 4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  padding-bottom: .5rem;
}

.detail-label {
  color: #666;
}

.detail-value {
  font-weight: bold;
  color: #333;
}

.result-card button {
  margin-top: 2rem;
  width: 100%;
}

.typing-result {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
}

.result-header {
  text-align: center;
  margin-bottom: 3rem;
}

.result-header h2 {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  border: 1px solid #eee;
}

.stat-card h3 {
  font-size: 1rem;
  color: #888;
  margin-bottom: .5rem;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.ranking-section {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.ranking-section h3 {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  transition: transform .2s;
}

.ranking-item:hover {
  transform: translateX(4px);
  background: #f0f0f0;
}

.ranking-item .rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.ranking-item .wpm {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  flex: 1;
  text-align: center;
}

.ranking-item .accuracy {
  font-size: 1rem;
  color: #666;
  min-width: 80px;
  text-align: right;
}

@media (width <= 768px) {
  .typing-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .typing-text {
    font-size: 1.5rem;
  }

  .result-card {
    padding: 1.25rem;
    margin: 0;
    max-height: calc(100vh - 1.5rem);
  }

  .result-stats {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }

  .ranking-item .rank, .ranking-item .wpm, .ranking-item .accuracy {
    min-width: auto;
    text-align: center;
  }
}

.typing-result-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, .55);
  z-index: 3000;
  overflow: auto;
  box-sizing: border-box;
}

.typing-result-overlay .result-card {
  border: 2px solid #111;
}

.typing-result-overlay .neo-card-header h3 {
  font-size: 1.4rem;
}

.typing-result-overlay .list-group li {
  font-size: .92rem;
  padding: .7rem 0 !important;
}

@media (height <= 900px) {
  .typing-game-container {
    height: calc(100vh - 70px);
  }

  .typing-problem {
    height: 240px;
    font-size: 14px;
    padding: .8rem;
  }

  .typing-stats .stat-item {
    padding: .4rem !important;
  }

  .typing-stats .stat-label {
    font-size: .7rem !important;
  }

  .typing-stats .stat-value {
    font-size: 1.05rem !important;
  }

  .clear-conditions {
    padding: .6rem !important;
    font-size: .8rem !important;
  }

  .info-column .section-label {
    font-size: .9rem !important;
  }

  .result-card {
    max-height: 82vh;
    padding: 1.1rem;
  }

  .romaji-text {
    font-size: 1.7em;
  }
}

@media (width <= 1280px) {
  .typing-game-grid {
    grid-template-columns: minmax(140px, .32fr) minmax(0, 1.68fr);
  }

  .info-column {
    max-width: 210px;
  }

  .typing-problem {
    height: 260px;
    font-size: 15px;
  }

  .romaji-text {
    font-size: 1.85em;
  }
}

.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.course-card {
  display: block;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.course-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.course-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
}

.course-card-content {
  padding: 1.5rem;
}

.course-card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 .5rem;
  color: var(--secondary-color);
}

.course-card-category {
  display: inline-block;
  padding: .25rem .75rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: .85rem;
  color: #666;
  margin-bottom: 1rem;
}

.course-card-description {
  font-size: .95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.course-detail-header {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (width >= 768px) {
  .course-detail-header {
    flex-direction: row;
    align-items: flex-start;
  }
}

.course-detail-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

@media (width >= 768px) {
  .course-detail-image {
    width: 320px;
    height: 240px;
    flex-shrink: 0;
  }
}

.course-detail-info {
  flex: 1;
}

.course-detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 0 1rem;
}

.course-detail-description {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.course-detail-progress {
  margin-bottom: 1.5rem;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: .5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width .3s;
}

.progress-text {
  font-size: .95rem;
  color: #666;
}

.btn-enroll {
  padding: .75rem 2rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
}

.btn-enroll:hover {
  background: var(--primary-color);
  filter: brightness(.85);
}

.course-detail-steps {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.course-detail-steps h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .3s, transform .2s;
}

.step-item.locked {
  background: #ededed;
  color: #9e9e9e;
  border: 1px dashed #d0d0d0;
  pointer-events: none;
  cursor: not-allowed;
}

.step-item:hover {
  background: #f0f0f0;
  transform: translateX(4px);
}

.step-item.completed {
  background: #e8f5e9;
  border-left: 4px solid var(--primary-color);
}

.step-item-number {
  width: 40px;
  height: 40px;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-item.completed .step-item-number {
  background: var(--primary-color);
}

.step-item.locked .step-item-number {
  background: #bdbdbd;
  color: #fff;
}

.step-item-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-item-placeholder {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e0e0e0, silver);
  border-radius: 8px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.step-item-content {
  flex: 1;
}

.step-item-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 .25rem;
}

.step-item-status {
  font-size: .875rem;
  color: #999;
}

.step-item-status.completed {
  color: var(--primary-color);
  font-weight: bold;
}

.step-page-container {
  display: flex;
  gap: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - 64px);
}

.step-main-content {
  flex: 1;
  min-width: 0;
  background: #000;
  display: flex;
  flex-direction: column;
}

.step-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  border-left: 1px solid #e0e0e0;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
  overflow-y: auto;
  padding: 0;
  box-shadow: -2px 0 8px rgba(0, 0, 0, .05);
  z-index: 10;
}

.step-sidebar h3 {
  font-size: 1.1rem;
  margin: 0;
  padding: 1rem;
  color: #333;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid #eee;
}

.step-detail-content {
  background: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-video-container h3 {
  display: none;
}

.step-slide-container {
  flex: 1;
  background: #000;
  height: 100%;
  min-height: calc(100vh - 144px);
  margin-top: 0 !important;
}

.step-slide-container iframe {
  min-height: calc(100vh - 144px);
  height: 100% !important;
}

.step-sidebar .step-list {
  padding: .5rem;
  gap: 0;
}

.step-sidebar .step-item {
  padding: .5rem;
  background: none;
  border-radius: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.step-sidebar .step-item.locked {
  color: #b0b0b0;
  background: none;
  border-left: none;
}

.step-sidebar .step-item:last-child {
  border-bottom: none;
}

.step-sidebar .step-item:hover {
  background: #f5f5f5;
}

.step-sidebar .step-item.completed {
  background: #f0f9f0;
  border-left: 3px solid var(--primary-color);
}

.step-sidebar .step-item-image, .step-sidebar .step-item-placeholder {
  display: none;
}

.step-sidebar .step-item-number {
  width: 24px;
  height: 24px;
  font-size: .75rem;
  margin-right: .75rem;
}

.step-sidebar .step-item-title {
  font-size: .85rem;
  margin: 0;
  font-weight: normal;
  line-height: 1.3;
}

.step-sidebar .step-item-status {
  display: none;
}

.step-tabs-container {
  background: #fff;
  border-top: 1px solid #e0e0e0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 1rem;
  background: #fff;
}

.step-tabs-list {
  display: flex;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: .95rem;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color .3s;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  font-weight: bold;
}

.tab-btn.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
}

.step-tabs-content {
  padding: 2rem 3rem;
  flex: 1;
  background: #fff;
  min-height: 200px;
}

.step-description-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 2rem;
}

.step-action-area {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.step-header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-step-action {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: .9rem;
  transition: all .2s;
}

.btn-question {
  background: #fff;
  color: #666;
  border: 1px solid #ddd;
}

.btn-question:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.btn-next, .btn-prev {
  background: var(--primary-color);
  color: #fff;
  border: 1px solid var(--primary-color);
}

.btn-next:hover, .btn-prev:hover {
  filter: brightness(.9);
  color: #fff;
}

.btn-prev {
  background: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-prev:hover {
  background: #f0f9f0;
  color: var(--primary-color);
}

.btn-next.disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

@media (width <= 768px) {
  .step-tabs-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .step-tabs-list {
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #eee;
  }

  .step-header-actions {
    padding: .5rem 1rem;
    justify-content: flex-end;
    background: #f9f9f9;
  }
}

.cleared-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.user-card-small {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  transition: transform .2s, box-shadow .2s;
}

.user-card-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.user-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.user-avatar-small {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  margin-bottom: .5rem;
}

.user-nickname {
  font-size: .9rem;
  font-weight: bold;
  color: #333;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-card-actions {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

.btn-profile-link, .btn-message-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  font-size: 1rem;
  transition: all .2s;
}

.btn-profile-link:hover {
  background: #e3f2fd;
  color: var(--secondary-color);
}

.btn-message-link:hover {
  background: #fff3e0;
  color: #ff9800;
}

.step-detail-actions {
  display: flex;
  justify-content: center;
  padding: 1.5rem;
}

.btn-complete {
  padding: .75rem 2rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
}

.btn-complete:hover {
  background: var(--primary-color);
  filter: brightness(.85);
}

.step-completed-badge {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 2rem;
  background: #e8f5e9;
  border-radius: 8px;
  color: var(--primary-color);
  font-weight: bold;
}

.completed-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.step-quiz {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.step-quiz h3 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
}

.quiz-questions {
  margin-bottom: 1.5rem;
}

.quiz-question {
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn-submit-quiz {
  padding: .75rem 2rem;
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
}

.btn-submit-quiz:hover {
  background: var(--secondary-color);
  filter: brightness(.85);
}

@media (width <= 768px) {
  .course-list {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .course-detail, .step-detail {
    padding: 1rem;
  }

  .course-detail-title {
    font-size: 1.5rem;
  }

  .step-item {
    flex-wrap: wrap;
  }

  .step-item-number {
    margin-bottom: .5rem;
  }
}

.editor-container {
  display: flex;
  flex-direction: column;
  height: 600px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-top: -1rem;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.lang-selector-group {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.lang-hint {
  font-size: .85rem;
  color: #666;
  font-weight: bold;
  display: none;
}

@media (width >= 768px) {
  .lang-hint {
    display: inline;
  }
}

.lang-select {
  padding: .25rem .75rem;
  background: #fff;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: bold;
  cursor: pointer;
  outline: none;
}

.lang-select:focus {
  border-color: var(--primary-color);
}

.editor-actions {
  display: flex;
  gap: .5rem;
}

.btn-run {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: .9rem;
  cursor: pointer;
  transition: filter .2s;
}

.btn-run:hover {
  filter: brightness(.9);
}

.btn-clear {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  background: #fff;
  color: #666;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
}

.btn-clear:hover {
  background: #f0f0f0;
}

.editor-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

@media (width >= 900px) {
  .editor-main {
    flex-direction: row;
  }
}

.code-editor {
  flex: 1;
  padding: 1rem;
  font-family: Monaco, Menlo, Ubuntu Mono, Consolas, source-code-pro, monospace;
  font-size: 14px;
  line-height: 1.5;
  border: none;
  resize: none;
  outline: none;
  background: #1e1e1e;
  color: #d4d4d4;
  min-height: 200px;
}

.code-editor:focus {
  background: #1e1e1e;
}

.console-output {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #2d2d2d;
  color: #f0f0f0;
  border-top: 1px solid #e0e0e0;
  min-height: 200px;
  overflow: hidden;
}

@media (width >= 900px) {
  .console-output {
    width: 40%;
    flex: none;
    border-top: none;
    border-left: 1px solid #e0e0e0;
  }
}

.console-header {
  padding: .5rem 1rem;
  background: #1e1e1e;
  color: #aaa;
  font-size: .8rem;
  font-weight: bold;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.console-output pre {
  flex: 1;
  padding: 1rem;
  margin: 0;
  font-family: Monaco, Menlo, Ubuntu Mono, Consolas, source-code-pro, monospace;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-y: auto;
}

.step-item.is-current {
  transform: translateX(0);
  background: #e0f7fa !important;
  border-left: 4px solid #00bcd4 !important;
  font-weight: bold !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1) !important;
}

.step-item.is-current .step-item-number {
  background: #00bcd4 !important;
  color: #fff !important;
}

.step-sidebar .step-item.is-current {
  background: #e0f7fa !important;
  border-left: 3px solid #00bcd4 !important;
}

.step-ai-chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .9rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, filter .16s;
}

.step-ai-chat-fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 22px 46px rgba(15, 23, 42, .32);
}

.step-ai-chat-panel {
  position: fixed;
  right: 1.25rem;
  bottom: 4.9rem;
  z-index: 1199;
  width: min(440px, 100vw - 1.5rem);
  height: min(76vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 22px;
  background: radial-gradient(circle at 100% 0, rgba(34, 197, 94, .12), rgba(0, 0, 0, 0) 34%), linear-gradient(rgba(15, 23, 42, .98), rgba(2, 6, 23, .98));
  color: #e2e8f0;
  box-shadow: 0 26px 72px rgba(2, 6, 23, .45);
  backdrop-filter: blur(18px);
  animation: .18s ease-out stepAiChatPop;
}

.step-ai-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1rem .85rem;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(#0f172a, rgba(15, 23, 42, .86));
}

.step-ai-chat-title-block {
  min-width: 0;
}

.step-ai-chat-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: .35rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .16);
  color: #86efac;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.step-ai-chat-title {
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.3;
}

.step-ai-chat-subtitle {
  margin-top: .15rem;
  font-size: .9rem;
  color: #94a3b8;
  line-height: 1.35;
}

.step-ai-chat-close {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .8);
  color: #e2e8f0;
  cursor: pointer;
  transition: transform .16s, background .16s;
}

.step-ai-chat-close:hover {
  transform: scale(1.03);
  background: rgba(30, 41, 59, .95);
}

.step-ai-chat-context {
  display: grid;
  gap: .7rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .72);
}

.step-ai-chat-context-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.step-ai-chat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: .25rem .65rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .18);
  color: #bbf7d0;
  font-size: .75rem;
  font-weight: 800;
}

.step-ai-chat-chip-muted {
  background: rgba(148, 163, 184, .14);
  color: #cbd5e1;
  font-weight: 700;
}

.step-ai-chat-context-copy {
  font-size: .88rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.step-ai-chat-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  color: #86efac;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.step-ai-chat-link:hover {
  color: #bbf7d0;
  text-decoration: underline;
}

.step-ai-chat-body {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: .8rem;
  padding: 1rem;
  overflow: hidden;
}

.step-ai-chat-messages {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: .75rem;
  overflow-y: auto;
  padding-right: .25rem;
}

.step-ai-chat-message {
  max-width: 92%;
  border-radius: 18px;
  padding: .8rem .9rem;
  border: 1px solid rgba(0, 0, 0, 0);
}

.step-ai-chat-message-user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(14, 165, 233, .95), rgba(15, 118, 110, .96));
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
}

.step-ai-chat-message-assistant {
  align-self: flex-start;
  background: rgba(15, 23, 42, .72);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, .16);
}

.step-ai-chat-message-role {
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .76;
}

.step-ai-chat-message-content {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: .92rem;
}

.step-ai-chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.step-ai-chat-suggestion {
  padding: .42rem .7rem;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 999px;
  background: rgba(15, 23, 42, .68);
  color: #cbd5e1;
  font-size: .8rem;
  cursor: pointer;
  transition: transform .14s, background .14s, color .14s;
}

.step-ai-chat-suggestion:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, .92);
  color: #f8fafc;
}

.step-ai-chat-footer {
  display: grid;
  gap: .65rem;
  padding: .95rem 1rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, .16);
  background: linear-gradient(rgba(2, 6, 23, .94), rgba(2, 6, 23, .99));
}

.step-ai-chat-input {
  width: 100%;
  min-height: 4.2rem;
  resize: vertical;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 16px;
  padding: .85rem .95rem;
  background: rgba(15, 23, 42, .88);
  color: #f8fafc;
  font-size: .92rem;
  line-height: 1.6;
  outline: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.step-ai-chat-input::placeholder {
  color: #94a3b8;
}

.step-ai-chat-input:focus {
  border-color: rgba(34, 197, 94, .55);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}

.step-ai-chat-actions {
  display: flex;
  justify-content: flex-end;
}

.step-ai-chat-send {
  min-width: 7rem;
  padding: .7rem 1rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0f766e);
  color: #fff;
  font-size: .92rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 118, 110, .28);
  transition: transform .14s, filter .14s, box-shadow .14s;
}

.step-ai-chat-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(15, 118, 110, .34);
}

.step-ai-chat-send:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.step-ai-chat-status {
  padding: .55rem .7rem;
  border-radius: 12px;
  background: rgba(14, 165, 233, .12);
  color: #bae6fd;
  font-size: .82rem;
  line-height: 1.45;
}

@keyframes stepAiChatPop {
  from {
    transform: translateY(10px)scale(.98);
    opacity: 0;
  }

  to {
    transform: translateY(0)scale(1);
    opacity: 1;
  }
}

@media (width <= 768px) {
  .step-ai-chat-fab {
    right: .75rem;
    bottom: .75rem;
  }

  .step-ai-chat-panel {
    right: .5rem;
    left: .5rem;
    bottom: 4.25rem;
    width: auto;
    height: min(78vh, 720px);
    border-radius: 18px;
  }

  .step-ai-chat-message {
    max-width: 96%;
  }
}

.profile-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
  margin-bottom: 2rem;
}

.profile-avatar {
  flex-shrink: 0;
}

.avatar-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.profile-info {
  flex-grow: 1;
}

.profile-nickname {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 0 .5rem;
}

.profile-meta {
  color: #888;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.profile-level {
  font-weight: bold;
  color: var(--primary-color);
}

.profile-title {
  color: var(--accent-color);
  font-style: italic;
}

.profile-actions {
  margin-top: 1rem;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.profile-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid #f0f0f0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #eee;
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: .5rem;
}

.stat-label {
  font-size: .9rem;
  color: #888;
  margin-bottom: .5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.points-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.point-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.point-label {
  flex: 0 0 200px;
  font-weight: 600;
  color: var(--text-color);
}

.point-bar-container {
  flex: 1;
  height: 24px;
  background: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
}

.point-bar {
  height: 100%;
  transition: width .5s;
  border-radius: 12px;
}

.point-value {
  flex: 0 0 60px;
  text-align: right;
  font-weight: bold;
  color: var(--text-color);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.work-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .2s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.work-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-info {
  padding: 1rem;
}

.work-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 0 .5rem;
}

.work-category {
  font-size: .9rem;
  color: #888;
}

.no-works {
  text-align: center;
  color: #888;
  padding: 2rem;
}

.edit-form-container, .avatar-upload-container, .password-change-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.form-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: .5rem;
}

.avatar-preview {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.avatar-preview-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
}

.avatar-upload-form {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.file-input {
  display: none;
}

.upload-note {
  text-align: center;
  font-size: .85rem;
  color: #888;
  margin-top: 1rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.user-list-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.friend-list-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  gap: 1rem;
}

.search-box .input-box {
  flex: 1;
}

.search-box .fun-btn {
  flex: none;
  width: auto;
}

.user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.user-card-link {
  text-decoration: none;
  color: inherit;
}

.user-card-compact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: transform .2s, box-shadow .2s;
}

.user-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.user-card-avatar {
  flex-shrink: 0;
}

.user-card-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.user-card-info {
  flex: 1;
}

.user-card-nickname {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 0 0 .5rem;
}

.user-card-stats {
  display: flex;
  gap: 1rem;
  font-size: .9rem;
  color: #888;
  margin-bottom: .5rem;
}

.user-card-level {
  font-weight: 600;
  color: var(--primary-color);
}

.user-card-points {
  color: var(--accent-color);
}

.user-card-title {
  font-size: .85rem;
  color: #888;
  font-style: italic;
  margin: 0;
}

.no-users {
  text-align: center;
  color: #888;
  padding: 3rem;
  font-size: 1.1rem;
}

@media (width <= 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-nickname {
    font-size: 1.5rem;
  }

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

  .point-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .point-label {
    flex: none;
  }

  .point-bar-container {
    width: 100%;
  }

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

  .search-box {
    flex-direction: column;
  }

  .search-box .fun-btn {
    width: 100%;
  }
}

.rankings-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #e1e1e1;
}

.tab {
  padding: .75rem 2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: #666;
  border-bottom: 3px solid rgba(0, 0, 0, 0);
  transition: all .3s;
}

.tab:hover {
  color: var(--primary-color);
}

.tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  font-weight: bold;
}

.ranking-table {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  overflow: hidden;
  margin-top: 2rem;
}

.ranking-table table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
}

.ranking-table th {
  padding: 1rem;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
}

.ranking-table td {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.ranking-table tbody tr {
  transition: background-color .2s;
}

.ranking-table tbody tr:hover {
  background-color: #f8f9fa;
}

.ranking-table tbody tr.current-user {
  background-color: #fffbe6;
  font-weight: bold;
}

.ranking-table tbody tr.current-user:hover {
  background-color: #fff9d9;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-weight: bold;
  color: #fff;
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, gold, #ffed4e);
  box-shadow: 0 2px 8px rgba(255, 215, 0, .5);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, silver, #e8e8e8);
  box-shadow: 0 2px 8px rgba(192, 192, 192, .5);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32, #e8a87c);
  box-shadow: 0 2px 8px rgba(205, 127, 50, .5);
}

.user-info {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.user-info .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info .nickname {
  font-weight: 500;
}

@media (width <= 768px) {
  .rankings-page {
    padding: 1rem .5rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .tabs {
    gap: .5rem;
  }

  .tab {
    padding: .5rem 1rem;
    font-size: .9rem;
  }

  .ranking-table {
    overflow-x: auto;
  }

  .ranking-table table {
    min-width: 600px;
  }

  .ranking-table th, .ranking-table td {
    padding: .75rem .5rem;
    font-size: .9rem;
  }

  .user-info .avatar {
    width: 30px;
    height: 30px;
  }

  .rank-badge {
    width: 30px;
    height: 30px;
    font-size: .9rem;
  }
}

.tengoku-game-container {
  max-width: 900px;
  margin: .5rem auto;
  padding: .5rem;
  position: relative;
}

.tengoku-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem .75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 12px;
  margin-bottom: .5rem;
  flex-wrap: wrap;
  gap: .5rem;
}

.tengoku-game-header .progress {
  font-size: 1rem;
  font-weight: bold;
}

.tengoku-game-header .timer {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tengoku-game-header .score {
  display: flex;
  gap: 1rem;
}

.tengoku-game-header .score .correct {
  color: #4ade80;
}

.tengoku-game-header .score .wrong {
  color: #f87171;
}

.tengoku-problem {
  background: #fff;
  border-radius: 12px;
  padding: .5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.tengoku-problem .problem-content {
  margin-bottom: .5rem;
}

.tengoku-problem .problem-content .problem-text {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #2d3748;
  background-color: #f7fafc;
  border: 3px dashed #cbd5e0;
  border-radius: 12px;
  padding: 1rem .5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
  line-height: 1.2;
}

.tengoku-problem .problem-content .problem-image {
  text-align: center;
  margin-top: 1rem;
}

.tengoku-problem .problem-content .problem-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.tengoku-problem .choices .choices-list {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.tengoku-problem .choices .choices-list.vertical-layout {
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.tengoku-problem .choices .choices-list.vertical-layout .choice-wrapper {
  width: 100%;
  flex-direction: row;
  justify-content: center;
}

.tengoku-problem .choices .choices-list.vertical-layout .choice-key {
  order: -1;
}

.tengoku-problem .choices .choices-list.vertical-layout .choice-button {
  width: auto;
  flex: 1;
  display: block;
}

.tengoku-problem .choices .choice-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

.tengoku-problem .choices .choice-wrapper .choice-key {
  font-size: .9rem;
  color: #666;
  font-weight: bold;
  background: #e2e8f0;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tengoku-problem .choices .choice-button {
  padding: 1.5rem 2.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  background: #f7fafc;
  border: 3px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  min-width: 100px;
}

.tengoku-problem .choices .choice-button:hover:not(:disabled) {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.tengoku-problem .choices .choice-button:active:not(:disabled) {
  transform: translateY(0);
}

.tengoku-problem .choices .choice-button.selected.correct {
  background: #d4edda;
  border-color: #4ade80;
  color: #155724;
}

.tengoku-problem .choices .choice-button.selected.wrong {
  background: #f8d7da;
  border-color: #f87171;
  color: #721c24;
}

.tengoku-problem .choices .choice-button.correct:not(.selected) {
  border-color: #4ade80;
  background: #d4edda;
}

.tengoku-problem .choices .choice-button.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.answer-feedback {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
  text-align: center;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.answer-feedback .feedback-correct {
  font-size: 5rem;
  color: #22c55e;
  text-shadow: 0 0 10px rgba(255, 255, 255, .8);
  animation: .3s ease-out feedback-pop;
}

.answer-feedback .feedback-wrong {
  font-size: 5rem;
  color: #ef4444;
  text-shadow: 0 0 10px rgba(255, 255, 255, .8);
  animation: .3s ease-out feedback-pop;
}

.tengoku-timer {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.tengoku-timer .timer-icon {
  font-size: 1.2rem;
}

.tengoku-timer .timer-text {
  font-size: 1.1rem;
  font-weight: bold;
  font-family: monospace;
}

.tengoku-result {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.tengoku-result .result-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tengoku-result .result-header h2 {
  font-size: 2.5rem;
  color: #2d3748;
}

.tengoku-result .result-summary {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tengoku-result .result-summary .score-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.tengoku-result .result-summary .score-card .score-main {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tengoku-result .result-summary .score-card .score-main h3 {
  font-size: 1.2rem;
  color: #718096;
  margin-bottom: .5rem;
}

.tengoku-result .result-summary .score-card .score-main .score-value {
  font-size: 4rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tengoku-result .result-summary .score-card .score-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.tengoku-result .result-summary .score-card .score-details .detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem;
  background: #f7fafc;
  border-radius: 8px;
}

.tengoku-result .result-summary .score-card .score-details .detail-item .label {
  color: #718096;
}

.tengoku-result .result-summary .score-card .score-details .detail-item .value {
  font-weight: bold;
  font-size: 1.1rem;
}

.tengoku-result .result-summary .score-card .score-details .detail-item .value.correct {
  color: #4ade80;
}

.tengoku-result .result-summary .score-card .score-details .detail-item .value.wrong {
  color: #f87171;
}

.tengoku-result .result-summary .advice-card {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}

.tengoku-result .result-summary .advice-card h4 {
  margin-bottom: .5rem;
}

.tengoku-result .result-summary .advice-card p {
  margin: 0;
  font-size: 1.1rem;
}

.tengoku-result .result-summary .qualification-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  text-align: center;
}

.tengoku-result .result-summary .qualification-card h4 {
  margin-bottom: .5rem;
}

.tengoku-result .result-summary .qualification-card .qualification-badge {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.tengoku-result .ranking-section {
  margin-bottom: 2rem;
}

.tengoku-result .ranking-section h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #2d3748;
}

.tengoku-result .result-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1rem;
}

.tengoku-result .result-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  min-width: 200px;
}

.tengoku-result .result-actions .btn i {
  font-size: 1.2rem;
}

.tengoku-result .result-actions .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
}

.tengoku-result .result-actions .btn:active {
  transform: translateY(0);
}

.tengoku-result .result-actions .btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}

.tengoku-result .result-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.tengoku-result .result-actions .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(59, 130, 246, .4);
}

.tengoku-result .result-actions .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(59, 130, 246, .5);
}

.tengoku-ranking-table {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
  overflow-x: auto;
}

.tengoku-ranking-table .ranking-table {
  width: 100%;
  border-collapse: collapse;
}

.tengoku-ranking-table .ranking-table thead th {
  padding: .75rem;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  color: #4a5568;
  font-weight: 600;
}

.tengoku-ranking-table .ranking-table tbody .ranking-row {
  border-bottom: 1px solid #f7fafc;
  transition: background .2s;
}

.tengoku-ranking-table .ranking-table tbody .ranking-row:hover {
  background: #f7fafc;
}

.tengoku-ranking-table .ranking-table tbody .ranking-row.current-user {
  background: #edf2f7;
  font-weight: bold;
}

.tengoku-ranking-table .ranking-table tbody .ranking-row td {
  padding: 1rem .75rem;
}

.tengoku-ranking-table .ranking-table .rank-col {
  width: 80px;
  font-size: 1.2rem;
}

.tengoku-ranking-table .ranking-table .name-col .you-badge {
  color: #667eea;
  font-size: .9rem;
}

.tengoku-ranking-table .ranking-table .score-col {
  width: 100px;
  text-align: right;
}

.tengoku-ranking-table .ranking-table .score-col strong {
  color: #667eea;
  font-size: 1.2rem;
}

.tengoku-ranking-table .ranking-table .correct-col {
  width: 100px;
  text-align: right;
}

.tengoku-ranking-table .ranking-table .time-col {
  width: 100px;
  text-align: right;
  font-family: monospace;
}

.tengoku-ranking-table .ranking-empty {
  text-align: center;
  padding: 2rem;
  color: #718096;
}

@media (width <= 768px) {
  .tengoku-game-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tengoku-problem {
    padding: 1rem;
  }

  .tengoku-problem .problem-content .problem-text {
    font-size: 1.2rem;
  }

  .tengoku-problem .choices .choices-list {
    gap: 1rem;
  }

  .tengoku-problem .choices .choice-button {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    min-width: 80px;
  }

  .tengoku-result .result-header h2 {
    font-size: 2rem;
  }

  .tengoku-result .result-summary .score-card .score-main .score-value {
    font-size: 3rem;
  }

  .tengoku-ranking-table .ranking-table {
    min-width: 600px;
  }
}

.ultra-headline {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--neo-text);
  text-transform: uppercase;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.ultra-headline span {
  display: inline-block;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  padding: .2rem .8rem;
  transform: rotate(-2deg);
  border: 4px solid #1a1a1a;
  box-shadow: 6px 6px #1a1a1a;
  color: #1a1a1a;
  animation: 3s ease-in-out infinite wiggle;
  white-space: nowrap;
}

@media (width <= 968px) {
  .ultra-headline {
    font-size: 2.2rem;
  }
}

@media (width <= 640px) {
  .ultra-headline {
    font-size: 1.8rem;
    white-space: normal;
  }
}

.ultra-subhead {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--neo-text);
  margin-bottom: 2.5rem;
  background: #fff;
  padding: 1.5rem;
  border: 3px solid var(--neo-text);
  box-shadow: 4px 4px rgba(0, 0, 0, .1);
  display: inline-block;
  border-radius: 16px;
}

@media (width <= 768px) {
  .ultra-subhead {
    font-size: 1.1rem;
    padding: 1rem;
  }
}

.section-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #1a1a1a;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  padding: .6rem 1.8rem;
  border: 4px solid #1a1a1a;
  box-shadow: 5px 5px #1a1a1a;
  margin-bottom: 1.5rem;
  transform: rotate(-2deg);
  transition: all .3s;
}

.section-label:hover {
  transform: rotate(0)scale(1.05);
  box-shadow: 7px 7px #1a1a1a;
}

.ultra-hero {
  min-height: 95vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
  background: none;
}

@media (width <= 968px) {
  .ultra-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 2rem;
    min-height: auto;
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0)scale(1);
  }

  50% {
    transform: translate(-30px, 30px)scale(1.1);
  }
}

.hero-content-box {
  max-width: 600px;
  text-align: left;
  z-index: 2;
  position: relative;
}

@media (width <= 968px) {
  .hero-content-box {
    text-align: center;
    max-width: 100%;
  }
}

.hero-logo-background {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-background img {
  width: 100%;
  max-width: 750px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3));
  animation: 4s ease-in-out infinite bounce-slow;
}

@media (width <= 968px) {
  .hero-logo-background {
    order: -1;
  }

  .hero-logo-background img {
    max-width: 400px;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: .5;
  }

  50% {
    transform: scale(1.05);
    opacity: .8;
  }
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0)rotate(-2deg);
  }

  50% {
    transform: translateY(-20px)rotate(2deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }

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

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (width <= 768px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
}

.btn-ultra {
  display: inline-block;
  padding: 1.2rem 3rem;
  border-radius: 16px;
  font-weight: 900;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all .3s;
  border: 4px solid #1a1a1a;
  cursor: pointer;
  text-transform: uppercase;
  position: relative;
  letter-spacing: .05em;
  box-sizing: border-box;
}

@media (width <= 768px) {
  .btn-ultra {
    width: 100%;
    text-align: center;
  }
}

.btn-ultra-primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #fff;
  box-shadow: 6px 6px #1a1a1a;
}

.btn-ultra-primary:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px #1a1a1a;
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.btn-ultra-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px #1a1a1a;
}

.btn-ultra-outline {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 6px 6px rgba(255, 255, 255, .3);
  border: 4px solid #fff;
}

.btn-ultra-outline:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .95);
}

.btn-ultra-outline:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px rgba(255, 255, 255, .3);
}

.btn-ultra-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 6px 6px #1a1a1a;
}

.btn-ultra-danger:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px #1a1a1a;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.btn-ultra-danger:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px #1a1a1a;
}

.ultra-section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 2rem;
}

.bento-item {
  background: #fff;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all .3s;
  box-shadow: 6px 6px #1a1a1a;
  position: relative;
  overflow: hidden;
}

.bento-item:before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, .1) 0%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  transition: opacity .3s;
}

.bento-item:hover:before {
  opacity: 1;
}

.bento-item:hover {
  transform: translate(-5px, -5px)rotate(-1deg);
  box-shadow: 10px 10px #1a1a1a;
}

.bento-large {
  grid-column: span 8;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.bento-medium {
  grid-column: span 6;
}

.bento-medium:nth-child(3) {
  background: linear-gradient(135deg, #48c9b0 0%, #16a085 100%);
}

.bento-medium:nth-child(4) {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.bento-small {
  grid-column: span 4;
  background: linear-gradient(135deg, #5b8dee 0%, #4a7bd3 100%);
}

@media (width <= 900px) {
  .bento-large, .bento-medium, .bento-small {
    grid-column: span 12;
  }
}

.bento-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--neo-text);
  text-transform: uppercase;
}

.bento-text {
  font-size: 1.1rem;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-bg-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 8rem;
  opacity: .2;
  transform: rotate(-15deg);
  pointer-events: none;
  filter: grayscale();
}

.feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
  background: #fff;
  padding: 3rem;
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow);
}

.feature-row.reverse {
  flex-direction: row-reverse;
  background: #fab1a0;
}

.feature-image-box {
  flex: 1;
  position: relative;
}

.feature-img {
  width: 100%;
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  box-shadow: 4px 4px #1a1a1a;
}

.feature-content {
  flex: 1;
}

.feature-tag {
  display: inline-block;
  font-size: .9rem;
  font-weight: 900;
  color: #fff;
  background: #1a1a1a;
  padding: .25rem 1rem;
  margin-bottom: 1rem;
  transform: rotate(-2deg);
}

@media (width <= 768px) {
  .feature-row, .feature-row.reverse {
    flex-direction: column;
    gap: 2rem;
  }
}

.arcade-scroll {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 2rem 1rem 4rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.arcade-card {
  min-width: 320px;
  background: #2d3436;
  color: #fff;
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 2rem;
  scroll-snap-align: center;
  position: relative;
  transition: transform .3s;
  box-shadow: var(--neo-shadow);
}

.arcade-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neo-shadow-hover);
  border-color: var(--neo-accent);
}

.arcade-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--neo-accent);
  text-shadow: 2px 2px #000;
}

.arcade-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: .5rem;
  color: var(--neo-accent);
}

.arcade-btn {
  margin-top: 1.5rem;
  display: inline-block;
  background: var(--neo-accent);
  color: #1a1a1a;
  padding: .75rem 2rem;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px #1a1a1a;
  transition: all .2s;
}

.arcade-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.contact-grid-modern {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-panel {
  background: #fff;
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 3rem;
  box-shadow: var(--neo-shadow);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #dfe6e9;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  text-decoration: none;
  color: var(--neo-text);
  font-weight: 900;
  transition: all .2s;
  margin-bottom: .5rem;
}

.contact-link:hover {
  background: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px #1a1a1a;
}

@media (width <= 768px) {
  .contact-grid-modern {
    grid-template-columns: 1fr;
  }

  .ultra-headline {
    font-size: 2.5rem;
  }
}

.neo-navbar {
  background: #fff;
  border-bottom: var(--neo-border);
  box-shadow: 0 4px #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.neo-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: .5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.neo-navbar-brand {
  display: flex;
  align-items: center;
}

.neo-navbar-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.neo-navbar-menu {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.neo-navbar-item {
  font-weight: 700;
  color: var(--neo-text);
  text-decoration: none;
  padding: .5rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0);
  transition: all .2s;
}

.neo-navbar-item:hover {
  border-bottom: 2px solid var(--neo-primary);
  color: var(--neo-primary);
}

.neo-navbar-actions {
  display: flex;
  gap: 1rem;
}

.dashboard-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  padding-top: 70px;
}

.dashboard-container.typing-mode {
  overflow: hidden;
  padding-top: 0;
}

body.typing-mode {
  overflow: hidden;
}

body.typing-mode main {
  padding-top: 70px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: var(--dashboard-sidebar-width, 280px) minmax(0, 1fr);
  align-items: flex-start;
  min-height: calc(100vh - 70px);
}

.dashboard-grid.typing-mode {
  grid-template-columns: 1fr;
}

.dashboard-content-grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: .75rem;
}

.dashboard-content-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
}

.dashboard-column-1 {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
}

.dashboard-column-2 {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.neo-sidebar {
  position: sticky;
  top: 70px;
  width: var(--dashboard-sidebar-width, 280px);
  max-width: var(--dashboard-sidebar-width, 280px);
  height: calc(100vh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  background-color: #48c9b0;
  border-right: 4px solid #1a1a1a;
  box-shadow: 4px 0 8px rgba(0, 0, 0, .2);
}

.neo-sidebar__resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
}

.neo-sidebar__resize-handle:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 3px;
  width: 4px;
  border-radius: 999px;
  background: rgba(26, 26, 26, .35);
}

body.sidebar-resizing, body.sidebar-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.dashboard-main {
  margin-left: 0;
  padding: 1.5rem;
  min-height: calc(100vh - 70px);
  min-width: 0;
}

.dashboard-main.is-typing-mode {
  padding: .5rem;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: .8rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background .15s;
  background: none;
  overflow: hidden;
}

.sidebar-menu-item span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.sidebar-menu-item:last-child {
  border-bottom: none;
}

.sidebar-menu-item:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.sidebar-menu-item:active {
  background: rgba(255, 255, 255, .2);
}

.sidebar-menu-item .menu-icon {
  font-size: 1.1rem;
  width: 1.5rem;
  text-align: center;
  color: #fff;
}

.sidebar-category-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.neo-card {
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow);
  overflow: hidden;
  transition: all .3s;
}

.neo-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--neo-shadow-hover);
}

.neo-card-header {
  padding: .5rem;
  border-bottom: var(--neo-border);
}

.neo-card-title {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.neo-card-body {
  padding: .5rem;
}

.neo-badge {
  display: inline-block;
  padding: .5rem 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-weight: bold;
}

.skill-name {
  font-size: .9rem;
}

.skill-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--neo-primary);
}

.dashboard-main {
  min-height: 600px;
}

.neo-alert {
  padding: 1.5rem;
  border: var(--neo-border);
  border-radius: var(--neo-radius);
  box-shadow: var(--neo-shadow);
}

.neo-course-card {
  background: #fff;
  border: var(--neo-border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 4px 4px #1a1a1a;
  transition: all .3s;
}

.neo-course-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px #1a1a1a;
}

.neo-progress-bar {
  height: 20px;
  background: #f4f4f0;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

.neo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neo-primary), var(--neo-secondary));
  transition: width .3s;
}

.btn-ultra {
  display: inline-block;
  padding: .75rem 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border: var(--neo-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}

.btn-ultra:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.btn-ultra-sm {
  padding: .5rem 1rem;
  font-size: .875rem;
}

.btn-ultra-primary {
  background: var(--neo-primary);
  color: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.btn-ultra-secondary {
  background: var(--neo-secondary);
  color: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.btn-ultra-accent {
  background: var(--neo-accent);
  color: var(--neo-text);
  box-shadow: 4px 4px #1a1a1a;
}

.btn-ultra-outline {
  background: #fff;
  color: var(--neo-text);
  box-shadow: 4px 4px #1a1a1a;
}

@media (width <= 968px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .neo-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 4px solid #1a1a1a;
    overflow-y: visible;
  }

  .neo-sidebar__resize-handle {
    display: none;
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-content-grid-4col {
    grid-template-columns: 1fr;
  }

  .dashboard-content-grid-bottom {
    grid-template-columns: 1fr;
  }

  .dashboard-column-1, .dashboard-column-2 {
    grid-column: span 1;
  }

  .neo-navbar-menu {
    display: none;
  }
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  align-items: center;
}

.filter-btn {
  padding: .6rem 1.5rem;
  border: 2px solid var(--secondary-color);
  background: #fff;
  color: var(--secondary-color);
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  font-size: .95rem;
}

.filter-btn:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 152, 220, .3);
}

.filter-btn.active {
  background: var(--secondary-color);
  color: #fff;
  box-shadow: 0 4px 12px rgba(50, 152, 220, .4);
}

.typing-card {
  border-left: 5px solid #ccc;
  transition: all .3s;
}

.typing-card.level-easy {
  border-left-color: #48c774;
}

.typing-card.level-easy:hover {
  box-shadow: 0 6px 20px rgba(72, 199, 116, .2);
}

.typing-card.level-medium {
  border-left-color: #ffdd57;
}

.typing-card.level-medium:hover {
  box-shadow: 0 6px 20px rgba(255, 221, 87, .3);
}

.typing-card.level-hard {
  border-left-color: #ff3860;
}

.typing-card.level-hard:hover {
  box-shadow: 0 6px 20px rgba(255, 56, 96, .2);
}

.level-badge {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 12px;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  margin-left: .5rem;
}

.level-badge.level-easy {
  background: #48c774;
}

.level-badge.level-medium {
  background: #fa0;
  color: #333;
}

.level-badge.level-hard {
  background: #ff3860;
}

.typing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (width <= 768px) {
  .typing-grid {
    grid-template-columns: 1fr;
  }

  .category-filter {
    gap: .5rem;
  }

  .filter-btn {
    padding: .5rem 1rem;
    font-size: .85rem;
  }
}

.keyboard-visual {
  margin: .5rem auto 0;
  max-width: 900px;
  padding: .75rem;
  background: #f5f5f5;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}

.keyboard-row {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  gap: 3px;
}

.keyboard-key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: .25rem;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  font-size: .75rem;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
  transition: all .2s;
  cursor: default;
  user-select: none;
}

.keyboard-key.key-active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(2px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.keyboard-key.key-wide {
  min-width: 65px;
}

.keyboard-key.key-extra-wide {
  min-width: 80px;
}

.keyboard-key.key-spacebar {
  min-width: 280px;
}

@media (width <= 768px) {
  .keyboard-visual {
    max-width: 100%;
    padding: 1rem;
  }

  .keyboard-key {
    min-width: 35px;
    height: 40px;
    font-size: .7rem;
    padding: .3rem;
  }

  .keyboard-key.key-wide {
    min-width: 60px;
  }

  .keyboard-key.key-extra-wide {
    min-width: 70px;
  }

  .keyboard-key.key-spacebar {
    min-width: 250px;
  }
}

.sidebar-category-title {
  display: block;
  margin-top: 1rem;
  margin-bottom: .25rem;
  padding: .25rem .5rem;
  font-size: .8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, .8);
  background: none;
  border: none;
  border-left: none;
  box-shadow: none;
  letter-spacing: .05em;
  transform: none;
  transition: all .2s;
}

.sidebar-category-title:hover {
  transform: none;
  color: #fff;
}

.dashboard-main {
  background-color: #f8f9fa;
  background-image: radial-gradient(#cbd5e0 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 20px 20px;
  min-height: 100vh;
}

.key-active {
  transform: translateY(2px);
  background-color: #ffdd57 !important;
  border-color: #ffc107 !important;
  box-shadow: 0 0 rgba(0, 0, 0, .2) !important;
}

.finger {
  transition: fill .1s;
}

.finger-active {
  fill: #ffdd57 !important;
  stroke: #ffc107 !important;
}

.rotate-90 {
  transform: rotate(90deg);
}

.keyboard-responsive-wrapper {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.keyboard-container-wrapper {
  transform: scale(1.1);
  transform-origin: top;
  transition: transform .3s;
}

@media (width <= 1200px) {
  .keyboard-container-wrapper {
    transform: scale(1);
    margin-bottom: -10px;
  }
}

@media (width <= 992px) {
  .keyboard-container-wrapper {
    transform: scale(.85);
    margin-bottom: -60px;
  }
}

@media (width <= 768px) {
  .keyboard-container-wrapper {
    transform: scale(.7);
    margin-bottom: -100px;
  }
}

@media (width <= 480px) {
  .keyboard-container-wrapper {
    transform: scale(.5);
    margin-bottom: -150px;
  }
}

.char-ng {
  background-color: rgba(255, 39, 139, .3);
  color: #757575;
  border-radius: 4px;
}

.typing-text {
  letter-spacing: .1em;
  line-height: 2;
}

.tengoku-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (width <= 1200px) {
  .tengoku-groups {
    grid-template-columns: 1fr;
  }
}

.auth-container {
  max-width: 500px;
  margin: 8rem auto 4rem;
  padding: 3rem 2rem;
  background: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  box-shadow: 6px 6px #1a1a1a;
  text-align: center;
}

.auth-title {
  font-size: 2rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.auth-container .form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.auth-container label {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
  color: #1a1a1a;
}

.auth-container input {
  width: 100%;
  padding: .8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: all .2s;
  box-sizing: border-box;
}

.auth-container input:focus {
  border-color: #5b8dee;
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 141, 238, .2);
}

.auth-container .btn-primary {
  display: inline-block;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #5b8dee;
  color: #fff;
  border: 3px solid #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 4px 4px #1a1a1a;
  margin-top: 1rem;
}

.auth-container .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.auth-container .btn-primary:active {
  transform: translate(0);
  box-shadow: 2px 2px #1a1a1a;
}

.auth-link {
  margin-top: 1.5rem;
  font-size: .9rem;
}

.auth-link a {
  color: #5b8dee;
  font-weight: bold;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

.error-message {
  background-color: #fee2e2;
  color: #b91c1c;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 2px solid #fca5a5;
  font-weight: bold;
  text-align: left;
}

.navbar-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  font-family: inherit;
  display: flex;
  align-items: center;
  transition: opacity .2s;
}

.navbar-logout-btn:hover {
  opacity: .8;
}

.sidebar-logout-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.password-toggle {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .5rem;
  justify-content: flex-end;
}

.password-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.password-toggle label {
  font-size: .9rem;
  color: #555;
  cursor: pointer;
  margin-bottom: 0;
}

.reports-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.report-card-hover {
  height: 100%;
  transition: transform .2s;
  cursor: pointer;
  background: #e0f7fa;
  text-decoration: none;
  color: inherit;
  display: block;
}

.report-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--neo-shadow-hover);
}

@media (width <= 768px) {
  .reports-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reports-header .section-label {
    width: 100%;
    text-align: center;
  }

  .reports-header > div:last-child {
    width: 100%;
    justify-content: center;
  }
}

.status-card {
  background-color: #e3f2fd;
}

.avatar-card {
  background-color: #fce4ec;
}

.coin-card {
  background-color: #fff8e1;
}

.friend-card {
  background-color: #f3e5f5;
}

.report-card {
  background-color: #e0f7fa;
}

.work-card {
  background-color: #f1f8e9;
}

.course-card {
  background-color: #e8f5e9;
}

.stats-card {
  background-color: #fffde7;
}

.messages-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 150px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

@media (width <= 968px) {
  .messages-layout {
    grid-template-columns: 1fr;
    height: auto;
    display: block;
  }
}

.messages-sidebar {
  height: 100%;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  border: 3px solid #1a1a1a;
  box-shadow: 6px 6px #1a1a1a;
  display: flex;
  flex-direction: column;
}

@media (width <= 968px) {
  .messages-sidebar {
    height: auto;
    margin-bottom: 2rem;
    max-height: 400px;
  }
}

.messages-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 3px solid #1a1a1a;
  box-shadow: 6px 6px #1a1a1a;
  overflow: hidden;
}

@media (width <= 968px) {
  .messages-main {
    height: 600px;
  }
}

.messages-header {
  padding: 1rem;
  border-bottom: 3px solid #1a1a1a;
  background: #fff8e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.messages-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a1a1a;
}

.thread-list {
  flex: 1;
  overflow-y: auto;
}

.thread-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 2px solid #eee;
  cursor: pointer;
  transition: all .2s;
  background: #fff;
  position: relative;
}

.thread-item:hover {
  background: #f8f9fa;
  padding-left: 1.2rem;
}

.thread-item.active {
  background: #eef2ff;
  border-left: 4px solid var(--neo-primary);
}

.thread-item.unread {
  background: #fff9e6;
}

.thread-item.unread:after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #fff;
}

.thread-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  object-fit: cover;
  margin-right: 1rem;
  flex-shrink: 0;
  background: #fff;
}

.thread-content {
  flex: 1;
  min-width: 0;
}

.thread-name {
  font-weight: 800;
  font-size: 1rem;
  color: #1a1a1a;
  margin-bottom: .2rem;
  display: flex;
  justify-content: space-between;
}

.thread-time {
  font-size: .75rem;
  color: #888;
  font-weight: normal;
}

.thread-preview {
  font-size: .85rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  background: #fafafa;
  display: flex;
  flex-direction: column;
}

.message-bubble-container {
  display: flex;
  margin-bottom: 1.5rem;
  align-items: flex-end;
}

.message-bubble-container.own {
  justify-content: flex-end;
}

.message-bubble-container.own .message-bubble {
  background: var(--neo-primary);
  color: #fff;
  border-radius: 18px 18px 0;
  box-shadow: 4px 4px rgba(91, 141, 238, .3);
  border: none;
}

.message-bubble-container.own .message-meta {
  text-align: right;
}

.message-bubble-container.other {
  justify-content: flex-start;
}

.message-bubble-container.other .message-bubble {
  background: #fff;
  color: #1a1a1a;
  border-radius: 18px 18px 18px 0;
  border: 2px solid #1a1a1a;
  box-shadow: 4px 4px #1a1a1a;
}

.message-bubble-container.other .message-meta {
  text-align: left;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #1a1a1a;
  object-fit: cover;
  margin-right: .8rem;
  flex-shrink: 0;
  background: #fff;
}

.message-content-wrapper {
  max-width: 70%;
}

.message-bubble {
  padding: .8rem 1.2rem;
  font-size: 1rem;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.message-meta {
  font-size: .75rem;
  color: #888;
  margin-top: .25rem;
}

.message-input-area {
  padding: 1rem;
  background: #fff;
  border-top: 3px solid #1a1a1a;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.message-input {
  flex: 1;
  padding: .8rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  resize: none;
  height: 50px;
  transition: all .2s;
}

.message-input:focus {
  outline: none;
  border-color: var(--neo-primary);
  height: 80px;
}

.send-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neo-primary);
  color: #fff;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
}

.send-btn:hover {
  opacity: .9;
}

.send-btn:active {
  opacity: .8;
}

.send-btn i {
  font-size: 1.2rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #888;
  text-align: center;
  padding: 2rem;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: #ddd;
}

.empty-state p {
  font-size: 1.1rem;
}

.math-page-shell {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem 0 2rem;
}

.math-page-hero, .math-page-section, .math-panel {
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  box-shadow: 6px 6px #1a1a1a;
}

.math-page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2vw, 2rem);
  background: linear-gradient(135deg, rgba(255, 248, 231, .98) 0%, rgba(237, 247, 255, .98) 52%, rgba(236, 252, 244, .98) 100%);
}

.math-page-hero:after {
  content: "∑";
  position: absolute;
  top: -.5rem;
  right: 1rem;
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  color: rgba(26, 26, 26, .08);
  pointer-events: none;
}

.math-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 1.25rem;
  align-items: start;
}

.math-hero-copy {
  display: grid;
  gap: 1rem;
}

.math-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .35rem .75rem;
  border-radius: 16px;
  border: 4px solid #1a1a1a;
  background: #fff;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 4px 4px #1a1a1a;
}

.math-title {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.1;
  font-weight: 900;
  color: #111;
}

.math-subtitle {
  margin: 0;
  max-width: 58rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #2f3640;
}

.math-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.math-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.5rem;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: all .3s;
  box-shadow: 4px 4px #1a1a1a;
  cursor: pointer;
}

.math-link-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.math-link-btn--primary {
  background: var(--neo-primary);
  color: #fff;
}

.math-hero-note {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 4px 4px #1a1a1a;
}

.math-hero-note h2, .math-section-header h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 900;
  color: #111;
}

.math-hero-note p, .math-section-header p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
}

.math-step-list {
  display: grid;
  gap: .75rem;
}

.math-step-item {
  display: grid;
  gap: .25rem;
  padding: .85rem .95rem;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.math-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2rem;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
}

.math-step-item strong {
  font-size: .98rem;
}

.math-step-item span {
  color: #4b5563;
  line-height: 1.6;
}

.math-page-section {
  padding: 1.25rem;
  background: rgba(255, 255, 255, .92);
}

.math-section-header {
  display: grid;
  gap: .35rem;
  margin-bottom: 1rem;
}

.math-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem;
}

.math-filter-field {
  display: grid;
  gap: .4rem;
}

.math-filter-field label {
  font-size: .88rem;
  font-weight: 800;
  color: #1f2937;
}

.math-filter-field small {
  line-height: 1.5;
  color: #6b7280;
}

.math-filter-input, .math-filter-select {
  width: 100%;
  min-height: 46px;
  padding: .75rem .9rem;
  border: 4px solid #1a1a1a;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
}

.math-filter-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding-top: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.math-filter-toggle input {
  width: 18px;
  height: 18px;
}

.math-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.math-problem-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.math-problem-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1rem;
  min-height: 100%;
  padding: 1rem;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  background: #fff;
  box-shadow: 6px 6px #1a1a1a;
  transition: all .3s;
}

.math-problem-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px #1a1a1a;
}

.math-problem-card__media {
  min-height: 118px;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #1a1a1a;
  background: #f8fafc;
}

.math-problem-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.math-problem-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #6b7280;
  font-weight: 700;
}

.math-problem-card__body {
  display: grid;
  gap: .75rem;
  min-width: 0;
}

.math-problem-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.math-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  width: fit-content;
  padding: .22rem .65rem;
  border-radius: 8px;
  border: 2px solid #1a1a1a;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.math-badge--past {
  background: #dbeafe;
  color: #1d4ed8;
}

.math-badge--upload {
  background: #dcfce7;
  color: #166534;
}

.math-badge--easy {
  background: #ecfccb;
  color: #3f6212;
}

.math-badge--medium {
  background: #ffedd5;
  color: #c2410c;
}

.math-badge--hard {
  background: #fee2e2;
  color: #991b1b;
}

.math-badge--neutral {
  background: #f3f4f6;
  color: #374151;
}

.math-badge--progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.math-badge--completed {
  background: #dcfce7;
  color: #166534;
}

.math-badge--not-started {
  background: #f3f4f6;
  color: #374151;
}

.math-problem-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.35;
  color: #111;
}

.math-problem-card__text {
  margin: 0;
  line-height: 1.7;
  color: #374151;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.math-problem-card__meta {
  display: grid;
  gap: .4rem;
}

.math-problem-card__meta-row {
  display: grid;
  gap: .1rem;
}

.math-problem-card__meta-row dt {
  font-size: .78rem;
  font-weight: 800;
  color: #6b7280;
}

.math-problem-card__meta-row dd {
  margin: 0;
  line-height: 1.5;
  color: #111;
}

.math-problem-card__footer {
  display: grid;
  gap: .75rem;
}

.math-problem-card__hint {
  color: #6b7280;
  font-size: .86rem;
  font-weight: 700;
}

.math-problem-card__progress {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .6rem;
  align-items: center;
}

.math-problem-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.math-problem-card__ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 4px solid #1a1a1a;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 4px 4px #1a1a1a;
}

.math-problem-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border-radius: 8px;
  border: 4px solid #1a1a1a;
  background: var(--neo-primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 4px 4px #1a1a1a;
  text-decoration: none;
}

.math-empty-state {
  display: grid;
  gap: .8rem;
  padding: 1.5rem;
  border: 4px dashed #1a1a1a;
  border-radius: 20px;
  background: rgba(255, 255, 255, .75);
  text-align: center;
}

.math-empty-state strong {
  font-size: 1.05rem;
}

.math-empty-state p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
}

.math-session-layout, .math-review-layout, .math-insights-layout {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.math-session-shell {
  display: grid;
  gap: 1.25rem;
}

.math-session-panels {
  display: grid;
  gap: 1.25rem;
}

.math-session-panel-slot {
  min-width: 0;
}

.math-session-intro {
  display: grid;
  gap: .55rem;
  padding: 1.1rem 1.2rem;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(245, 250, 255, .96), rgba(255, 249, 239, .96));
  box-shadow: 6px 6px #1a1a1a;
}

.math-session-intro h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
}

.math-session-intro p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
}

.math-session-note {
  display: grid;
  gap: .5rem;
  padding: 1rem;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-note strong {
  font-size: 1rem;
}

.math-session-note p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
}

.math-insights-action-bar, .math-insights-panel {
  width: 100%;
  justify-self: stretch;
}

.math-insights-content {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
  gap: 1.25rem;
  align-items: start;
}

.math-insights-main, .math-insights-side {
  min-width: 0;
}

.math-insights-side {
  position: sticky;
  top: 1rem;
}

.math-insights-side .math-panel {
  width: 100%;
}

.math-insights-panel {
  background: #fff;
}

.math-insights-panel__header, .math-insights-panel__body {
  padding: 1.1rem;
}

.math-insights-panel__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.math-insights-panel__title, .math-insights-stats__title {
  margin: 0;
  font-weight: 900;
}

.math-insights-panel__subtitle {
  margin: .25rem 0 0;
  color: #555;
  line-height: 1.7;
}

.math-insights-panel__body {
  display: grid;
  gap: 1.25rem;
}

.math-insights-overview p {
  margin-top: .35rem;
  color: #444;
}

.math-insights-summary-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin-bottom: .5rem;
}

.math-insights-summary-grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.math-insights-summary-grid--triple .math-session-note {
  min-height: 100%;
}

.math-insights-summary-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.math-insights-summary-grid__list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .35rem;
  font-size: .92rem;
  line-height: 1.6;
}

.math-insights-summary-grid__list li {
  margin: 0;
}

.math-insights-summary-grid__empty {
  margin: 0;
  color: #666;
  line-height: 1.7;
}

.math-insights-stats {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}

.math-insights-stats__empty {
  color: #666;
}

.math-insights-stats__card {
  gap: .85rem;
}

.math-insights-stats__table-wrap {
  overflow-x: auto;
}

.math-insights-stats__table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: .9rem;
}

.math-insights-stats__table th, .math-insights-stats__table td {
  padding: .6rem .5rem;
  border-bottom: 2px solid #e5e5e5;
}

.math-insights-stats__table th {
  text-align: left;
  border-bottom: 3px solid #1a1a1a;
  font-weight: 900;
  white-space: nowrap;
}

.math-insights-stats__label {
  font-weight: 700;
  vertical-align: top;
}

.math-insights-stats__num {
  text-align: right;
  white-space: nowrap;
}

@media (width <= 1100px) {
  .math-insights-summary-grid--triple, .math-insights-summary-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width <= 900px) {
  .math-insights-layout {
    width: 100%;
  }

  .math-insights-content {
    grid-template-columns: 1fr;
  }

  .math-insights-side {
    position: static;
    top: auto;
  }

  .math-insights-action-bar, .math-insights-panel {
    width: 100%;
    justify-self: stretch;
  }

  .math-insights-summary-grid--triple, .math-insights-summary-grid--pair {
    grid-template-columns: 1fr;
  }
}

.math-session-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.math-session-problem__content {
  display: grid;
  gap: .85rem;
}

.math-session-problem__statement {
  font-size: .95rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.math-session-problem__plan {
  min-width: 0;
  padding-top: .2rem;
  border-top: 2px solid rgba(26, 26, 26, .14);
}

.math-session-plan__stack {
  display: grid;
  gap: .6rem;
}

.math-session-plan__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.math-session-plan__summary-main {
  display: grid;
  gap: .15rem;
}

.math-session-plan__route-label {
  margin: 0;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: #0f766e;
}

.math-session-plan__route-name {
  font-size: .95rem;
  font-weight: 700;
  color: #111;
}

.math-session-plan__progress-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.9rem;
  padding: .25rem .7rem;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  background: #ecfeff;
  font-size: .78rem;
  font-weight: 900;
  box-shadow: 2px 2px #1a1a1a;
}

.math-session-plan__route-switches {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.math-session-plan__route-switch {
  min-height: 2.1rem;
  padding: .35rem .8rem;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 2px 2px #1a1a1a;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.math-session-plan__route-switch:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px #1a1a1a;
}

.math-session-plan__route-switch--active {
  background: #ecfeff;
}

.math-session-plan__route-switch--selected {
  background: #fff7ed;
}

.math-session-plan__note {
  margin: 0;
  padding: .55rem .7rem;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  background: #fff9db;
  color: #4b5563;
  line-height: 1.55;
  font-size: .86rem;
  box-shadow: 2px 2px #1a1a1a;
}

.math-session-plan__steps {
  display: grid;
  gap: .45rem;
}

.math-session-plan__step {
  min-width: 0;
  padding: 0;
  border: 2px solid #1a1a1a;
  border-radius: 14px;
  box-shadow: 2px 2px #1a1a1a;
  overflow: hidden;
}

.math-session-plan__step--revealed {
  background: #fff;
}

.math-session-plan__step--current {
  background: linear-gradient(#fff7ed 0%, #fff 100%);
}

.math-session-plan__step--locked {
  background: #eef2ff;
}

.math-session-plan__step-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  min-width: 0;
  padding: .55rem .7rem;
  list-style: none;
}

.math-session-plan__step-summary::-webkit-details-marker {
  display: none;
}

.math-session-plan__step-index, .math-session-plan__step-state {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  font-size: .71rem;
  font-weight: 900;
  flex-shrink: 0;
}

.math-session-plan__step-index {
  background: #111827;
  color: #fff;
}

.math-session-plan__step-state {
  border: 1px solid #1a1a1a;
  background: #fff;
  color: #1f2937;
}

.math-session-plan__step-title {
  margin: 0;
  min-width: 0;
  flex: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .92rem;
  font-weight: 400;
  color: #111;
}

.math-session-plan__step-detail {
  margin: 0;
  padding: 0 .7rem .7rem;
  border-top: 1px solid rgba(26, 26, 26, .12);
  line-height: 1.65;
  white-space: pre-wrap;
  color: #4b5563;
  font-size: .88rem;
}

.math-session-plan__placeholder {
  color: #6b7280;
}

.math-session-plan__empty {
  display: grid;
  gap: .35rem;
  padding: .85rem .9rem;
  border: 2px dashed #1a1a1a;
  border-radius: 14px;
  background: #fff;
}

.math-session-plan__empty p {
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
  font-size: .88rem;
}

.neo-card-body.math-session-chat {
  padding: 0;
}

.math-session-chat {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.math-session-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.math-session-chat__header .section-label {
  margin: 0;
}

.math-session-chat__header-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.math-session-chat__header-btn {
  min-height: 42px;
  padding: .55rem 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 999px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 3px 3px #1a1a1a;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}

.math-session-chat__header-btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-chat__header-btn:disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
  box-shadow: 3px 3px #1a1a1a;
}

.math-session-chat__header-btn--clear {
  background: #fff7ed;
  color: #c2410c;
}

.math-session-chat__header-btn--complete {
  background: #ecfdf3;
  color: #166534;
}

.math-session-chat__timeline {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-height: 420px;
  overflow-y: auto;
  padding: .35rem .5rem;
}

.math-session-chat__empty {
  padding: 1rem;
  border: 3px dashed #1a1a1a;
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  color: #4b5563;
  line-height: 1.7;
}

.math-session-chat__starter {
  align-self: flex-start;
}

.math-session-chat__bubble--starter {
  position: relative;
  background: linear-gradient(#fff 0%, #f7f5ff 100%);
  border-color: #1a1a1a;
}

.math-session-chat__bubble--starter:after {
  content: "";
  position: absolute;
  left: -10px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 10px solid rgba(0, 0, 0, 0);
  border-bottom: 10px solid rgba(0, 0, 0, 0);
  border-right: 10px solid #1a1a1a;
}

.math-session-chat__bubble--starter:before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 21px;
  width: 0;
  height: 0;
  border-top: 7px solid rgba(0, 0, 0, 0);
  border-bottom: 7px solid rgba(0, 0, 0, 0);
  border-right: 7px solid #f7f5ff;
  z-index: 1;
}

.math-session-chat__message {
  display: grid;
  gap: .35rem;
  width: 100%;
  max-width: 100%;
}

.math-session-chat__message-body {
  display: flex;
  align-items: flex-end;
  gap: .65rem;
  min-width: 0;
}

.math-session-chat__content {
  display: grid;
  gap: .35rem;
  width: fit-content;
  max-width: min(90%, 60rem);
  min-width: 0;
}

.math-session-chat__message--assistant {
  align-self: flex-start;
}

.math-session-chat__message--assistant .math-session-chat__message-body {
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}

.math-session-chat__message--assistant .math-session-chat__content {
  max-width: min(90%, 60rem);
}

.math-session-chat__assistant-head {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
}

.math-session-chat__message--pending .math-session-chat__bubble {
  animation: 1.1s ease-in-out infinite alternate math-session-chat-pulse;
}

.math-session-chat__message--assistant .math-session-chat__speaker {
  color: #6b46c1;
}

.math-session-chat__message--assistant .math-session-chat__meta {
  justify-content: flex-start;
}

.math-session-chat__message--assistant .math-session-chat__bubble {
  background: linear-gradient(#fff 0%, #f8f7ff 100%);
  color: #1f2937;
  border-radius: 18px 18px 18px 4px;
  border: 3px solid #1a1a1a;
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-chat__message--user {
  align-self: flex-end;
  margin-left: auto;
}

.math-session-chat__message--user .math-session-chat__message-body {
  justify-content: flex-end;
}

.math-session-chat__message--user .math-session-chat__speaker {
  color: #1d4ed8;
}

.math-session-chat__message--user .math-session-chat__meta {
  justify-content: flex-end;
}

.math-session-chat__message--user .math-session-chat__bubble {
  background: linear-gradient(#5b8dee 0%, #4f7ddb 100%);
  color: #fff;
  border-radius: 18px 18px 4px;
  border: 3px solid #1a1a1a;
  box-shadow: 4px 4px rgba(30, 64, 175, .28);
}

.math-session-chat__meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  padding: 0 .2rem;
}

.math-session-chat__speaker {
  font-size: .92rem;
  font-weight: 900;
}

.math-session-chat__phase {
  min-width: 0;
  font-size: .76rem;
  font-weight: 700;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.math-session-chat__avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #1a1a1a;
  background: #fff;
  box-shadow: 3px 3px #1a1a1a;
}

.math-session-chat__bubble {
  min-width: 0;
  padding: .9rem 1rem;
  line-height: 1.7;
  word-break: break-word;
}

.math-session-chat__bubble--pending {
  background: linear-gradient(#fffef7 0%, #f5f3ff 100%);
}

.math-rich-text {
  white-space: pre-wrap;
  line-height: 1.7;
}

.math-rich-text .katex {
  font-size: 1.02em;
}

.math-rich-text .katex-display {
  margin: .45rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.math-session-chat__message--user .math-rich-text, .math-session-chat__message--user .math-rich-text .katex {
  color: inherit;
}

.math-chat-diagram {
  margin-top: .75rem;
  padding: .75rem;
  border: 2px solid rgba(26, 26, 26, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
}

.math-chat-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}

.math-chat-diagram text {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 13px;
  font-weight: 700;
  fill: #1f2937;
}

.math-session-chat__choices {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .45rem;
}

.math-session-chat__choice-btn {
  max-width: min(100%, 30rem);
  padding: .8rem 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  background: #fff6d6;
  color: #1f2937;
  box-shadow: 3px 3px #1a1a1a;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.math-session-chat__choice-btn .math-rich-text {
  white-space: normal;
}

.math-session-chat__choice-btn:hover {
  transform: translate(-1px, -1px);
  background: #fff0b5;
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-chat__choice-btn:disabled {
  cursor: not-allowed;
  opacity: .7;
  transform: none;
}

.math-session-composer {
  min-width: 0;
  padding: .95rem;
  border: 3px solid #1a1a1a;
  border-radius: 18px;
  background: linear-gradient(#fffdfa 0%, #fff 100%);
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-composer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(76px, 10%, 92px);
  gap: .75rem;
  align-items: stretch;
}

.math-session-composer__input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  resize: vertical;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 132px;
}

.math-session-composer__actions {
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  min-width: 0;
  min-height: 132px;
}

.math-session-composer__icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  border: 3px solid #1a1a1a;
  border-radius: 18px;
  background: #fff;
  color: #1a1a1a;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 4px 4px #1a1a1a;
  transition: transform .12s, box-shadow .12s, background .12s, color .12s;
}

.math-session-composer__icon-btn:hover:not(:disabled), .math-session-composer__icon-btn:focus-visible:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px #1a1a1a;
}

.math-session-composer__icon-btn:focus-visible {
  outline: none;
}

.math-session-composer__icon-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
  box-shadow: 4px 4px #1a1a1a;
}

.math-session-composer__icon-btn--send {
  background: linear-gradient(#eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.math-session-composer__icon-btn--hint {
  background: linear-gradient(#fff7d6 0%, #fef08a 100%);
  color: #a16207;
}

.math-session-composer__icon-btn--stop {
  background: linear-gradient(#fee2e2 0%, #fecaca 100%);
  color: #b91c1c;
}

.math-session-composer__icon-btn:after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + .5rem);
  padding: .28rem .55rem;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity 80ms, transform 80ms;
  z-index: 4;
}

.math-session-composer__icon-btn:hover:after, .math-session-composer__icon-btn:focus-visible:after {
  opacity: 1;
  transform: translate(-50%);
}

.math-session-chat__status {
  align-self: center;
  max-width: min(100%, 34rem);
  padding: .75rem 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
  box-shadow: 3px 3px #1a1a1a;
}

.math-session-chat__status--info {
  background: #eefbf6;
  color: #166534;
}

.math-session-chat__status--error {
  background: #fef2f2;
  color: #b91c1c;
}

@keyframes math-session-chat-pulse {
  from {
    transform: translateY(0);
    box-shadow: 4px 4px #1a1a1a;
  }

  to {
    transform: translateY(-1px);
    box-shadow: 5px 5px #1a1a1a;
  }
}

@media (width >= 969px) {
  .math-session-panels {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: start;
  }
}

.math-portal-shell {
  display: grid;
  gap: 1.5rem;
  padding: .5rem 0 2rem;
}

.math-portal-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: .9rem;
  padding: 1.5rem;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 248, 231, .98) 0%, rgba(239, 248, 255, .98) 46%, rgba(242, 255, 246, .98) 100%);
  box-shadow: 6px 6px #1a1a1a;
}

.math-portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.math-portal-hero .btn-ultra {
  padding: .75rem 1.5rem;
  font-size: .95rem;
}

.math-portal-content {
  display: block;
}

.math-portal-grid {
  display: grid;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  gap: 1rem;
  align-items: start;
}

.math-portal-side-column {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.math-portal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.5rem;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  background: #fff;
  box-shadow: 6px 6px #1a1a1a;
  transition: all .3s;
}

.math-portal-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px #1a1a1a;
}

.math-portal-card--wide {
  grid-column: span 2;
}

.math-portal-card--selector {
  gap: 1rem;
}

.math-portal-card--action {
  background: #5b8dee;
  color: #fff;
}

.math-portal-card--utility {
  background: #fff3c4;
}

.math-portal-card--utility .math-section-header h2 {
  color: #1a1a1a;
}

.math-portal-card--action .math-section-header h2 {
  color: #fff;
}

.math-portal-card--action .math-summary-row {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .15);
}

.math-portal-card--action .math-summary-row span, .math-portal-card--action .math-summary-row strong {
  color: #fff;
}

.math-portal-card .math-section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
}

.math-portal-card .math-section-header h2 {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
}

.math-portal-utility-copy {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: #4f3d05;
}

.math-portal-card--selector .math-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.math-portal-card--selector .math-choice-subgroup {
  margin-bottom: 0;
}

.math-portal-bg-icon {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 8rem;
  opacity: .08;
  transform: rotate(-15deg);
  pointer-events: none;
  font-weight: 900;
}

.math-choice-subgroup {
  display: grid;
  gap: .5rem;
  margin-bottom: .7rem;
}

.math-common-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.math-common-actions .math-link-btn {
  padding: .6rem 1rem;
  border-radius: 12px;
  font-size: .92rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: 4px 4px #1a1a1a;
}

.math-common-actions .math-link-btn:hover {
  box-shadow: 6px 6px #1a1a1a;
}

.math-choice-subgroup:last-child {
  margin-bottom: 0;
}

.math-choice-subgroup__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-weight: 900;
  color: #111;
}

.math-problem-option-groups {
  display: grid;
  gap: .8rem;
}

.math-problem-option-group {
  display: grid;
  gap: .4rem;
}

.math-problem-option-group__title {
  font-weight: 900;
  color: #111;
  font-size: .88rem;
}

.math-problem-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .45rem;
}

.math-choice-chip--problem-option {
  min-height: 0;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  padding: .58rem .72rem;
  border-width: 3px;
  border-radius: 14px;
  box-shadow: 3px 3px #1a1a1a;
}

.math-choice-chip--problem-option:hover {
  box-shadow: 5px 5px #1a1a1a;
}

.math-choice-chip--inactive {
  opacity: .58;
}

.math-choice-chip--problem-option.math-choice-chip--progress:not(.math-choice-chip--selected) {
  border-color: #2563eb;
}

.math-choice-chip--problem-option.math-choice-chip--completed:not(.math-choice-chip--selected) {
  border-color: #15803d;
}

.math-problem-option-chip__title {
  font-weight: 900;
  line-height: 1.35;
  font-size: .88rem;
}

.math-problem-option-chip__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
  width: 100%;
}

.math-problem-option-chip__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.15rem;
  min-height: 1.55rem;
  padding: .08rem .5rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.math-problem-option-chip__badge--new {
  background: #e0f2fe;
  color: #0369a1;
}

.math-problem-option-chip__badge--progress {
  background: #dbeafe;
  color: #1d4ed8;
}

.math-problem-option-chip__badge--completed {
  background: #fef3c7;
  color: #b45309;
}

.math-choice-chip--selected .math-problem-option-chip__badge {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.math-clear-link {
  padding: 0;
  border: 0;
  background: none;
  color: #0f766e;
  font-weight: 800;
  cursor: pointer;
}

.math-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.math-chip-grid__placeholder {
  padding: .9rem 1rem;
  border: 3px dashed #1a1a1a;
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  color: #4b5563;
  font-weight: 700;
}

.math-choice-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 46px;
  padding: .78rem 1rem;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 900;
  box-shadow: 4px 4px #1a1a1a;
  cursor: pointer;
  transition: all .3s;
}

.math-choice-chip:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.math-choice-chip--selected {
  background: #111;
  color: #fff;
}

.math-choice-chip--wide {
  min-width: 104px;
}

.math-choice-chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, .08);
  font-size: .76rem;
  font-weight: 900;
}

.math-choice-chip--selected .math-choice-chip__count {
  background: rgba(255, 255, 255, .16);
}

.math-summary-grid {
  display: grid;
  gap: .4rem;
}

.math-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .75rem;
  border: 3px solid #1a1a1a;
  border-radius: 12px;
  background: #fff;
}

.math-summary-row span {
  color: #4b5563;
  font-weight: 700;
}

.math-summary-row strong {
  color: #111;
  font-weight: 900;
}

.math-summary-actions {
  display: grid;
  gap: .5rem;
}

.math-status-banner {
  padding: .7rem .9rem;
  border-radius: 12px;
  border: 3px solid #1a1a1a;
  background: linear-gradient(135deg, #48c9b0 0%, #16a085 100%);
  color: #1a1a1a;
  font-weight: 900;
  line-height: 1.6;
  box-shadow: 4px 4px #1a1a1a;
}

.math-upload-cta {
  display: grid;
  gap: .25rem;
  padding: .8rem .9rem;
  border: 4px dashed #1a1a1a;
  border-radius: 16px;
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: #1a1a1a;
  text-align: left;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 4px 4px #1a1a1a;
}

.math-upload-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.math-upload-cta strong {
  font-size: 1rem;
}

.math-upload-cta span {
  color: #1a1a1a;
  line-height: 1.6;
}

.math-portal-insight-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .78rem 1.2rem;
  border: 4px solid #1a1a1a;
  border-radius: 16px;
  background: #1a1a1a;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 4px 4px rgba(26, 26, 26, .5);
  transition: all .3s;
}

.math-portal-insight-link:hover {
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px rgba(26, 26, 26, .5);
}

.math-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
}

.math-modal-panel {
  width: min(100%, 980px);
  max-height: 92vh;
  overflow: auto;
  padding: 1.5rem;
  border: 4px solid #1a1a1a;
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: 10px 10px #1a1a1a;
}

.math-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.math-modal-header h2 {
  margin: .25rem 0 0;
  font-size: 1.4rem;
  font-weight: 900;
}

.math-modal-close {
  padding: .7rem .95rem;
  border: 4px solid #1a1a1a;
  border-radius: 12px;
  background: #fff;
  color: #1a1a1a;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 4px 4px #1a1a1a;
  transition: all .2s;
}

.math-modal-close:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px #1a1a1a;
}

.math-session-clear-modal {
  width: min(100%, 640px);
}

.math-session-clear-modal__body {
  display: grid;
  gap: 1rem;
}

.math-session-clear-modal__lead {
  padding: 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  background: #fff6d6;
  line-height: 1.8;
  color: #1f2937;
}

.math-session-clear-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .75rem;
}

.math-session-clear-modal__confirm {
  padding: .85rem 1.3rem;
}

.math-upload-panel {
  display: grid;
  gap: 1rem;
}

.math-admin-shell {
  display: grid;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: .75rem 0 2.5rem;
}

.math-admin-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 2vw, 2rem);
  border: 4px solid #1a1a1a;
  border-radius: 24px;
  background: #fff7dc;
  box-shadow: 8px 8px #1a1a1a;
}

.math-admin-hero:after {
  content: "⌘";
  position: absolute;
  right: 1.4rem;
  top: -.5rem;
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 1;
  font-weight: 900;
  color: rgba(26, 26, 26, .08);
  pointer-events: none;
}

.math-admin-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.math-admin-heading {
  display: grid;
  gap: .75rem;
  max-width: 52rem;
}

.math-admin-kicker {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  padding: .32rem .75rem;
  border: 3px solid #1a1a1a;
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 4px 4px #1a1a1a;
}

.math-admin-title {
  margin: 0;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 900;
  color: #111;
}

.math-admin-description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.math-admin-toolbar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.math-admin-filter-bar {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 18px;
  background: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.math-admin-filter-input {
  width: 100%;
}

.math-admin-filter-meta {
  margin: 0;
  line-height: 1.7;
  color: #6b7280;
}

.math-admin-layout, .math-admin-split {
  display: grid;
  gap: 1.25rem;
}

.math-admin-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .95fr);
  align-items: start;
}

.math-admin-layout--single {
  grid-template-columns: minmax(0, 1fr);
}

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

.math-admin-main, .math-admin-side {
  display: grid;
  gap: 1.25rem;
}

.math-admin-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 4px solid #1a1a1a;
  border-radius: 22px;
  background: #fff;
  box-shadow: 6px 6px #1a1a1a;
}

.math-admin-panel--soft {
  background: #fffaf0;
}

.math-admin-panel--mint {
  background: #edfdf5;
}

.math-admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.math-admin-panel-title-wrap, .math-admin-section-intro {
  display: grid;
  gap: .35rem;
}

.math-admin-panel-title, .math-admin-section-intro h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  font-weight: 900;
  color: #111;
}

.math-admin-panel-text, .math-admin-section-intro p {
  margin: 0;
  line-height: 1.7;
  color: #4b5563;
}

.math-admin-inline-note {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  align-items: center;
  padding: .9rem 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 18px;
  background: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.math-admin-inline-note strong {
  color: #111;
}

.math-admin-inline-note span {
  color: #4b5563;
}

.math-admin-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  padding: .3rem .7rem;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  background: #f8fafc;
  color: #111;
  font-size: .8rem;
  font-weight: 800;
}

.math-admin-chip--accent {
  background: #dcfce7;
  color: #166534;
}

.math-admin-chip--warn {
  background: #fef3c7;
  color: #92400e;
}

.math-admin-form {
  display: grid;
  gap: 1.25rem;
}

.math-admin-form-section {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
}

.math-admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.math-admin-field {
  display: grid;
  gap: .45rem;
  min-width: 0;
}

.math-admin-field--full {
  grid-column: 1 / -1;
}

.math-admin-label {
  font-size: .94rem;
  font-weight: 900;
  color: #111;
}

.math-admin-help {
  margin: 0;
  font-size: .85rem;
  line-height: 1.6;
  color: #6b7280;
}

.math-admin-field .input-box, .math-admin-field select.input-box, .math-admin-field textarea.input-box {
  min-height: 48px;
  margin-bottom: 0;
  padding: .85rem .95rem;
  border: 3px solid #1a1a1a;
  border-radius: 14px;
  background: #fff;
  color: #111;
}

.math-admin-field textarea.input-box {
  min-height: 132px;
  resize: vertical;
}

.math-admin-field .input-box:focus, .math-admin-field select.input-box:focus, .math-admin-field textarea.input-box:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, .12);
}

.math-admin-code {
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  background: #f8fafc;
}

.math-admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 900;
  color: #111;
}

.math-admin-checkbox input {
  width: 18px;
  height: 18px;
}

.math-admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.math-admin-submit {
  width: min(100%, 320px);
}

.math-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .75rem;
}

.math-admin-stat {
  display: grid;
  gap: .25rem;
  padding: .9rem 1rem;
  border: 3px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 4px 4px #1a1a1a;
}

.math-admin-stat span {
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  color: #6b7280;
  text-transform: uppercase;
}

.math-admin-stat strong {
  font-size: 1.25rem;
  line-height: 1.2;
  color: #111;
}

.math-admin-table--sources {
  min-width: 980px;
}

.math-admin-table--problems {
  min-width: 1040px;
}

.math-admin-table-id {
  font-weight: 900;
  color: #111;
  white-space: nowrap;
}

.math-admin-table-code {
  max-width: 100%;
}

.math-admin-table-datetime {
  white-space: nowrap;
  color: #374151;
}

.math-admin-source-summary {
  display: grid;
  gap: .25rem;
}

.math-admin-source-summary strong {
  color: #111;
  line-height: 1.5;
}

.math-admin-problem-summary {
  display: grid;
  gap: .25rem;
}

.math-admin-problem-summary strong {
  color: #111;
  line-height: 1.5;
}

.math-admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.math-admin-row-actions .btn-ultra {
  white-space: nowrap;
}

.math-admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.math-admin-pagination-info {
  display: grid;
  gap: .5rem;
}

.math-admin-pagination .math-admin-toolbar {
  justify-content: flex-end;
}

.math-admin-summary-list, .math-admin-list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.math-admin-summary-item, .math-admin-list-item {
  display: grid;
  gap: .3rem;
  padding: .95rem 1rem;
  border: 2px solid #1a1a1a;
  border-radius: 16px;
  background: #fff;
}

.math-admin-summary-item span {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .05em;
  color: #6b7280;
  text-transform: uppercase;
}

.math-admin-summary-item strong, .math-admin-list-item strong {
  color: #111;
  line-height: 1.5;
}

.math-admin-list-item--interactive {
  transition: transform .18s, box-shadow .18s, background .18s;
}

.math-admin-list-item--interactive:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px #1a1a1a;
}

.math-admin-list-item--selected {
  border-width: 3px;
  background: #fff7dc;
}

.math-admin-list-link {
  display: grid;
  gap: .35rem;
  color: inherit;
  text-decoration: none;
}

.math-admin-list-link:hover, .math-admin-list-link:focus-visible {
  color: inherit;
}

.math-admin-list-item-head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.math-admin-meta-line {
  margin: 0;
  font-size: .84rem;
  line-height: 1.6;
  color: #6b7280;
  word-break: break-all;
}

.math-admin-table-wrap {
  overflow: auto;
  border: 2px solid #1a1a1a;
  border-radius: 18px;
  background: #fff;
}

.math-admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.math-admin-table th, .math-admin-table td {
  padding: .9rem .95rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #d1d5db;
}

.math-admin-table thead th {
  background: #f8fafc;
  color: #374151;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.math-admin-table tbody tr:last-child td {
  border-bottom: none;
}

.math-admin-empty {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 2px dashed #1a1a1a;
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

.math-admin-empty strong {
  color: #111;
}

.math-admin-empty p {
  margin: 0;
  line-height: 1.7;
  color: #6b7280;
}

@media (width <= 900px) {
  .math-hero-grid, .math-problem-card {
    grid-template-columns: 1fr;
  }

  .math-portal-grid {
    grid-template-columns: 1fr;
  }

  .math-portal-side-column {
    grid-template-columns: 1fr;
  }

  .math-portal-card--wide {
    grid-column: span 1;
  }

  .math-portal-card--selector {
    grid-column: span 1;
  }

  .math-admin-layout, .math-admin-split, .math-admin-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (width <= 640px) {
  .math-page-shell {
    padding-top: .75rem;
  }

  .math-page-hero, .math-page-section {
    border-radius: 16px;
  }

  .math-problem-card__footer {
    align-items: flex-start;
  }

  .math-portal-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .math-choice-subgroup__title, .math-summary-row, .math-modal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .math-admin-shell {
    gap: 1rem;
    padding-top: .25rem;
  }

  .math-admin-hero, .math-admin-panel {
    border-radius: 18px;
  }

  .math-admin-hero-top {
    align-items: stretch;
  }

  .math-admin-toolbar {
    width: 100%;
  }

  .math-admin-toolbar .btn-ultra {
    width: 100%;
    justify-content: center;
  }
}

.dashboard-grid.typing-mode {
  grid-template-columns: 1fr !important;
  display: block !important;
}

.dashboard-grid.typing-mode .neo-sidebar {
  display: none !important;
}
