body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background: radial-gradient(circle at top, #262535 0%, #09090f 55%, #050508 100%);
    color: #f4f4f8;
}

.page-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

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

.page-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
}

.eyebrow {
    margin: 0 0 8px;
    color: #7c7ce0;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.discord-link {
    display: flex;
    align-items: center;
}

.discord-img {
    height: 48px;
    width: auto;
    transition: transform 150ms ease, opacity 150ms ease;
}

.discord-img:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.builder-link {
    font-size: 0.9rem;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.builder-link:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.32);
}

.lang-btn {
    font-size: 1.1rem;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    transition: transform 150ms ease, background 150ms ease;
}

.lang-btn.active {
    background: rgba(124,124,224,0.96);
    border-color: rgba(124,124,224,0.96);
}

.lang-btn:hover {
    transform: translateY(-1px);
}

.panel {
    background: rgba(30, 30, 54, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    padding: 22px;
    border-radius: 22px;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.panel .subtitle {
    margin: 0 0 16px;
    color: #b8b8d2;
    font-size: 0.95rem;
}

.top-section {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 18px;
    margin-bottom: 20px;
    align-items: start;
}

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

.discord-widget-panel {
    padding: 0;
    overflow: hidden;
}

.discord-widget-panel iframe {
    display: block;
    width: 100%;
    height: 460px;
    border-radius: 20px;
    border: none;
}

.scoreboard {
    display: grid;
    gap: 10px;
}

.scoreboard div {
    background: rgba(255,255,255,0.04);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
}

#board {
    margin-bottom: 20px;
}

#rules, #tasks {
    margin-bottom: 20px;
}

.team-hero {
    text-align: center;
    margin-bottom: 16px;
    padding: 22px 24px 18px;
    background: rgba(124,124,224,0.07);
    border: 1px solid rgba(124,124,224,0.18);
    border-radius: 20px;
}

.team-hero-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #7c7ce0;
    font-weight: 600;
    margin-bottom: 6px;
}

.team-hero-title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #eef2ff;
    letter-spacing: -0.01em;
    line-height: 1.1;
    background: linear-gradient(135deg, #c4c4f4 0%, #ffffff 60%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-time-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 20px;
    background: rgba(124,124,224,0.08);
    border: 1px solid rgba(124,124,224,0.2);
    border-radius: 14px;
}

.game-time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #b8b8d2;
    font-weight: 500;
}

.game-time-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eef2ff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.game-time-gmt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7c7ce0;
    font-weight: 600;
}

.game-time-bar.happy-hour {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.4);
}

.game-time-bar.happy-hour .game-time-gmt {
    color: #4ade80;
}

.game-time-happy-badge {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #052e16;
    background: #4ade80;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 4px;
}

.rules-section,
.tasks-section {
    background: rgba(22, 24, 47, 0.96);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.2);
}

.rules-section h2,
.tasks-section h2 {
    margin-top: 0;
    font-size: 1.4rem;
}

.rules-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.rules-timeline {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rules-timeline h3 {
    margin: 0 0 14px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(124,124,224,0.1);
    border: 1px solid rgba(124,124,224,0.25);
    border-radius: 14px;
    padding: 12px 14px;
}

.timeline-item--end {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
}

.timeline-label {
    font-size: 0.8rem;
    color: #b8b8d2;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: #eef2ff;
}

.how-to-claim {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 10px;
}

.how-to-claim li {
    color: #e7e7ff;
    font-size: 0.95rem;
    line-height: 1.5;
    padding-left: 4px;
}

.points-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
}

.points-table th,
.points-table td {
    border: 1px solid rgba(255,255,255,0.08);
    padding: 10px 12px;
    text-align: left;
}

.points-table th {
    color: #d8d8ff;
}

.points-table td {
    color: #e7e7ff;
}

.rules-section ul,
.rules-drawer-body ul {
    margin: 0;
}

.rules-section li,
.rules-drawer-body li {
    margin-bottom: 10px;
}

/* More rules trigger — sits at the bottom of the rules section */
.rules-more-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(124,124,224,0.08);
    border: 1px solid rgba(124,124,224,0.2);
    cursor: pointer;
    user-select: none;
    transition: background 180ms ease, transform 180ms ease;
    font-size: 0.95rem;
    font-weight: 600;
    color: #c4c4f4;
}

.rules-more-trigger:hover {
    background: rgba(124,124,224,0.16);
    transform: translateY(-1px);
}

.rules-trigger-arrow {
    font-size: 1.1rem;
    color: #7c7ce0;
    transition: transform 200ms ease;
}

.rules-more-trigger:hover .rules-trigger-arrow {
    transform: translateX(5px);
}

/* Placeholder text inside the drawer when no extra content yet */
.rules-extra-placeholder {
    color: #b8b8d2;
    font-style: italic;
    margin: 0;
}

/* Extra rules list inside the drawer */
.rules-drawer-body h3 {
    margin: 24px 0 12px;
    font-size: 1.1rem;
    color: #d8d8ff;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.rules-drawer-body h3:first-child {
    margin-top: 0;
}

.extra-rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.extra-rules-list li {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.93rem;
    line-height: 1.55;
    color: #e7e7ff;
    margin-bottom: 0;
}

.extra-rules-list li strong {
    color: #c4c4f4;
}

/* Rules drawer */
.rules-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 500;
    transition: background 300ms ease;
}

.rules-drawer-backdrop.open {
    background: rgba(0, 0, 0, 0.72);
}

.rules-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(700px, 100vw);
    background: #0e1027;
    border-left: 1px solid rgba(255,255,255,0.09);
    z-index: 501;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -24px 0 80px rgba(0,0,0,0.55);
}

.rules-drawer-panel.open {
    transform: translateX(0);
}

.rules-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.rules-drawer-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.rules-drawer-close {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    padding: 8px 12px !important;
    min-width: 0 !important;
    font-size: 1rem;
    line-height: 1;
}

.rules-drawer-close:hover {
    background: rgba(255,255,255,0.14) !important;
}

.rules-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px;
    scrollbar-color: rgba(124,124,224,0.4) transparent;
}

.rules-drawer-body::-webkit-scrollbar {
    width: 6px;
}

.rules-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(124,124,224,0.4);
    border-radius: 3px;
}

.tier-group {
    margin-bottom: 16px;
}

.tier-group h3 {
    margin: 0 0 8px;
}

.tier-group ul {
    margin: 0;
    padding-left: 18px;
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tier-card {
    background: rgba(30, 30, 54, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.25);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tier-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.task-count {
    font-size: 0.85rem;
    color: #b8b8d2;
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 12px;
}

.task-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.task-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: #e7e7ff;
    font-size: 0.9rem;
    line-height: 1.4;
}

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

.task-item:before {
    content: "•";
    color: #7c7ce0;
    font-weight: bold;
    margin-right: 8px;
}

.admin-task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 4px;
    border-radius: 8px;
    transition: background 150ms;
}

.admin-task-item:before {
    display: none;
}

.admin-task-item:hover {
    background: rgba(255,255,255,0.05);
}

.task-name-text {
    flex: 1;
    cursor: pointer;
    font-size: 0.9rem;
    color: #e7e7ff;
    padding: 2px 4px;
    border-radius: 4px;
}

.task-name-text:hover {
    background: rgba(255,255,255,0.06);
}

.task-edit-input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(124,124,224,0.5);
    border-radius: 6px;
    padding: 4px 8px;
    color: #f4f4f8;
    font-size: 0.9rem;
    font-family: inherit;
}

.task-edit-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.task-action-btn,
.task-edit-actions button {
    min-width: 0 !important;
    padding: 4px 8px !important;
    font-size: 0.82rem;
}

.add-task-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.add-task-form input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 10px;
    color: #f4f4f8;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 0;
}

.add-task-form input:focus {
    outline: none;
    border-color: rgba(124,124,224,0.5);
}

.add-task-form button {
    min-width: 0 !important;
    padding: 8px 14px;
    flex-shrink: 0;
}

/* Tier specific colors */
.easy-tier {
    border-left: 4px solid #4ade80;
}

.easy-tier .tier-header h3 {
    color: #4ade80;
}

.medium-tier {
    border-left: 4px solid #fbbf24;
}

.medium-tier .tier-header h3 {
    color: #fbbf24;
}

.hard-tier {
    border-left: 4px solid #f97316;
}

.hard-tier .tier-header h3 {
    color: #f97316;
}

.elite-tier {
    border-left: 4px solid #a855f7;
}

.elite-tier .tier-header h3 {
    color: #a855f7;
}

.master-tier {
    border-left: 4px solid #ef4444;
}

.master-tier .tier-header h3 {
    color: #ef4444;
}

.default-tier {
    border-left: 4px solid #7c7ce0;
}

.default-tier .tier-header h3 {
    color: #7c7ce0;
}

.team-players-panel {
    margin-bottom: 20px;
}

.team-players-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.player-item {
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    color: #e7e7ff;
    font-weight: 500;
}

.no-players {
    color: #b8b8d2;
    font-style: italic;
    margin: 0;
    padding: 10px 0;
}

.edit-players-btn {
    width: auto;
    min-width: 0;
}

.team-rosters-panel {
    margin-bottom: 20px;
}

.team-rosters-panel h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.team-rosters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.team-roster-card {
    background: rgba(30, 30, 54, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.team-roster-card h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #eef2ff;
    border-bottom: 2px solid rgba(124,124,224,0.6);
    padding-bottom: 8px;
}

.roster-players {
    display: grid;
    gap: 8px;
}

.roster-player-item {
    background: rgba(124,124,224,0.12);
    padding: 8px 10px;
    border-radius: 10px;
    border-left: 3px solid #7c7ce0;
    color: #e7e7ff;
    font-size: 0.95rem;
}

.player-empty {
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

.editable-team-name {
    cursor: pointer;
    transition: opacity 150ms;
}

.editable-team-name:hover {
    opacity: 0.7;
}

.team-name-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(124,124,224,0.6);
}

.team-name-edit input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(124,124,224,0.5);
    border-radius: 6px;
    padding: 4px 8px;
    color: #f4f4f8;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: inherit;
    min-width: 0;
}

.team-name-edit input:focus {
    outline: none;
    border-color: rgba(124,124,224,0.8);
}

.roster-edit-list {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.roster-edit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.roster-edit-item label {
    font-size: 0.82rem;
    color: #b8b8d2;
    width: 58px;
    flex-shrink: 0;
}

.roster-edit-item input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px 10px;
    color: #f4f4f8;
    font-size: 0.9rem;
    font-family: inherit;
    min-width: 0;
}

.roster-edit-item input:focus {
    outline: none;
    border-color: rgba(124,124,224,0.5);
}

.roster-save-btn {
    width: 100%;
    min-width: 0 !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: rgba(30, 30, 54, 0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.3rem;
}

.modal-field {
    margin-bottom: 14px;
}

.modal-field label {
    display: block;
    margin-bottom: 6px;
    color: #d8d8ff;
    font-size: 0.9rem;
    font-weight: 500;
}

.modal-field input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #f4f4f8;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.modal-field input::placeholder {
    color: rgba(255,255,255,0.5);
}

.modal-field input:focus {
    outline: none;
    border-color: rgba(124,124,224,0.6);
    background: rgba(255,255,255,0.08);
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.modal-actions button {
    min-width: 100px;
}

/* =========================
   TEAM UI
========================= */

.header-actions button,
#teams button {
    margin: 0;
}

.team-label {
    font-weight: 600;
    color: #d8d8ff;
}

.board-section {
    display: grid;
    gap: 24px;
    margin-bottom: 28px;
}

.board-wrapper {
    background: rgba(25, 28, 56, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.board-wrapper h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    color: #eef2ff;
}

.admin-links {
    background: rgba(30, 30, 54, 0.94);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 16px 42px rgba(0,0,0,0.2);
    margin-top: 20px;
}

.admin-links h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.3rem;
}

.team-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.team-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-link-row .team-link {
    flex: 1;
}

.team-delete-btn {
    min-width: 0 !important;
    padding: 8px 10px;
    flex-shrink: 0;
}

.team-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: #f4f4f8;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 150ms ease, background 150ms ease;
}

.team-link:hover {
    transform: translateY(-1px);
    background: rgba(124,124,224,0.16);
}

/* =========================
   BOARD
========================= */

.board {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.tile {
    min-height: 92px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(38, 43, 77, 0.98), rgba(16, 19, 50, 0.95));
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 4px;
    border-radius: 16px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    font-size: 0.87rem;
    text-align: center;
    white-space: normal;
    align-items: center;
    justify-items: center;
    place-content: center;
}

.tile-content {
    display: grid;
    gap: 6px;
    width: 100%;
    text-align: center;
    align-items: center;
    justify-items: center;
}

.tile-tier {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    text-align: center;
}

.tile-task {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.tile-meta {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    text-align: center;
}

.tile.pending .tile-tier,
.tile.pending .tile-task {
    color: #1f1f1f;
}

.tile.pending .tile-meta {
    color: rgba(0,0,0,0.85);
    font-weight: 600;
}

.claim-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.tile .claim-actions button {
    min-width: 0;
    padding: 7px 10px;
    font-size: 0.82rem;
}

button {
    font: inherit;
    border: none;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    background: #7c7ce0;
    color: #fff;
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

button + button {
    margin-left: 8px;
}

button.secondary {
    background: #4b5bdc;
}

button.danger {
    background: #d94e67;
}

button,
button.secondary,
button.danger {
    min-width: 145px;
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}

/* STATUS COLORS */

.tile.free {
    background: #2a2a2a;
    border: 1px solid #555;
}

.tile.pending {
    background: linear-gradient(180deg, #ffea7f 0%, #f7c045 100%);
    color: #1f1f1f;
}

.tile.verified {
    background: linear-gradient(180deg, #65d47a 0%, #2c9d5c 100%);
    color: #071b08;
    font-weight: 600;
}

.tile.taken {
    background: #c14b58;
    color: #fff;
}

.claim-time {
    margin-top: 8px;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.75);
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 6px 8px;
}

@media (max-width: 860px) {
    .page-header {
        flex-direction: column;
    }

    .top-section {
        grid-template-columns: 1fr;
    }

    .discord-widget-panel iframe {
        height: 380px;
    }

    .board {
        grid-template-columns: repeat(5, minmax(70px, 1fr));
    }
}

@media (max-width: 640px) {
    .board {
        grid-template-columns: repeat(5, minmax(55px, 1fr));
    }

    .tile {
        min-height: 76px;
        padding: 8px;
        font-size: 0.75rem;
    }
}