/* ===============================================
   PORTAL ROOM - DUNGEONCORE AESTHETIC
   Dark fantasy retro with purple, amber, stone
   =============================================== */

:root {
    --bg: #000000;
    --bg-2: #111111;
    --panel: #000000;
    --panel-border: #333333;
    --edge: #666666;
    --accent: #ffff00;
    --accent-2: #aaaa00;
    --accent-dim: #666600;
    --purple: #00ff00;
    --purple-dim: #006600;
    --text: #00ff00;
    --text-bright: #ffffff;
    --muted: #666666;
    --link: #ffff00;
    --link-hover: #ffffff;
    --error: #ff0000;
    --warning: #ffff00;
    --info: #00ffff;
}

[data-theme="light"] {
    --bg: #f5f0f8;
    --bg-2: #e8dff0;
    --panel: #ffffff;
    --panel-border: #d0c0d8;
    --edge: #b8a8c8;
    --accent: #8b5fbf;
    --accent-2: #6d4799;
    --accent-dim: #b088d8;
    --purple: #8b5fbf;
    --purple-dim: #b088d8;
    --text: #2a1f35;
    --text-bright: #1a0f25;
    --muted: #7a6f85;
    --link: #8b5fbf;
    --link-hover: #6d4799;
    --error: #cc3344;
    --warning: #d4af37;
    --info: #4477cc;
}

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

body {
    font-family: 'Courier New', 'Courier', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    font-size: 14px;
    position: relative;
}





a {
    color: var(--link);
    text-decoration: underline;
}

a:hover {
    background: var(--link);
    color: var(--bg);
    text-decoration: none;
}

a:visited {
    color: var(--purple-dim);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Courier New', 'Courier', monospace;
    font-weight: bold;
    color: var(--text-bright);
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--edge);
    color: var(--accent);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--purple);
}

/* Header */
header {
    background: var(--panel);
    border-bottom: 4px solid var(--edge);
    padding: 0.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

header pre {
    color: var(--accent);
    font-size: 0.5rem;
    line-height: 0.9;
    margin: 0 auto 0.5rem;
    text-align: center;
    overflow: hidden;
}

/* Navigation */
nav {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    background: var(--bg);
    border: inset 2px var(--edge);
    padding: 0.25rem;
}

nav a {
    color: var(--link);
    padding: 0.4rem 0.8rem;
    background: transparent;
    border: none;
    text-decoration: none;
    font-size: 0.9rem;
}

nav a:hover {
    background: var(--bg-2);
}

nav a.active {
    background: var(--accent);
    color: var(--bg);
    font-weight: bold;
}

/* Marquee Ticker */
.ticker-container {
    background: var(--bg-2);
    border: 1px solid var(--edge);
    margin-top: 0.5rem;
    padding: 0.4rem 0;
    overflow: hidden;
    position: relative;
}

.ticker-label {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--panel);
    border-right: 2px solid var(--purple);
    padding: 0.4rem 0.6rem;
    color: var(--accent);
    font-weight: bold;
    z-index: 1;
}

.ticker {
    display: flex;
    gap: 2rem;
    padding-left: 100px;
    animation: slide 30s linear infinite;
}

.ticker-item {
    white-space: nowrap;
    color: var(--text);
}

.ticker-item a {
    color: var(--link);
    text-decoration: none;
}

.ticker-item a:hover {
    background: var(--link);
    color: var(--bg);
    text-decoration: none;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}



/* Layout Container */
.layout-container {
    max-width: 1200px;
    margin: 120px auto 1rem;
    padding: 0 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-left: 260px;
}

/* Sidebar */
.sidebar {
    width: 240px;
    position: fixed;
    left: 0;
    top: 120px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--bg);
    border: 2px solid var(--panel-border);
    padding: 0.5rem;
}

.sidebar::-webkit-scrollbar {
    width: 10px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg);
    border: 1px solid var(--edge);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--purple-dim);
    border: 1px solid var(--edge);
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* Widget */
.widget {
    background: var(--bg-2);
    border: 2px solid var(--panel-border);
    margin-bottom: 1rem;
}



.widget-header {
    background: var(--bg-2);
    border-bottom: 1px solid var(--edge);
    padding: 0.6rem 0.8rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.widget-content {
    padding: 0.8rem;
    max-height: 320px;
    overflow-y: auto;
}

.widget-content::-webkit-scrollbar {
    width: 8px;
}

.widget-content::-webkit-scrollbar-track {
    background: var(--bg);
}

.widget-content::-webkit-scrollbar-thumb {
    background: var(--edge);
    border: 1px solid var(--purple-dim);
}

.widget-content::-webkit-scrollbar-thumb:hover {
    background: var(--purple-dim);
}

.widget-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--edge);
    font-size: 0.85rem;
}

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



.widget-item a {
    color: var(--link);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-item a:hover {
    color: var(--link-hover);
}

.widget-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--edge);
}

.widget-stat:last-child {
    border-bottom: none;
}

.widget-stat-label {
    color: var(--muted);
    font-size: 0.8rem;
}

.widget-stat-value {
    color: var(--accent);
    font-weight: bold;
}

.tag-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-widget-item {
    background: var(--bg-2);
    border: 1px solid var(--purple-dim);
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    display: inline-block;
}

.tag-widget-item:hover {
    background: var(--purple-dim);
    color: var(--text-bright);
    box-shadow: 0 0 8px rgba(139, 95, 191, 0.4);
}

/* Main Content Area */
main {
    flex: 1;
    min-height: 400px;
    padding: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--edge);
}

.page-shell {
    width: 100%;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text);
}

.section-bar .eyebrow {
    color: var(--accent);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-bar .hint {
    color: var(--muted);
}

/* Panel Blocks */
.panel-block,
.dungeon-welcome,
.auth-form,
.submit-form,
.list-form,
.profile-content,
.profile-hero {
    background: #0f0f0f;
    border: 4px solid var(--edge);
    padding: 1.8rem;
    margin-bottom: 1.2rem;
}

.dungeon-description,
.dungeon-subtitle {
    color: var(--muted);
    background: var(--bg-2);
    border-left: 3px solid var(--accent);
    padding: 0.8rem;
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
}

.dungeon-link {
    text-align: center;
    color: var(--muted);
    margin-top: 1rem;
}

/* Buttons */
.btn-primary,
.btn-ghost {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    border: 2px outset var(--edge);
    background: var(--panel);
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-ghost:hover {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:active,
.btn-ghost:active {
    border-style: inset;
}

.cta-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}

/* Forms */
label {
    display: block;
    color: var(--text);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    font-weight: bold;
}

.auth-form input,
.submit-form input,
.submit-form textarea,
.submit-form select,
.list-form input,
.list-form textarea,
.search-filter input,
.search-filter select,
.add-to-list select,
.comment-form input,
.data-management input {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 0.9rem;
    border: 2px solid var(--edge);
    background: var(--bg);
    color: var(--text);
    font-size: 0.9rem;
    font-family: 'Courier New', monospace;
}

.auth-form input::placeholder,
.submit-form input::placeholder,
.submit-form textarea::placeholder,
.list-form input::placeholder,
.list-form textarea::placeholder,
.search-filter input::placeholder,
.data-management input::placeholder {
    color: var(--muted);
}

.auth-form input:focus,
.submit-form input:focus,
.submit-form textarea:focus,
.submit-form select:focus,
.list-form input:focus,
.list-form textarea:focus,
.search-filter input:focus,
.search-filter select:focus,
.comment-form input:focus,
.data-management input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
}

.auth-form textarea,
.submit-form textarea,
.list-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: 'Courier New', monospace;
}

.auth-form button,
.submit-form button,
.list-form button {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.auth-form button:hover,
.submit-form button:hover,
.list-form button:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
}



/* Fix for URL input height */
#link-url {
    height: 2.5rem;
}

/* Search & Filter */
.search-filter {
    background: var(--panel);
    border: 2px solid var(--edge);
    padding: 1rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.search-filter h3 {
    flex-basis: 100%;
}

.panel-block h3 {
    background: var(--accent);
    color: var(--bg);
    padding: 0.5rem 0.8rem;
    margin: -1.8rem -1.8rem 1rem -1.8rem;
    border-bottom: 2px solid var(--edge);
    text-transform: uppercase;
    font-size: 1.2rem;
}

.panel-block h3:before {
    content: '==== ';
}

.search-filter input,
.search-filter select {
    flex: 1;
    min-width: 200px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.stat-card {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 1rem;
    text-align: center;
}

.stat-card:hover {
    border-color: var(--purple);
}

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

.stat-label {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Link Items */
.link-item,
.list-item {
    background: var(--panel);
    border: 2px solid var(--edge);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.link-item:hover,
.list-item:hover {
    border-color: var(--purple);
}

.link-header,
.list-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.link-item h3 a,
.list-item h3 a {
    color: var(--link);
    font-size: 1.1rem;
}

.link-item p,
.list-item p {
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.link-item small {
    color: var(--muted);
    font-size: 0.8rem;
}

.link-thumbnail {
    max-width: 180px;
    height: auto;
    margin: 0.5rem 0;
    border: 2px solid var(--edge);
    display: block;
}

/* Tags */
.tags {
    display: flex;
    gap: 0.4rem;
    margin: 0.6rem 0;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg-2);
    color: var(--accent);
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--purple-dim);
    font-size: 0.8rem;
    text-transform: lowercase;
}

.tag:hover {
    background: var(--purple-dim);
    color: var(--text-bright);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag-link {
    background: var(--panel);
    border: 2px solid var(--edge);
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: var(--link);
    font-size: 0.9rem;
}

.tag-link:hover {
    background: var(--purple-dim);
    color: var(--text-bright);
    border-color: var(--purple);
}

/* Action Buttons */
.link-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.btn-edit,
.btn-delete,
.btn-remove-link,
.btn-delete-comment {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--edge);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: var(--panel);
    color: var(--text);
}

.btn-edit {
    color: var(--info);
    border-color: var(--info);
}

.btn-edit:hover {
    background: var(--info);
    color: var(--bg);
}

.btn-delete,
.btn-remove-link,
.btn-delete-comment {
    color: var(--error);
    border-color: var(--error);
}

.btn-delete:hover,
.btn-remove-link:hover,
.btn-delete-comment:hover {
    background: var(--error);
    color: var(--bg);
}

/* Add to List */
.add-to-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.8rem;
    background: var(--bg-2);
    border: 2px solid var(--edge);
    margin: 0.8rem 0;
}

.add-to-list button {
    padding: 0.5rem 1rem;
    background: var(--accent);
    color: var(--bg);
    border: 2px solid var(--accent);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 0.85rem;
}

.add-to-list button:hover {
    background: var(--accent-2);
}

/* Lists */
.list-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-2);
    padding: 0.6rem;
    border: 1px solid var(--edge);
}

.list-link-item:hover {
    border-color: var(--purple);
}

.list-link {
    color: var(--link);
    text-decoration: none;
}

/* Comments */
.comments {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--edge);
}

.comments h4 {
    color: var(--text-bright);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.comment {
    background: var(--bg-2);
    padding: 0.7rem;
    margin-bottom: 0.6rem;
    border-left: 3px solid var(--purple-dim);
}

.comment:hover {
    border-left-color: var(--purple);
}

.comment strong {
    color: var(--accent);
}

.comment-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.comment-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.comment-form button {
    padding: 0.6rem 1rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    white-space: nowrap;
}

.comment-form button:hover {
    background: var(--accent-2);
}

/* Voting */
.voting {
    display: flex;
    gap: 0.4rem;
    margin: 0.8rem 0;
}

.vote-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--edge);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.vote-btn:hover {
    background: var(--bg-2);
}

.vote-btn.up {
    color: var(--accent);
}

.vote-btn.up:hover {
    border-color: var(--accent);
}

.vote-btn.down {
    color: var(--error);
}

.vote-btn.down:hover {
    border-color: var(--error);
}

.favorite-btn {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--edge);
    background: var(--panel);
    color: var(--warning);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.favorite-btn:hover {
    background: var(--bg-2);
    border-color: var(--warning);
}

/* Notifications */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    padding: 0.8rem 1.2rem;
    border: 2px solid;
    z-index: 1000;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    max-width: 320px;
}

.notification-success {
    background: var(--bg);
    color: var(--accent);
    border-color: var(--accent);
}

.notification-error {
    background: var(--bg);
    color: var(--error);
    border-color: var(--error);
}

.notification-info {
    background: var(--bg);
    color: var(--info);
    border-color: var(--info);
}



/* Empty State */
.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 2rem;
    border: 2px dashed var(--edge);
    background: var(--bg-2);
}

.empty-state a {
    color: var(--link);
    font-weight: bold;
}

/* Profile */
.profile-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    background: var(--bg-2);
    position: relative;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: var(--purple-dim);
    pointer-events: none;
}

.profile-identity {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border: 3px solid var(--accent);
    background: var(--purple);
    display: grid;
    place-items: center;
    color: var(--text-bright);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.profile-tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

.eyebrow.small {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
}

.profile-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    position: relative;
    z-index: 1;
}

.profile-metric {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 0.8rem;
    text-align: center;
}

.profile-metric:hover {
    border-color: var(--purple);
}

.profile-metric .label {
    color: var(--muted);
    font-size: 0.75rem;
}

.profile-metric .value {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--accent);
}

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

.profile-column {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.profile-column::-webkit-scrollbar {
    width: 10px;
}

.profile-column::-webkit-scrollbar-track {
    background: var(--bg);
    border: 1px solid var(--edge);
}

.profile-column::-webkit-scrollbar-thumb {
    background: var(--purple-dim);
    border: 1px solid var(--edge);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--edge);
}

.btn-ghost.compact,
.btn-edit.compact {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
}

/* Data Management */
.data-management {
    background: var(--bg-2);
    padding: 1rem;
    border: 2px solid var(--edge);
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.data-management h3,
.data-management h4 {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
}

.data-management button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.data-management button:hover {
    background: var(--accent-2);
}

.data-management .btn-export,
.data-management .btn-import {
    background: var(--accent);
    color: var(--bg);
}

.data-management input {
    flex: 1;
    min-width: 200px;
}

.followed-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: var(--panel);
    border: 1px solid var(--edge);
    margin-bottom: 0.4rem;
    transition: all 0.15s ease;
}

.followed-user:hover {
    border-color: var(--purple);
}

.followed-user button {
    padding: 0.3rem 0.6rem;
    border: 2px solid var(--edge);
    background: var(--bg);
    color: var(--error);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.follow-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.follow-form input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--edge);
    background: var(--bg);
    color: var(--text);
    font-family: 'Courier New', monospace;
}

.follow-form button {
    padding: 0.5rem 1rem;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.2s ease;
}

.follow-form button:hover {
    background: var(--accent-2);
}

/* Dashboard Content */
.dashboard-content {
    display: grid;
    gap: 1rem;
}

/* Profile Customization */
.profile-customization {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.profile-bg-preview {
    width: 100%;
    height: 100px;
    border: 2px solid var(--edge);
    background-size: cover;
    background-position: center;
    margin: 0.5rem 0;
    position: relative;
}

.profile-bg-options {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.profile-bg-options button {
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--edge);
    background: var(--accent);
    color: var(--bg);
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: bold;
}

.css-editor {
    width: 100%;
    min-height: 200px;
    background: var(--bg);
    border: 2px solid var(--edge);
    color: var(--text);
    font-family: 'Courier New', monospace;
    padding: 0.8rem;
    margin: 0.5rem 0;
}

.profile-about {
    background: var(--bg-2);
    border: 2px solid var(--edge);
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 1400px) {
    .sidebar {
        width: 240px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem;
    }

    h1 {
        font-size: 1.4rem;
    }

    nav a {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .layout-container {
        padding: 0 0.8rem;
    }

    .panel-block,
    .dungeon-welcome,
    .auth-form,
    .submit-form,
    .list-form,
    .profile-content,
    .profile-hero {
        padding: 1rem;
    }

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

    .link-header,
    .list-header,
    .comment-form,
    .add-to-list {
        flex-direction: column;
        align-items: stretch;
    }

    .comment-form input,
    .comment-form button,
    .add-to-list select,
    .add-to-list button,
    .data-management button {
        width: 100%;
    }

    .notification {
        left: 0.5rem;
        right: 0.5rem;
        top: 0.5rem;
    }
    
    .ticker {
        padding-left: 80px;
    }
    
    .ticker-label {
        padding: 0.4rem;
    }
}

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

button:focus,
input:focus,
textarea:focus,
select:focus,
a:focus {
    outline: 4px solid var(--accent);
    outline-offset: 2px;
    border-color: var(--accent);
    background: var(--bg-2);
    color: var(--text);
}

/* Loading State */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Status Log */
.status-log {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    color: var(--text);
    border-top: 2px solid var(--edge);
    padding: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    max-height: 100px;
    overflow-y: auto;
    z-index: 90;
}

/* Subtle animations */

