:root {
    --bg: #f5fbfb;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --surface-soft: #eef9f7;
    --ink: #182558;
    --muted: #60758a;
    --line: rgba(26, 126, 148, 0.16);
    --brand: #18b7b0;
    --brand-deep: #0f8f92;
    --brand-soft: #d8f4f2;
    --accent: #f6c63a;
    --shadow: 0 18px 42px rgba(20, 93, 115, 0.12);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 9px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", Arial, sans-serif;
    background: linear-gradient(180deg, #f5fbfb 0%, #eef8f8 100%);
    color: var(--ink);
    min-height: 100vh;
}

body.has-lightbox-open .floating-lupi-widget {
    display: none;
}

a {
    color: inherit;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto;
}

.site-header {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(17, 122, 132, 0.16);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #29c6c0 0%, #10919a 100%);
    color: white;
    box-shadow: var(--shadow);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg_lexikids.png") center top / 500px auto no-repeat;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

@media (min-width: 900px) {
  .site-header::before {
    background: url("../img/bg_lexikids.png") right -25px / 700px auto no-repeat;
  }
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.header-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.1rem 1.4rem 1.2rem;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo-link {
    flex-shrink: 0;
    max-width: min(430px, 100%);
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 124px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.65);
}

.brand-logo-shell {
    position: absolute;
    inset: 10px 18px 12px 20px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 22% 28%, rgba(255, 194, 71, 0.38), transparent 32%),
        radial-gradient(circle at 82% 32%, rgba(65, 199, 220, 0.32), transparent 30%),
        radial-gradient(circle at 44% 82%, rgba(121, 212, 103, 0.22), transparent 34%);
    z-index: 0;
    pointer-events: none;
}

.eyebrow,
.section-kicker,
.feature-number {
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-mark:hover .brand-logo,
.brand-mark:focus-visible .brand-logo {
    transform: translateY(-1px) scale(1.015);
}

.brand-logo {
    transition: transform 180ms ease;
}

.brand-mark:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.88);
    outline-offset: 6px;
    border-radius: 34px;
}

.brand-mark {
    text-decoration: none;
}

.brand-copy {
    flex: 1;
    min-width: 0;
    max-width: 560px;
}

.brand-kicker {
    margin: 0 0 0.2rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-subcopy {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.25rem;
    line-height: 1.55;
    text-wrap: balance;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 500;
}

.eyebrow {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.72rem;
    margin-bottom: 0.2rem;
}

.site-header h1 {
    max-width: none;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1;
    font-weight: 500;
}


.brand-subtitle {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.95rem;
}

.header-searchbar {
    padding: 1rem 1.4rem;
    background: linear-gradient(180deg, #fcfefe 0%, #edf9f7 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.global-search-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 860px;
    margin: 0 auto;
}

.global-search-form.is-loading {
    opacity: 0.82;
}

.search-stack {
    flex: 1;
    min-width: 0;
}

.search-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--brand-deep);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-field-row {
    display: flex;
    gap: 0.75rem;
}

.search-topic-select {
    min-width: 180px;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    font-size: 0.98rem;
}

.search-helper {
    min-height: 1.5rem;
    margin-top: 0.45rem;
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.95rem;
}

.search-mascot,
.dictionary-search-buddy,
.empty-search-illustration,
.hero-search-mascot {
    position: relative;
    flex-shrink: 0;
}

.search-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 94px;
    height: 94px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff6d8 0%, #f6d56a 100%);
    border: 1px solid rgba(201, 153, 30, 0.22);
    box-shadow: 0 16px 32px rgba(24, 183, 176, 0.12);
    animation: mascot-float 2.8s ease-in-out infinite;
    padding: 0;
    cursor: pointer;
    appearance: none;
}

.search-mascot:hover {
    transform: translateY(-2px);
}

.search-mascot:focus-visible {
    outline: 3px solid rgba(24, 183, 176, 0.28);
    outline-offset: 4px;
}

.mascot-face,
.hero-mascot-head {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    border: 3px solid #2f86d9;
}

.mascot-face {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-eye,
.dictionary-search-buddy span,
.empty-search-illustration span,
.hero-mascot-head span {
    position: absolute;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f3552;
}

.mascot-eye:first-child,
.dictionary-search-buddy span:first-child,
.empty-search-illustration span:first-child,
.hero-mascot-head span:first-child {
    left: 15px;
}

.mascot-eye:last-child,
.dictionary-search-buddy span:last-child,
.empty-search-illustration span:last-child,
.hero-mascot-head span:last-child {
    right: 15px;
}

.mascot-smile,
.dictionary-search-buddy i,
.empty-search-illustration i,
.hero-mascot-head i {
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 18px;
    height: 10px;
    border-bottom: 3px solid #1f3552;
    border-radius: 0 0 20px 20px;
    transform: translateX(-50%);
}

.mascot-magnifier {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 22px;
    height: 22px;
    border: 4px solid #18b7b0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.mascot-magnifier::after {
    content: "";
    position: absolute;
    right: -8px;
    bottom: -7px;
    width: 12px;
    height: 4px;
    border-radius: 999px;
    background: #18b7b0;
    transform: rotate(45deg);
}

.hero-search-callout  .btn::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    display: inline-block;
    width: 18px;
    margin-right: 6px;
    text-align: center;
    font-size: 0.9rem;
    content: "\f002";
}

.app-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.sidebar-nav {
    padding: 1rem;
    background: linear-gradient(180deg, #fbfefe 0%, #eef9f7 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.sidebar-nav nav {
    display: grid;
    gap: 0.7rem;
}

.sidebar-utility {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #ffffff 0%, #edf9f7 100%);
    border: 1px solid rgba(17, 122, 132, 0.14);
    color: var(--brand-deep);
    text-decoration: none;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 500;
    transition: transform 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
    transform: translateX(2px);
    background: linear-gradient(180deg, #5adbd3 0%, #2db8b6 100%);
    color: white;
}

.nav-link:hover .nav-link-badge,
.nav-link.is-active .nav-link-badge {
    border: 1.5px solid rgba(255, 255, 255, 0.9);
}

.nav-link.is-active {
    transform: translateX(2px);
    background: linear-gradient(180deg, #24c2bb 0%, #10919a 100%);
    color: white;
}

.nav-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, #fff6d8 0%, #f6d56a 100%);
    color: #856300;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 2px 8px;
}

.nav-link-badge-home { background: linear-gradient(180deg, #f6e7d3 0%, #efc98d 100%); }
.nav-link-badge-presentation { background: linear-gradient(180deg, #eee4fa 0%, #d3bbf0 100%); }
.nav-link-badge-dictionary { background: linear-gradient(180deg, #def3f0 0%, #b6e4dd 100%); }
.nav-link-badge-alphabetical { background: linear-gradient(180deg, #e5effa 0%, #bfd8f3 100%); }
.nav-link-badge-topics { background: linear-gradient(180deg, #e8f4db 0%, #c8e3a4 100%); }
.nav-link-badge-team { background: linear-gradient(180deg, #f8e4d6 0%, #efc3a0 100%); }


.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    background: white;
    border: 1px dashed rgba(17, 122, 132, 0.34);
    color: var(--muted);
    text-decoration: none;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 500;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.admin-link:hover {
    background: #f3fbfa;
    color: var(--brand-deep);
    border-color: rgba(17, 122, 132, 0.52);
}

.content-shell {
    padding: 0;
}

.hero-card,
.section-card,
.entry-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero-card,
.section-card,
.entry-card,
.topic-section {
    padding: 1.6rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 183, 176, 0.12), transparent 70%);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 12%, rgba(216, 244, 242, 0.72) 0 22px, transparent 23px),
        radial-gradient(circle at 82% 24%, rgba(216, 244, 242, 0.78) 0 16px, transparent 17px),
        radial-gradient(circle at 70% 76%, rgba(232, 221, 255, 0.46) 0 22px, transparent 23px);
    pointer-events: none;
}

.section-kicker {
    color: var(--brand-deep);
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

h1,
h2,
h3,
h4 {
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 500;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 0.9rem;
}

h3 {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
    line-height: 1.65;
}

.lead {
    max-width: 60ch;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.hero-search-callout {
    display: grid;
    grid-template-columns: 1.2fr 180px;
    gap: 1rem;
    margin-top: 1.4rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fff9df 0%, #ffefb6 100%);
    border: 1px solid rgba(228, 195, 93, 0.42);
}

.hero-search-tag,
.dictionary-search-tag {
    margin-bottom: 0.35rem;
    color: #997100;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-search-copy h3 {
    margin-bottom: 0.5rem;
}

.hero-search-copy .btn {
    margin-top: 0.8rem;
}

.hero-search-mascot {
    display: flex;
    align-items: end;
    justify-content: center;
}

.hero-mascot-head {
    position: relative;
    z-index: 2;
}

.hero-mascot-body {
    position: absolute;
    bottom: 0;
    width: 76px;
    height: 74px;
    border-radius: 26px 26px 18px 18px;
    background: linear-gradient(180deg, #4bc9d8 0%, #18b7b0 100%);
    border: 3px solid #2f86d9;
}

.search-box {
    margin-top: 1.25rem;
}

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

.search-input {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    font-size: 1rem;
}

.search-input:focus {
    outline: 2px solid rgba(44, 109, 216, 0.2);
    border-color: rgba(44, 109, 216, 0.32);
}

.btn {
    padding: 0.95rem 1.4rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(44, 109, 216, 0.18);
}

.btn-soft {
    background: linear-gradient(180deg, #f3fbfa 0%, #d8f4f2 100%);
    color: var(--brand-deep);
    border: 1px solid rgba(44, 109, 216, 0.14);
}

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

.play-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.play-card {
    min-height: 220px;
    padding: 1.35rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(83, 49, 23, 0.18);
}

.play-card-topics {
    background: linear-gradient(180deg, #ffffff 0%, #ffdca0 100%);
}

.play-card-letters {
    background: linear-gradient(180deg, #ffffff 0%, #ffd08a 100%);
}

.play-card-search {
    background: linear-gradient(180deg, #ffffff 0%, #ffb3b3 100%);
}

.play-card h3 {
    margin: 0.55rem 0 0.65rem;
}

.play-badge {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 1);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.steps-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.step-pill {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(83, 49, 23, 0.08);
}

.step-pill strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.step-pill span {
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 700;
}

.feature-card,
.topic-section,
.prose-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.feature-card {
    padding: 1.35rem;
}

.feature-number {
    color: var(--forest);
    font-size: 0.76rem;
    margin-bottom: 0.6rem;
}

.feature-card h3,
.topic-header h3 {
    margin-bottom: 0.5rem;
}

.section-card > p,
.prose-card p {
    margin-bottom: 0.9rem;
}

.results-copy {
    color: var(--muted);
    margin: 0.8rem 0 1rem;
}

[data-dictionary-results] {
    transition: opacity 0.18s ease;
}

[data-dictionary-results].is-loading {
    opacity: 0.55;
}


.dictionary-search-banner {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 1rem;
    align-items: center;
    margin: 1rem 0 0.2rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #eff8ff 0%, #dff0ff 100%);
    border: 1px solid rgba(44, 109, 216, 0.16);
}

.dictionary-search-buddy,
.empty-search-illustration {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 24px;
    background: linear-gradient(180deg, #fff6d8 0%, #f6d56a 100%);
    border: 1px solid rgba(201, 153, 30, 0.22);
    animation: mascot-float 3s ease-in-out infinite;
}

.dictionary-search-buddy {
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dictionary-search-buddy:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(44, 109, 216, 0.14);
}

.dictionary-search-buddy:focus-visible {
    outline: 3px solid rgba(24, 183, 176, 0.28);
    outline-offset: 4px;
}

.dictionary-search-buddy::after,
.empty-search-illustration::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    border: 4px solid #18b7b0;
    border-radius: 50%;
}

.dictionary-search-buddy::before,
.empty-search-illustration::before {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 9px;
    width: 10px;
    height: 4px;
    border-radius: 999px;
    background: #18b7b0;
    transform: rotate(45deg);
}

.empty-search-state {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fffaf0 0%, #fff4d7 100%);
    border: 1px solid rgba(222, 184, 87, 0.34);
}

.empty-search-tip {
    color: var(--muted);
    margin-top: 0.35rem;
}

.quick-help-card {
    margin-top: 1rem;
}

.mini-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.mini-guide-item {
    padding: 1.1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fcfefe 0%, #edf9f7 100%);
    border: 1px solid var(--line);
}

.mini-guide-item strong {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--brand-deep);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 1rem;
}

.word-list {
    list-style: none;
    display: grid;
    gap: 0.85rem;
}

.dictionary-card-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dictionary-card-item {
    min-width: 0;
}

.dictionary-word-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 0.95rem;
    height: 100%;
    padding: 0.9rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    background: linear-gradient(180deg, #ffffff 0%, #f4fcfb 100%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(44, 109, 216, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dictionary-word-card:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 109, 216, 0.24);
    box-shadow: 0 18px 34px rgba(24, 183, 176, 0.12);
}

.dictionary-word-art {
    display: block;
}

.dictionary-word-image {
    width: 112px;
    height: 112px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    background: white;
    border: 1px solid rgba(42, 86, 155, 0.08);
}

.dictionary-word-meta {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
}

.dictionary-word-topic {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: #fff3c7;
    color: #916900;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dictionary-word-meta strong {
    font-size: 1.16rem;
    line-height: 1.1;
}

.dictionary-word-translation {
    color: var(--brand-deep);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.dictionary-word-example {
    margin-top: 0.2rem;
    color: var(--muted);
    line-height: 1.45;
}

.word-list li a,
.collocation-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.word-list li a:hover {
    transform: translateX(3px);
    border-color: rgba(44, 109, 216, 0.3);
    background: #f3fbfa;
}

.word-list span {
    font-size: 1.08rem;
    font-weight: 700;
}

.word-list small,
.topic-header span {
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.no-results {
    color: var(--muted);
    font-style: italic;
}

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

.topic-section {
    margin-top: 1rem;
}

.topics-mission-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.topics-mission-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fffaf0 0%, #fff3c9 100%);
    border: 1px solid rgba(222, 184, 87, 0.34);
    box-shadow: 0 12px 26px rgba(44, 109, 216, 0.08);
}

.topics-mission-tag {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #916900;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topics-mission-card strong {
    display: block;
    margin-bottom: 0.35rem;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.topic-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f4fcfb 100%);
    border: 1px solid var(--line);
    box-shadow: 0 14px 32px rgba(44, 109, 216, 0.08);
}

.topic-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.topic-badge {
    display: inline-flex;
    margin-bottom: 0.45rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #fff3c7;
    color: #916900;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topic-count {
    margin-bottom: 0.35rem;
    color: var(--brand-deep);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topic-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #4bc9d8 0%, #18b7b0 100%);
    color: white;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(44, 109, 216, 0.18);
}

.topic-word-list {
    list-style: none;
    display: grid;
    gap: 0.7rem;
}

.topic-card-footer {
    margin-top: 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px dashed rgba(42, 86, 155, 0.18);
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.topic-word-list li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    background: white;
    border: 1px solid var(--line);
    transition: transform 0.18s ease, background 0.18s ease;
}

.topic-word-list li a:hover {
    transform: translateX(3px);
    background: #f3fbfa;
}

.topic-word-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.topic-word-thumb img,
.topic-word-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
}

.topic-word-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #4bc9d8 0%, #18b7b0 100%);
    color: white;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.topic-word-placeholder-image,
.topic-illustration {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(42, 86, 155, 0.1);
    background: white;
}

.topic-word-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.topic-word-copy strong {
    font-size: 1.02rem;
}

.topic-word-copy small {
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.word-hero {
    margin-bottom: 1rem;
}

.word-translation {
    margin-top: -0.2rem;
    color: var(--brand-deep);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-weight: 700;
}

.audio-heading-row,
.audio-inline-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.audio-example-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.75rem;
}

.audio-example-row p {
    margin: 0;
}

.audio-trigger {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #4bc9d8 0%, #18b7b0 100%);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(44, 109, 216, 0.16);
    position: relative;
    flex-shrink: 0;
}

.audio-trigger-small {
    width: 36px;
    height: 36px;
}

.audio-trigger-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
}

.audio-trigger-icon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 8px;
    height: 10px;
    background: white;
    clip-path: polygon(0 26%, 42% 26%, 74% 0, 74% 100%, 42% 74%, 0 74%);
}

.audio-trigger-icon::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0px;
    width: 8px;
    height: 14px;
    border-right: 3px solid white;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-radius: 0 16px 16px 0;
}

.audio-trigger:hover,
.audio-trigger.is-playing {
    transform: translateY(-1px);
}

.audio-trigger.is-playing {
    background: linear-gradient(180deg, #ffb654 0%, #f08e1d 100%);
}

.word-jump-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.word-jump-card {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff7df 0%, #ffefbf 100%);
    box-shadow: 0 12px 24px rgba(44, 109, 216, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.word-jump-card-next {
    background: linear-gradient(180deg, #eef8ff 0%, #dff0ff 100%);
}

.word-jump-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(24, 183, 176, 0.12);
}

.word-jump-label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.word-jump-card strong {
    display: block;
    font-size: 1.08rem;
}

.word-jump-card small {
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.word-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.9rem 0 0.3rem;
}

.word-pill {
    display: inline-flex;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #fdf4cd 0%, #ffe59a 100%);
    color: #856300;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
}

.entry-card {
    margin-bottom: 1rem;
}

.word-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.2rem;
    align-items: start;
}

.word-hero-copy {
    min-width: 0;
}

.word-hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(255, 235, 170, 0.9), transparent 34%),
        radial-gradient(circle at bottom right, rgba(173, 224, 255, 0.68), transparent 36%),
        linear-gradient(180deg, #fffdf6 0%, #eef7ff 100%);
    border: 1px solid rgba(226, 208, 167, 0.72);
    box-shadow: 0 18px 34px rgba(83, 49, 23, 0.08);
}

.entry-highlight {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    align-items: start;
}

.entry-spotlight {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #f3f8ff 0%, #e6f0ff 100%);
    border: 1px solid var(--line);
}

.entry-image {
    max-width: 100%;
    border-radius: var(--radius-md);
    display: block;
}

.word-hero-image-trigger {
    position: relative;
    max-width: 100%;
    border-radius: 26px;
}

.word-hero-image-shell {
    position: absolute;
    inset: 10px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 242, 204, 0.9), transparent 18%),
        radial-gradient(circle at 84% 26%, rgba(194, 230, 255, 0.85), transparent 19%),
        radial-gradient(circle at 74% 82%, rgba(255, 221, 168, 0.7), transparent 18%);
    pointer-events: none;
}

.word-hero-image-orbit,
.word-hero-image-spark {
    position: absolute;
    pointer-events: none;
}

.word-hero-image-orbit {
    border-radius: 50%;
    border: 2px dashed rgba(255, 214, 107, 0.52);
}

.word-hero-image-orbit-one {
    width: 74px;
    height: 74px;
    top: 8px;
    right: 8px;
}

.word-hero-image-orbit-two {
    width: 54px;
    height: 54px;
    left: 10px;
    bottom: 14px;
    border-color: rgba(128, 197, 255, 0.5);
}

.word-hero-image-spark {
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #fff4be 0%, #ffd061 100%);
    clip-path: polygon(50% 0, 62% 34%, 100% 50%, 62% 66%, 50% 100%, 38% 66%, 0 50%, 38% 34%);
    filter: drop-shadow(0 3px 6px rgba(255, 191, 64, 0.28));
}

.word-hero-image-spark-one {
    top: 18px;
    left: 18px;
}

.word-hero-image-spark-two {
    right: 26px;
    bottom: 18px;
    width: 12px;
    height: 12px;
}

.word-hero-image-frame {
    position: relative;
    display: block;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfefe 0%, #fff6dc 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 14px 28px rgba(125, 88, 0, 0.12);
}

.word-hero-entry-image {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 24px rgba(83, 49, 23, 0.1);
    background: white;
}

.image-zoom-trigger,
.gallery-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
}

.image-zoom-trigger {
    border-radius: var(--radius-md);
}

.image-zoom-trigger .entry-image,
.gallery-image-button .gallery-image {
    transition: transform 0.18s ease;
}

.image-zoom-trigger:hover .entry-image,
.gallery-image-button:hover .gallery-image {
    transform: scale(1.02);
}

.entry-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #eef9f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.entry-fallback-illustration {
    width: 184px;
    height: 184px;
    border-radius: 24px;
    object-fit: cover;
    display: block;
}

.entry-summary {
    display: grid;
    gap: 0.8rem;
}

.summary-chip,
.example-callout,
.detail-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    border: 1px solid var(--line);
}

.summary-chip span {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-chip strong {
    font-size: 1.1rem;
}

.example-callout {
    background: linear-gradient(180deg, #f7fbff 0%, #edf9f7 100%);
}

.example-callout h3 {
    margin-bottom: 0.45rem;
}

.example-callout p + p {
    margin-top: 0.4rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.detail-card h3 {
    margin-bottom: 0.45rem;
}

.detail-card-fun {
    position: relative;
    overflow: hidden;
}

.detail-card-fun::after {
    content: "";
    position: absolute;
    right: -20px;
    top: -20px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    opacity: 0.4;
}

.detail-card-sun {
    background: linear-gradient(180deg, #f2fcfb 0%, #dcf5f2 100%);
}

.detail-card-sun::after {
    background: #18b7b0;
}

.detail-card-sky {
    background: linear-gradient(180deg, #f3fbfa 0%, #d0f1ed 100%);
}

.detail-card-sky::after {
    background: #b8ece6;
}

.detail-card-leaf {
    background: linear-gradient(180deg, #eef9df 0%, #daf0be 100%);
}

.detail-card-leaf::after {
    background: #cfeeaf;
}

.detail-card-wide {
    grid-column: 1 / -1;
}

.collocation-list li {
    display: block;
    list-style: none;
}

.collocation-list p {
    margin-top: 0.45rem;
    color: var(--muted);
}

.related-words-section {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.image-gallery-section {
    background: linear-gradient(180deg, #fffdf8 0%, #fcfefe 100%);
}

.image-gallery-grid {
    display: block;
}

.gallery-image {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.gallery-stage {
    position: relative;
    padding: 0.8rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(255, 236, 173, 0.45), transparent 32%),
        linear-gradient(180deg, #fffefb 0%, #f7fbff 100%);
    border: 1px solid rgba(227, 207, 165, 0.6);
    box-shadow: 0 10px 24px rgba(125, 88, 0, 0.07);
}

.gallery-showcase {
    margin: 0;
}

.gallery-showcase-button {
    border-radius: 22px;
}

.gallery-showcase-image {
    height: min(312px, 42vw);
    border-radius: 22px;
    border: 1px solid rgba(255, 230, 173, 0.8);
    background: white;
    box-shadow: 0 12px 28px rgba(83, 49, 23, 0.08);
}

.gallery-showcase-caption {
    margin-top: 0.75rem;
    text-align: center;
    color: #6a4f1d;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
}

.gallery-nav-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff8de 0%, #ffe7aa 100%);
    color: #856300;
    border: 1px solid rgba(212, 170, 63, 0.28);
    font-size: 1.55rem;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(125, 88, 0, 0.1);
    transform: translateY(-50%);
}

.gallery-nav-button:hover {
    background: linear-gradient(180deg, #fff5d0 0%, #ffd97f 100%);
}

.gallery-nav-button-prev {
    left: 14px;
}

.gallery-nav-button-next {
    right: 14px;
}

.gallery-thumbs {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.75rem;
    padding: 0.1rem 0.05rem 0.2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.gallery-thumb {
    flex: 0 0 92px;
    padding: 0.3rem;
    border-radius: 20px;
    border: 1px solid rgba(232, 211, 164, 0.85);
    background: linear-gradient(180deg, #fbfefe 0%, #fff7e5 100%);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 8px 16px rgba(125, 88, 0, 0.06);
}

.gallery-thumb img {
    width: 100%;
    height: 78px;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
    border-color: rgba(231, 176, 59, 0.52);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(125, 88, 0, 0.1);
}

.gallery-thumb.is-active {
    background: linear-gradient(180deg, #fff7db 0%, #ffefbf 100%);
}

.gallery-thumbs::-webkit-scrollbar {
    height: 8px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(220, 182, 96, 0.6);
    border-radius: 999px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: rgba(255, 240, 203, 0.8);
    border-radius: 999px;
}

.image-lightbox[hidden] {
    display: none;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 21, 45, 0.72);
}

.image-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    padding: 1rem;
    border-radius: 22px;
    background: white;
    box-shadow: 0 24px 60px rgba(9, 21, 45, 0.3);
}

.image-lightbox-content {
    width: 100%;
    max-height: calc(100vh - 180px);
    border-radius: 20px;
    object-fit: contain;
    display: block;
    background: #f7fbff;
}

.image-lightbox-caption {
    margin-top: 0.8rem;
    text-align: center;
    color: var(--muted);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.image-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(23, 52, 95, 0.08);
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

body.has-lightbox-open {
    overflow: hidden;
}

.related-word-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.related-word-card,
.spotlight-word-card {
    display: block;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-word-card:hover,
.spotlight-word-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(24, 183, 176, 0.12);
}

.related-word-card strong,
.spotlight-word-card strong {
    display: block;
    font-size: 1.02rem;
}

.spotlight-word-art {
    display: block;
    margin-bottom: 0.7rem;
}

.spotlight-word-illustration {
    width: 100%;
    height: 120px;
    border-radius: 18px;
    object-fit: cover;
    display: block;
    border: 1px solid rgba(42, 86, 155, 0.1);
    background: white;
}

.related-word-card small,
.spotlight-word-card small,
.spotlight-word-badge {
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.related-word-card small,
.spotlight-word-card small {
    display: block;
    margin-top: 0.15rem;
    color: var(--muted);
}

.spotlight-card {
    margin-top: 1rem;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.spotlight-word-card:nth-child(1) { background: linear-gradient(180deg, #fff7df 0%, #ffefbf 100%); }
.spotlight-word-card:nth-child(2) { background: linear-gradient(180deg, #eef8ff 0%, #dff0ff 100%); }
.spotlight-word-card:nth-child(3) { background: linear-gradient(180deg, #f4efff 0%, #e6dbff 100%); }
.spotlight-word-card:nth-child(4) { background: linear-gradient(180deg, #effbe8 0%, #daf4cb 100%); }

.spotlight-word-badge {
    display: inline-flex;
    margin-bottom: 0.6rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-deep);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spotlight-word-card p {
    margin-top: 0.5rem;
    color: var(--muted);
}

.word-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.site-footer {
    padding: 1.2rem 0 2rem;
    color: var(--muted);
    text-align: center;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
}

.floating-lupi-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 40;
    display: flex;
    align-items: end;
    gap: 0.7rem;
    pointer-events: auto;
}

.floating-lupi-widget.is-hidden,
.floating-lupi-widget[hidden] {
    display: none !important;
}

.floating-lupi-restore[hidden] {
    display: none !important;
}

.floating-lupi {
    display: flex;
    align-items: end;
    gap: 0.7rem;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.floating-lupi-bubble {
    max-width: 180px;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    background: white;
    color: var(--brand-deep);
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    box-shadow: 0 16px 36px rgba(44, 109, 216, 0.16);
    border: 1px solid rgba(42, 86, 155, 0.1);
}

.floating-lupi-close {
    position: absolute;
    top: -6px;
    right: 4px;
    z-index: 3;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(44, 109, 216, 0.14);
}

.floating-lupi-close:hover {
    color: var(--brand-deep);
}

.floating-lupi-restore {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 39;
    padding: 0.7rem 0.95rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #4bc9d8 0%, #18b7b0 100%);
    color: white;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(44, 109, 216, 0.18);
}

.floating-lupi-restore:hover {
    transform: translateY(-2px);
}

.floating-lupi-body {
    position: relative;
    display: inline-flex;
    align-items: end;
    justify-content: center;
    width: 92px;
    height: 108px;
    border-radius: 22px;
    background: linear-gradient(180deg, #fff6d8 0%, #f6d56a 100%);
    border: 1px solid rgba(201, 153, 30, 0.24);
    box-shadow: 0 18px 40px rgba(44, 109, 216, 0.18);
    animation: mascot-float 2.9s ease-in-out infinite;
}

.floating-lupi-face {
    position: absolute;
    top: 14px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: white;
    border: 3px solid #2f86d9;
}

.floating-lupi-face span,
.floating-lupi-face i {
    position: absolute;
}

.floating-lupi-face span {
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1f3552;
}

.floating-lupi-face span:first-child {
    left: 14px;
}

.floating-lupi-face span:last-child {
    right: 14px;
}

.floating-lupi-face i {
    left: 50%;
    bottom: 11px;
    width: 18px;
    height: 10px;
    border-bottom: 3px solid #1f3552;
    border-radius: 0 0 20px 20px;
    transform: translateX(-50%);
}

.floating-lupi-hand {
    position: absolute;
    right: 10px;
    bottom: 18px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 3px solid #2f86d9;
}

.floating-lupi:hover .floating-lupi-body {
    transform: translateY(-6px) rotate(-4deg);
}

.floating-lupi:hover .floating-lupi-hand {
    transform: translateY(-4px) rotate(-18deg);
}

.floating-lupi:focus-visible {
    outline: none;
}

.floating-lupi:focus-visible .floating-lupi-body,
.floating-lupi:focus-visible .floating-lupi-bubble {
    outline: 3px solid rgba(24, 183, 176, 0.28);
    outline-offset: 4px;
}

.lupi-tip-card {
    margin: 1rem 0 0.4rem;
    padding: 0.95rem 1.05rem;
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fffaf0 0%, #fff3c9 100%);
    border: 1px solid rgba(222, 184, 87, 0.34);
    box-shadow: 0 12px 24px rgba(44, 109, 216, 0.06);
}

.lupi-tip-tag {
    display: inline-flex;
    margin-bottom: 0.35rem;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #916900;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.presentation-hero,
.team-hero {
    display: grid;
    grid-template-columns: 1.2fr 220px;
    gap: 1rem;
    align-items: center;
}

.presentation-mascot {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 180px;
}

.presentation-mascot-face {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: white;
    border: 4px solid #2f86d9;
}

.presentation-mascot-face span,
.presentation-mascot-face i {
    position: absolute;
}

.presentation-mascot-face span {
    top: 28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1f3552;
}

.presentation-mascot-face span:first-child {
    left: 24px;
}

.presentation-mascot-face span:last-child {
    right: 24px;
}

.presentation-mascot-face i {
    left: 50%;
    bottom: 18px;
    width: 24px;
    height: 10px;
    border-bottom: 4px solid #1f3552;
    border-radius: 0 0 20px 20px;
    transform: translateX(-50%);
}

.presentation-mascot-book {
    position: absolute;
    bottom: 10px;
    width: 120px;
    height: 92px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff6d8 0%, #f6d56a 100%);
    border: 4px solid #e1b84e;
    box-shadow: 0 16px 28px rgba(24, 183, 176, 0.12);
}

.presentation-mascot-book::before,
.presentation-mascot-book::after {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 999px;
    background: rgba(125, 88, 0, 0.18);
}

.presentation-mascot-book::before {
    left: 38px;
}

.presentation-mascot-book::after {
    right: 38px;
}

.presentation-section,
.team-section {
    margin-top: 1rem;
}

.presentation-steps-grid {
    margin-top: 1rem;
}

.presentation-step-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbfa 100%);
}

.presentation-info-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.presentation-info-card,
.team-card,
.team-contact-card {
    padding: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
}

.presentation-info-card {
    position: relative;
    overflow: hidden;
}

.presentation-info-card::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -18px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    opacity: 0.42;
}

.presentation-info-card strong,
.team-card strong {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-family: "Fredoka", "Inter", Arial, sans-serif;
    font-size: 1rem;
}

.presentation-info-card-sun {
    background: linear-gradient(180deg, #f2fcfb 0%, #dcf5f2 100%);
}

.presentation-info-card-sun::after {
    background: #18b7b0;
}

.presentation-info-card-sky {
    background: linear-gradient(180deg, #f3fbfa 0%, #d0f1ed 100%);
}

.presentation-info-card-sky::after {
    background: #b8ece6;
}

.presentation-info-card-leaf {
    background: linear-gradient(180deg, #eef9df 0%, #daf0be 100%);
}

.presentation-info-card-leaf::after {
    background: #cfeeaf;
}

.presentation-info-card-peach {
    background: linear-gradient(180deg, #fff3ec 0%, #ffdccc 100%);
}

.presentation-info-card-peach::after {
    background: #ffb58d;
}

.presentation-why-card p + p {
    margin-top: 0.6rem;
}

.presentation-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.team-hero {
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.team-stars {
    position: relative;
    min-height: 120px;
}

.team-stars span {
    position: absolute;
    display: block;
    width: 28px;
    height: 28px;
    background: linear-gradient(180deg, #ffe6a8 0%, #ffd06f 100%);
    clip-path: polygon(50% 0%, 62% 35%, 100% 35%, 70% 57%, 82% 100%, 50% 74%, 18% 100%, 30% 57%, 0% 35%, 38% 35%);
}

.team-stars span:nth-child(1) {
    top: 10px;
    left: 36px;
}

.team-stars span:nth-child(2) {
    top: 44px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.team-stars span:nth-child(3) {
    bottom: 10px;
    left: 92px;
    width: 34px;
    height: 34px;
}

.team-card {
    background: linear-gradient(180deg, #ffffff 0%, #f3fbfa 100%);
}

.team-contact-card {
    margin-top: 1rem;
    background: linear-gradient(180deg, #fffaf0 0%, #fff3c9 100%);
}

.team-contact-mail {
    margin: 0.55rem 0;
    color: var(--brand-deep);
    font-size: 1.12rem;
}

.team-contact-note {
    color: var(--muted);
}

@keyframes mascot-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 900px) {
    .app-layout,
    .play-grid,
    .topics-grid,
    .detail-grid,
    .steps-strip,
    .entry-highlight,
    .hero-search-callout,
    .mini-guide-grid,
    .dictionary-search-banner,
    .empty-search-state,
    .image-gallery-grid,
    .related-word-grid,
    .spotlight-grid,
    .topics-mission-strip,
    .presentation-hero,
    .team-hero,
    .presentation-info-grid,
    .team-grid,
    .word-jump-strip {
        grid-template-columns: 1fr;
    }

    .gallery-showcase-image {
        height: 280px;
    }

    .word-hero-layout {
        grid-template-columns: 1fr;
    }

    .word-hero-art {
        max-width: 320px;
        margin: 0 auto;
    }

    .header-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1180px);
        margin: 10px auto;
    }

    .site-header,
    .hero-card,
    .section-card,
    .entry-card,
    .topic-section,
    .sidebar-nav {
        padding: 1.1rem;
    }

    .search-box form,
    .topic-header,
    .word-list li a,
    .global-search-form,
    .topic-word-list li a,
    .search-field-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-mascot {
        width: 78px;
        height: 78px;
    }

    .header-topbar {
        align-items: flex-start;
    }

    .brand-lockup {
        flex-direction: column;
        align-items: flex-start;
    }

    .brand-logo-link {
        max-width: min(320px, 100%);
        padding: 0.45rem 0.8rem 0.55rem;
    }

    .brand-logo {
        max-height: 78px;
    }

    .brand-copy {
        max-width: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    .step-pill {
        border-radius: var(--radius-sm);
    }

    .entry-placeholder {
        width: 140px;
        height: 140px;
        font-size: 3rem;
    }

    .floating-lupi-widget {
        right: 14px;
        bottom: 14px;
    }

    .floating-lupi-restore {
        right: 14px;
        bottom: 18px;
        padding: 0.6rem 0.85rem;
        font-size: 0.8rem;
    }

    .floating-lupi-bubble {
        max-width: 132px;
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }

    .floating-lupi-body {
        width: 76px;
        height: 88px;
        border-radius: 24px;
    }

    .floating-lupi-face {
        top: 12px;
        width: 46px;
        height: 46px;
    }

    .floating-lupi-close {
        top: -4px;
        right: 2px;
    }
}
