/* PRESERVED STYLING - NO BORDER RADIUS */
* { border-radius: 0 !important; box-sizing: border-box; }
:root { --accent: #44749d; --bg: #1a1a1a; --panel: #262626; --text: #dcdcdc; }

body { 
    background: var(--bg) repeating-linear-gradient(45deg, #1e1e1e 25%, transparent 25%, transparent 75%, #1e1e1e 75%, #1e1e1e); 
    background-size: 20px 20px; 
    font-family: 'Noto Sans JP', sans-serif; 
    color: var(--text); 
    margin: 0; font-size: 13px; line-height: 1.5; 
    overflow-x: hidden;
}
a { text-decoration: none; transition: 0.2s; color: inherit; } a:hover { color: #fff; }

.header { background: #222; border-bottom: 4px solid var(--accent); padding: 20px 0; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.header-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-family: 'Roboto Condensed'; font-size: 32px; color: #fff; text-transform: uppercase; letter-spacing: 1px; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* NAVIGATION */
.nav { display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { margin: 5px 15px; font-weight: bold; font-size: 13px; color: #aaa; text-transform: uppercase; border-bottom: 2px solid transparent; padding-bottom: 5px; }
.nav a:hover, .nav a.active { color: #fff; border-bottom: 2px solid var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px 50px; width: 100%; }
.top-flex { display: flex; gap: 25px; margin-bottom: 25px; width: 100%; }
.main-col { flex: 3; min-width: 0; }
.sidebar-lane { flex: 1; min-width: 280px; }
.bot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

/* PANELS */
.panel { background: var(--panel); border: 1px solid #111; box-shadow: 0 4px 10px rgba(0,0,0,0.5); margin-bottom: 25px; overflow: hidden; }
.p-head { background: linear-gradient(to bottom, var(--accent) 0%, #2c5375 100%); padding: 12px 15px; color: #fff; font-family: 'Roboto Condensed'; font-weight: bold; text-transform: uppercase; border-bottom: 1px solid rgba(0,0,0,0.2); font-size: 14px; position: relative; }
.p-head:after { content: ''; position: absolute; top:0; left:0; right:0; height: 50%; background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(255,255,255,0)); pointer-events: none; }
.p-body { padding: 0; }

.node { display: flex; padding: 15px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.02); }
.node:hover { background: rgba(255,255,255,0.03); }
.node i { font-size: 24px; width: 50px; text-align: center; color: #555; }
.n-info { flex: 1; }
.n-title { display: block; color: #eee; font-weight: bold; font-size: 15px; margin-bottom: 3px; }
.n-desc { font-size: 12px; color: #777; }
.n-stat { font-size: 11px; color: #555; text-align: right; min-width: 100px; }
.empty-node { padding: 20px; text-align: center; color: #666; font-style: italic; }

.join-box { text-align: center; padding: 20px; background: #222; }
.btn-play { background: rgba(255,255,255,0.05); border: 1px solid #444; color: #ccc; padding: 12px; width: 100%; display: block; font-weight: bold; font-family: 'Roboto Condensed'; text-transform: uppercase; cursor: pointer; transition: .2s; }
.btn-play:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* STAFF */
.staff-card { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-bottom: 1px solid #333; background: #1e1e1e; }
.staff-left { display: flex; align-items: center; gap: 12px; }
.staff-card img { width: 36px; height: 36px; box-shadow: 0 2px 5px #000; image-rendering: pixelated; }
.staff-text { display: flex; flex-direction: column; }
.staff-name { font-weight: bold; font-size: 13px; color: #fff; }
.staff-role { font-size: 10px; color: #666; text-transform: uppercase; font-weight: bold; }
.status-badge { padding: 4px 10px; font-size: 9px; font-weight: bold; color: white; text-transform: uppercase; }
.ingame { background: #5cb85c; } .discord { background: #5865F2; } .web { background: #44749d; }
.last-seen { font-size: 10px; color: #666; font-style: italic; }
.empty-state { padding: 20px; text-align: center; color: #555; font-style: italic; font-size: 12px; }

.player-row { padding: 8px 15px; border-bottom: 1px solid #333; color: #888; display: flex; align-items: center; gap: 10px; }
.player-row img { width: 16px; height: 16px; image-rendering: pixelated; }
.more-players { padding: 10px; font-size: 11px; color: #666; text-align: center; font-style: italic; }

.review-box { text-align: center; padding: 20px; }
.stars { color: #ffaa00; margin-bottom: 10px; letter-spacing: 2px; }
.loader { height: 40px; background: #222; margin: 15px; animation: p 1s infinite alternate; }
@keyframes p { 0% { opacity: .3; } 100% { opacity: .7; } }

/* NORMAL SCREEN RESPONSIVENESS */
@media(max-width:900px){ 
    .header-in { flex-direction: column; gap: 15px; text-align: center; } 
    .nav { width: 100%; justify-content: center; }
    .nav a { margin: 5px 10px; font-size: 12px; }
    
    .top-flex { flex-direction: column; } 
    .sidebar-lane { width: 100%; min-width: 0; } 
    .bot-grid { grid-template-columns: 1fr; } 
    
    .node { flex-direction: column; text-align: center; gap: 10px; }
    .node i { width: 100%; }
    .n-stat { text-align: center; width: 100%; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
    
    .staff-card { flex-wrap: wrap; justify-content: center; gap: 10px; text-align: center; }
    .staff-left { width: 100%; justify-content: center; }
}

@media(max-width:600px) {
    .logo { font-size: 24px; }
    .nav a { margin: 5px 8px; font-size: 11px; }
    .container { padding: 0 10px 30px; }
}

/* Extra rules for rules.php */
.rule-grid { display: flex; flex-wrap: wrap; }
.rule-definition { flex: 2; min-width: 300px; padding: 25px; border-right: 1px solid #333; }
.rule-protocol { flex: 1; min-width: 250px; padding: 25px; background: rgba(0,0,0,0.2); }
@media(max-width:750px) {
    .rule-definition { border-right: none; border-bottom: 1px solid #333; width: 100%; }
    .rule-protocol { width: 100%; }
}
.label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #666; display: block; margin-bottom: 5px; }
.desc-text { font-size: 13px; color: #ccc; line-height: 1.6; }
.sub-rule { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05); }
