.ourcraft-view { color: #f4f8ff; }
body.ourcraft-open .site-header, body.ourcraft-open .grain { display: none; }
body.ourcraft-open .game-stage { padding: 0; overflow: hidden; }
body.ourcraft-open .game-stage::before { display: none; }
body.ourcraft-open .game-stage-nav { position: fixed; z-index: 70; top: max(9px, env(safe-area-inset-top)); left: max(9px, env(safe-area-inset-left)); width: auto; margin: 0; }
body.ourcraft-open .game-back { min-height: 38px; padding: 5px 12px; border-color: rgba(200,162,100,.42); color: #eaf7ff; background: rgba(52,38,28,.82); box-shadow: 0 9px 28px rgba(52,38,28,.28); backdrop-filter: blur(14px); }
body.ourcraft-open .game-stage-main { width: 100%; height: 100%; margin: 0; padding: 0; }
body.ourcraft-open .ourcraft-view, body.ourcraft-open .ourcraft-shell { width: 100%; height: 100%; max-height: none; min-height: 0; }
body.ourcraft-open .ourcraft-shell { border: 0; border-radius: 0; }
.ourcraft-shell {
  position: relative; display: flex; flex-direction: column; height: min(850px, calc(100dvh - 138px)); min-height: 560px;
  overflow: hidden; border: 1px solid rgba(200,162,100,.34); border-radius: 28px; background: #34261c;
  box-shadow: 0 28px 80px rgba(52,38,28,.32), inset 0 1px 0 rgba(255,255,255,.09); isolation: isolate;
}
.ourcraft-shell::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 50% -20%, rgba(200,162,100,.32), transparent 42%), linear-gradient(#34261c, #34261c); }
.oc-sheet-head, .oc-sheet-actions { display: flex; align-items: center; }
.ourcraft-canvas-wrap { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #34261c; }
#oc-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; user-select: none; }
.ourcraft-context-actions { position: absolute; z-index: 7; top: 54%; left: max(14px, env(safe-area-inset-left)); display: grid; gap: 12px; width: min(220px,calc(100% - 110px)); transform: translateY(-50%); }
.ourcraft-context-actions[hidden] { display: none; }
.ourcraft-context-actions button { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; min-height: 82px; padding: 12px 14px; border: 2px solid rgba(234,217,175,.72); border-radius: 22px; color: #ffffff; background: linear-gradient(145deg,rgba(152,106,57,.97),rgba(52,38,28,.96)); box-shadow: 0 12px 34px rgba(52,38,28,.42), inset 0 1px 0 rgba(255,255,255,.24); text-align: left; backdrop-filter: blur(12px); }
.ourcraft-context-actions button:active { transform: scale(.92); background: radial-gradient(circle at 34% 25%,#c8a264,#60432a 72%); }
.ourcraft-context-actions button.is-hunt { border-color: rgba(255,185,94,.86); background: linear-gradient(145deg,rgba(163,82,30,.97),rgba(57,24,21,.96)); }
.ourcraft-context-actions button.is-hunt i { background: #ffd68c; }
.ourcraft-context-actions i { position: absolute; top: 7px; right: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #34261c; background: #ead9af; font-size: 13px; font-style: normal; font-weight: 900; }.ourcraft-context-actions span { font-size: 34px; line-height: 1; text-align: center; }.ourcraft-context-actions div { min-width: 0; }.ourcraft-context-actions b, .ourcraft-context-actions small { display: block; }.ourcraft-context-actions b { padding-right: 20px; font-size: 13px; line-height: 1.2; }.ourcraft-context-actions small { margin-top: 5px; color: #ead9af; font-size: 11px; line-height: 1.2; }
.ourcraft-tools { position: absolute; z-index: 7; top: 50%; right: max(12px, env(safe-area-inset-right)); width: 92px; transform: translateY(-50%); }
.ourcraft-tools button { display: grid; place-items: center; gap: 6px; width: 92px; min-height: 84px; padding: 10px; border: 2px solid rgba(200,162,100,.6); border-radius: 22px; color: #ffffff; background: linear-gradient(145deg,rgba(96,67,42,.96),rgba(52,38,28,.94)); box-shadow: 0 12px 32px rgba(52,38,28,.38), inset 0 1px 0 rgba(255,255,255,.2); font-weight: 800; backdrop-filter: blur(12px); }
.ourcraft-tools span { font-size: 28px; line-height: 1; }.ourcraft-tools b { font-size: 12px; line-height: 1.15; }
.ourcraft-tools button:active { border-color: #c8a264; background: rgba(152,106,57,.9); transform: scale(.94); }
.ourcraft-build-tray { position: absolute; z-index: 8; top: 50%; right: 96px; display: flex; width: 220px; flex-direction: column; gap: 7px; padding: 8px; overflow: auto; border: 1px solid rgba(200,162,100,.42); border-radius: 17px; background: rgba(52,38,28,.94); box-shadow: 0 16px 40px rgba(52,38,28,.42); transform: translateY(-50%); backdrop-filter: blur(18px); scrollbar-width: none; }
.ourcraft-build-tray[hidden] { display: none; }.ourcraft-build-tray::-webkit-scrollbar { display: none; }
.ourcraft-build-tray button { width: 100%; padding: 8px; border: 1px solid rgba(200,162,100,.22); border-radius: 12px; color: #ead9af; background: rgba(52,38,28,.8); text-align: left; }
.ourcraft-build-tray button:disabled { filter: grayscale(.65); opacity: .62; }
.ourcraft-build-tray button.selected { border-color: #c8a264; background: linear-gradient(145deg, rgba(152,106,57,.88), rgba(96,67,42,.85)); box-shadow: 0 0 18px rgba(200,162,100,.22); }
.ourcraft-build-tray span { float: left; margin-right: 8px; font-size: 24px; }.ourcraft-build-tray b, .ourcraft-build-tray small { display: block; }.ourcraft-build-tray b { font-size: 11px; }.ourcraft-build-tray small { margin-top: 4px; color: #ead9af; font-size: 8px; }
.ourcraft-build-confirm { position: absolute; z-index: 9; right: 16px; bottom: 116px; left: 16px; display:grid; place-items:center; gap:3px; min-height:68px; padding:8px 16px; border: 2px solid #8df2b8; border-radius: 10px; color: #ffffff; background: linear-gradient(#209e62,#0b7345); box-shadow: 0 5px 0 #075633,0 12px 32px rgba(10,127,72,.38); font-weight: 800; cursor:pointer; }
.ourcraft-build-confirm small,.ourcraft-build-confirm b,.ourcraft-build-confirm span { display:block; line-height:1.2; }.ourcraft-build-confirm small { color:#c5f4d8;font-size:9px;text-transform:uppercase;letter-spacing:.08em; }.ourcraft-build-confirm b { font-size:14px; }.ourcraft-build-confirm span { color:#e5f8eb;font-size:10px;font-weight:600; }.ourcraft-build-confirm:active { transform:translateY(3px);box-shadow:0 2px 0 #075633,0 7px 18px #0a7f484d; }
.ourcraft-build-confirm:disabled { border-color: #ff6575; background: #782837; opacity: .82; }
.ourcraft-build-confirm[hidden] { display: none; }
.ourcraft-toast { position: absolute; z-index: 30; top: 16%; left: 50%; max-width: 86%; padding: 13px 20px; border: 1px solid rgba(200,162,100,.6); border-radius: 16px; color: #ffffff; background: rgba(52,38,28,.94); box-shadow: 0 14px 40px rgba(0,0,0,.38); opacity: 0; pointer-events: none; transform: translate(-50%,-40%) scale(.96); transition: .22s ease; font-size: 14px; font-weight: 800; }
.ourcraft-toast.show { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.ourcraft-sheet-backdrop { position: absolute; z-index: 18; inset: 0; background: rgba(52,38,28,.58); backdrop-filter: blur(3px); }.ourcraft-sheet-backdrop[hidden] { display: none; }
.ourcraft-sheet { position: absolute; z-index: 20; inset: 0; padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); overflow-y: auto; color: #eaf5ff; background: radial-gradient(circle at 50% 0,rgba(152,106,57,.38),transparent 44%),linear-gradient(155deg,rgba(52,38,28,.985),rgba(52,38,28,.995)); }.ourcraft-sheet[hidden] { display: none; }
.ourcraft-sheet-grip { display: none; }
.ourcraft-sheet-body, #oc-sheet-body { width: min(980px,100%); margin: 0 auto; }
.oc-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 4px 0 18px; }.oc-menu-head small { color: #c8a264; font-size: 11px; font-weight: 850; letter-spacing: .15em; }.oc-menu-head h2 { margin: 3px 0 0; color: #ffffff; font-size: clamp(25px,5vw,40px); }.oc-menu-head > button { width: 48px; height: 48px; border: 1px solid rgba(200,162,100,.45); border-radius: 15px; color: #ffffff; background: rgba(255,255,255,.08); font-size: 30px; }
.oc-menu-tabs { position: sticky; z-index: 2; top: -18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 10px 0 14px; background: linear-gradient(rgba(52,38,28,.98) 76%,transparent); }.oc-menu-tabs button { display: grid; place-items: center; gap: 5px; min-height: 72px; padding: 9px; border: 1px solid rgba(200,162,100,.28); border-radius: 18px; color: #ead9af; background: rgba(52,38,28,.8); font-size: 22px; }.oc-menu-tabs b { font-size: 12px; }.oc-menu-tabs button.active { border-color: #c8a264; color: #ffffff; background: linear-gradient(145deg,#986a39,#986a39); box-shadow: 0 8px 28px rgba(200,162,100,.25); }
.oc-menu-content { padding: 6px 0 32px; }
.oc-build-menu { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.oc-build-menu > button { display: grid; grid-template-columns: 54px 1fr; align-items: center; gap: 12px; min-height: 108px; padding: 15px; border: 1px solid rgba(200,162,100,.28); border-radius: 20px; color: #ffffff; background: rgba(255,255,255,.055); text-align: left; }.oc-build-menu > button > span { font-size: 42px; text-align: center; }.oc-build-menu b, .oc-build-menu small { display: block; }.oc-build-menu b { font-size: 15px; }.oc-build-menu small { margin-top: 6px; color: #ead9af; font-size: 11px; line-height: 1.4; }.oc-build-menu button:disabled { filter: grayscale(.65); opacity: .58; }
.oc-experiment { padding: clamp(14px,3vw,26px); border: 1px solid rgba(200,162,100,.38); border-radius: 26px; background: linear-gradient(145deg,rgba(96,67,42,.84),rgba(52,38,28,.92)); box-shadow: 0 22px 60px rgba(52,38,28,.28),inset 0 1px 0 rgba(255,255,255,.08); }.oc-experiment-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.oc-experiment-title small { color: #c8a264; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }.oc-experiment-title h3 { margin: 5px 0 0; color: #ffffff; font-size: clamp(16px,3vw,23px); }.oc-experiment-title > b { padding: 8px 11px; border: 1px solid rgba(200,162,100,.38); border-radius: 12px; color: #c8a264; background: rgba(52,38,28,.52); font-size: 14px; }
.oc-experiment-slots { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 12px; margin: 20px 0; }.oc-experiment-slots > em { color: #c8a264; font-size: 30px; font-style: normal; font-weight: 900; }.oc-experiment-slot { position: relative; display: grid; place-items: center; align-content: center; gap: 5px; min-height: 132px; padding: 14px; border: 2px dashed rgba(200,162,100,.36); border-radius: 22px; color: #ead9af; background: rgba(52,38,28,.54); text-align: center; }.oc-experiment-slot.active { border-style: solid; border-color: #c8a264; color: #ffffff; background: rgba(96,67,42,.55); box-shadow: 0 0 0 4px rgba(200,162,100,.1); }.oc-experiment-slot > span { font-size: 42px; line-height: 1; }.oc-experiment-slot > b { font-size: 14px; }.oc-experiment-slot > small { max-width: 180px; color: #ead9af; font-size: 9px; line-height: 1.3; }.oc-experiment-slot > i { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #ffffff; background: rgba(255,255,255,.12); font-size: 18px; font-style: normal; }
.oc-material-palette { display: grid; grid-template-columns: repeat(auto-fill,minmax(105px,1fr)); gap: 8px; max-height: 245px; padding: 10px; overflow-y: auto; border: 1px solid rgba(200,162,100,.18); border-radius: 18px; background: rgba(52,38,28,.42); }.oc-material-palette button { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; min-height: 88px; padding: 9px; border: 1px solid rgba(200,162,100,.2); border-radius: 15px; color: #ffffff; background: rgba(255,255,255,.045); cursor: grab; }.oc-material-palette button:active { cursor: grabbing; transform: scale(.96); }.oc-material-palette span { font-size: 29px; }.oc-material-palette b { font-size: 10px; line-height: 1.2; text-align: center; }.oc-material-palette small { position: absolute; top: 6px; right: 7px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; color: #34261c; background: #c8a264; font-size: 10px; font-weight: 900; }
.oc-experiment-actions { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; margin-top: 14px; }.oc-experiment-actions button { display: grid; place-items: center; gap: 3px; min-height: 62px; padding: 7px 4px; border: 1px solid rgba(200,162,100,.2); border-radius: 14px; color: #ead9af; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 800; }.oc-experiment-actions span { font-size: 21px; }.oc-experiment-actions button.active { border-color: #c8a264; color: #ffffff; background: linear-gradient(145deg,#986a39,#986a39); box-shadow: 0 7px 22px rgba(200,162,100,.22); }.oc-run-experiment { width: 100%; min-height: 54px; margin-top: 14px; border: 1px solid #c8a264; border-radius: 17px; color: #ffffff; background: linear-gradient(135deg,#986a39,#986a39); box-shadow: 0 12px 30px rgba(152,106,57,.28); font-size: 14px; font-weight: 900; }.oc-experiment-result { margin-top: 12px; padding: 14px; border: 1px solid rgba(200,162,100,.35); border-radius: 15px; color: #ead9af; background: rgba(96,67,42,.42); font-size: 13px; font-weight: 800; text-align: center; }
.oc-next-hint { display: flex; align-items: flex-start; gap: 13px; margin-top: 16px; padding: 16px; border: 1px solid rgba(255,203,91,.35); border-radius: 19px; background: linear-gradient(145deg,rgba(122,82,18,.2),rgba(52,38,28,.35)); }.oc-next-hint > span { font-size: 30px; }.oc-next-hint b { color: #ffe499; font-size: 12px; }.oc-next-hint p { margin: 4px 0 0; color: #e9dfbf; font-size: 12px; line-height: 1.45; }.oc-next-hint small { display: block; margin-top: 7px; color: #ffb9a8; font-size: 10px; }
.oc-discoveries { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.oc-discoveries article { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(200,162,100,.2); border-radius: 16px; background: rgba(255,255,255,.045); }.oc-discoveries article > span { font-size: 30px; text-align: center; }.oc-discoveries b, .oc-discoveries small { display: block; }.oc-discoveries b { font-size: 12px; }.oc-discoveries small { margin-top: 4px; color: #ead9af; font-size: 10px; }.oc-discoveries button { min-height: 36px; padding: 7px 10px; border: 1px solid #c8a264; border-radius: 11px; color: #ffffff; background: #986a39; font-size: 9px; font-weight: 800; }.oc-discoveries button:disabled { border-color: rgba(234,217,175,.2); color: #986a39; background: rgba(255,255,255,.04); }
.oc-sheet-head { justify-content: space-between; gap: 14px; margin-bottom: 12px; }.oc-sheet-head small { color: #c8a264; font-size: 9px; font-weight: 800; text-transform: uppercase; }.oc-sheet-head h2 { margin: 2px 0 0; color: #ffffff; font-size: 21px; }.oc-sheet-head > button { width: 34px; height: 34px; border: 1px solid rgba(200,162,100,.3); border-radius: 11px; color: #ead9af; background: rgba(255,255,255,.05); font-size: 20px; }
.oc-note, .oc-save-note { padding: 10px 12px; border: 1px solid rgba(200,162,100,.18); border-radius: 12px; color: #ead9af; background: rgba(255,255,255,.035); font-size: 11px; line-height: 1.45; }.oc-save-note { color: #986a39; text-align: center; }
.oc-sheet-actions { gap: 8px; margin-top: 12px; }.oc-sheet-actions button, .oc-secondary { flex: 1; min-height: 42px; border: 1px solid #c8a264; border-radius: 12px; color: #ffffff; background: linear-gradient(135deg,#986a39,#986a39); font-weight: 750; }
.oc-world-list { display: grid; gap: 9px; }.oc-world-list article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(200,162,100,.25); border-radius: 15px; background: rgba(52,38,28,.72); }.oc-world-list article.is-crystal { border-color: rgba(200,162,100,.42); background: linear-gradient(135deg,rgba(96,67,42,.66),rgba(52,38,28,.75)); }.oc-world-list article.locked { filter: saturate(.45); opacity: .68; }.oc-world-list article > span { font-size: 29px; }.oc-world-list h3 { margin: 0; color: #ffffff; font-size: 14px; }.oc-world-list p { margin: 3px 0 0; color: #ead9af; font-size: 9px; line-height: 1.35; }.oc-world-list button { padding: 8px 10px; border: 1px solid #c8a264; border-radius: 10px; color: #ffffff; background: #60432a; font-size: 9px; }.oc-world-list button:disabled { border-color: rgba(234,217,175,.2); color: #ead9af; background: rgba(255,255,255,.04); }
.oc-teleport { margin-top: 12px; padding: 12px; border: 1px solid rgba(200,162,100,.38); border-radius: 15px; background: rgba(96,67,42,.32); }.oc-teleport > b { font-size: 13px; }.oc-teleport p { margin: 5px 0 10px; color: #ead9af; font-size: 10px; }.oc-teleport div { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 7px; }.oc-teleport input { min-width: 0; padding: 9px; border: 1px solid rgba(200,162,100,.3); border-radius: 10px; color: #ffffff; background: rgba(52,38,28,.72); }.oc-teleport button { border: 1px solid #c8a264; border-radius: 10px; color: #ffffff; background: #986a39; font-weight: 700; }
.oc-bag { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 8px; margin-top: 12px; }.oc-bag article { display: grid; justify-items: center; padding: 14px 8px; border: 1px solid rgba(200,162,100,.2); border-radius: 15px; background: rgba(255,255,255,.04); }.oc-bag span { font-size: 28px; }.oc-bag b { margin-top: 4px; font-size: 20px; }.oc-bag small { color: #ead9af; font-size: 9px; text-align: center; text-transform: uppercase; }
.oc-section-title { margin: 18px 0 8px; color: #c8a264; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.oc-tool-list, .oc-knowledge, .oc-recipes, .oc-future { display: grid; gap: 8px; }.oc-tool-list article, .oc-knowledge article, .oc-recipes article, .oc-future article { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(200,162,100,.2); border-radius: 13px; background: rgba(255,255,255,.04); }.oc-tool-list span, .oc-knowledge span, .oc-recipes > article > span { font-size: 25px; }.oc-tool-list div, .oc-knowledge div, .oc-recipes div { min-width: 0; flex: 1; }.oc-tool-list b, .oc-tool-list small, .oc-knowledge b, .oc-knowledge small, .oc-recipes b, .oc-recipes small { display: block; }.oc-tool-list small, .oc-knowledge small, .oc-recipes small, .oc-future small { margin-top: 3px; color: #ead9af; font-size: 9px; }.oc-knowledge article.known { border-color: rgba(74,224,134,.45); background: rgba(36,128,76,.18); }.oc-recipes button { min-width: 82px; padding: 8px; border: 1px solid #c8a264; border-radius: 10px; color: #ffffff; background: #986a39; font-size: 9px; font-weight: 750; }.oc-recipes button:disabled { border-color: rgba(234,217,175,.2); color: #986a39; background: rgba(255,255,255,.04); }.oc-future { grid-template-columns: 1fr 1fr; }.oc-future article { display: grid; justify-items: center; text-align: center; filter: grayscale(.45); opacity: .7; }.oc-future b, .oc-future small { display: block; }
.oc-profile-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }.oc-profile-stats article { padding: 10px 5px; border: 1px solid rgba(200,162,100,.2); border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; }.oc-profile-stats small, .oc-profile-stats b { display: block; }.oc-profile-stats small { min-height: 22px; color: #ead9af; font-size: 8px; }.oc-profile-stats b { color: #ffffff; font-size: 17px; }.oc-secondary { width: 100%; margin-top: 9px; }
.ourcraft-create,.ourcraft-return { position:absolute;z-index:60;inset:0;display:grid;place-items:center;padding:20px;overflow-y:auto;background:radial-gradient(circle at 50% 25%,rgba(104,177,159,.24),transparent 38%),linear-gradient(155deg,#1c2c29,#30251c); }.ourcraft-create[hidden],.ourcraft-return[hidden] { display:none; }.ourcraft-create form,.ourcraft-return section { width:min(540px,100%);box-sizing:border-box;margin:auto;padding:25px;border:1px solid rgba(204,193,151,.42);border-radius:22px;background:#26322ef2;box-shadow:0 28px 80px rgba(0,0,0,.42);text-align:center; }.ourcraft-create form>small,.ourcraft-return section>small { color:#cfc18d;font-weight:800;letter-spacing:.18em; }.ourcraft-create h1,.ourcraft-return h1 { margin:8px 0;color:#fff;font-size:clamp(27px,7vw,38px);letter-spacing:-.04em; }.ourcraft-create p,.ourcraft-return p { margin:0 auto 18px;max-width:390px;color:#d8d8bc;font-size:12px;line-height:1.5; }.oc-avatar-grid { display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:18px; }.oc-avatar-grid button { min-width:0;aspect-ratio:1;border:1px solid rgba(200,162,100,.25);border-radius:14px;background:#ffffff0b;font-size:28px;cursor:pointer; }.oc-avatar-grid button span { display:grid;place-items:center;width:40px;height:40px;margin:auto;border-radius:50%;background:color-mix(in srgb,var(--skin-color) 62%,#26322e); }.oc-avatar-grid button.selected { border-color:#e0ca87;background:#58644b;box-shadow:0 0 0 2px #e0ca8744;transform:translateY(-2px); }.ourcraft-create label { display:grid;gap:6px;text-align:left; }.ourcraft-create label span { color:#ead9af;font-size:10px;font-weight:700; }.ourcraft-create input { width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid rgba(200,162,100,.32);border-radius:10px;color:#fff;outline:0;background:#17231f;font-size:16px; }.ourcraft-create input:focus { border-color:#c8a264;box-shadow:0 0 0 3px rgba(200,162,100,.12); }.oc-create-submit { width:100%;min-height:46px;margin-top:12px;border:1px solid #d5c188;border-radius:10px;color:#17211c;background:#d8ca94;box-shadow:0 8px 24px #0003;font-weight:800;cursor:pointer; }
.oc-return-actions { display:grid;gap:10px;margin-top:24px; }.oc-return-actions button,.oc-delete-confirm button { min-height:48px;border:1px solid #8e9879;border-radius:10px;color:#eee8ce;background:#39483e;font-weight:750;cursor:pointer; }.oc-return-actions button.primary { color:#18231d;background:#d8ca94;border-color:#eadba5; }.oc-return-actions button:last-child { color:#f0b6a5;border-color:#945f55;background:#472e2b; }.oc-delete-confirm { margin-top:16px;padding:16px;border:1px solid #a36b5d;border-radius:12px;color:#f2d1c8;background:#3e2926; }.oc-delete-confirm[hidden] { display:none; }.oc-delete-confirm div { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px; }.oc-delete-confirm button:last-child { background:#8b493c;border-color:#d68a76; }
.ourcraft-room-badge { position: absolute; z-index: 8; top: max(12px,env(safe-area-inset-top)); left: 50%; max-width: min(70%,420px); padding: 8px 13px; border: 1px solid rgba(200,162,100,.5); border-radius: 999px; color: #e9faff; background: rgba(52,38,28,.86); box-shadow: 0 8px 24px rgba(52,38,28,.3); transform: translateX(-50%); font-size: 10px; font-weight: 800; text-align: center; backdrop-filter: blur(12px); }.ourcraft-room-badge[hidden] { display: none; }
.oc-account-note { margin:10px 0 12px;color:#c8a264;font-size:11px;font-weight:800; }.oc-avatar-grid button { display:grid;place-items:center;align-content:center;gap:4px;min-height:76px;aspect-ratio:auto; }.oc-avatar-grid button span { font-size:23px; }.oc-avatar-grid button b { color:#ead9af;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%; }
.oc-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 16px 0 0; padding: 0; border: 0; }.oc-mode legend { grid-column: 1/-1; margin-bottom: 4px; color: #ffffff; font-size: 13px; font-weight: 850; text-align: left; }.oc-mode button { display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 66px; padding: 10px; border: 1px solid rgba(200,162,100,.28); border-radius: 15px; color: #ead9af; background: rgba(255,255,255,.045); text-align: left; }.oc-mode button > span { grid-row: 1/3; font-size: 27px; }.oc-mode button b { color: #ffffff; font-size: 12px; }.oc-mode button small { font-size: 8px; line-height: 1.25; }.oc-mode button.selected { border-color: #c8a264; background: linear-gradient(145deg,rgba(152,106,57,.8),rgba(152,106,57,.75)); }.oc-mode button:disabled { filter: grayscale(.8); opacity: .5; }
.oc-room-setup { margin-top: 10px; padding: 10px; border: 1px solid rgba(200,162,100,.24); border-radius: 15px; background: rgba(52,38,28,.48); }.oc-room-setup[hidden], .oc-room-setup label[hidden] { display: none; }.oc-room-setup > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }.oc-room-setup button { min-height: 38px; border: 1px solid rgba(200,162,100,.28); border-radius: 11px; color: #ead9af; background: rgba(255,255,255,.04); font-size: 9px; font-weight: 800; }.oc-room-setup button.selected { border-color: #c8a264; color: #ffffff; background: #986a39; }.oc-room-setup label { margin-top: 9px; }.oc-room-setup input { text-transform: uppercase; letter-spacing: .18em; }.ourcraft-create .oc-create-error { min-height: 18px; margin: 8px 0 0; color: #ff9b9b; font-size: 10px; font-weight: 750; }
.ourcraft-create.editing .oc-mode, .ourcraft-create.editing .oc-room-setup { display: none; }
@media (max-width: 760px) { .game-stage-main:has(.ourcraft-view:not([hidden])) { width: calc(100% - 10px); padding-bottom: 8px; }.ourcraft-shell { height: calc(100dvh - 124px); min-height: 500px; border-radius: 20px; }body.ourcraft-open .game-stage-main:has(.ourcraft-view:not([hidden])) { width: 100%; padding: 0; }body.ourcraft-open .ourcraft-shell { height: 100dvh; min-height: 0; border-radius: 0; }body.ourcraft-open .game-back > span:nth-child(2) { display: none; }body.ourcraft-open .game-back { width: 38px; padding-inline: 7px; }.ourcraft-context-actions { top: 48%; left: 8px; gap: 8px; width: min(178px,calc(100% - 94px)); }.ourcraft-context-actions button { grid-template-columns: 34px 1fr; min-height: 72px; gap: 8px; padding: 10px; border-radius: 18px; }.ourcraft-context-actions span { font-size: 28px; }.ourcraft-context-actions b { font-size: 11px; }.ourcraft-context-actions small { font-size: 9px; }.ourcraft-tools { top: auto; right: 8px; bottom: max(10px,env(safe-area-inset-bottom)); width: 76px; transform: none; }.ourcraft-tools button { width: 76px; min-height: 68px; border-radius: 18px; }.ourcraft-tools span { font-size: 24px; }.ourcraft-build-confirm { right: 92px; bottom: max(12px,env(safe-area-inset-bottom)); left: 12px; min-height: 54px; }.ourcraft-sheet { inset: 0; width: auto; max-height: none; border: 0; border-radius: 0; box-shadow: none; }.oc-menu-tabs { gap: 6px; }.oc-menu-tabs button { min-height: 64px; padding: 6px 3px; font-size: 20px; }.oc-menu-tabs b { font-size: 10px; }.oc-bag { grid-template-columns: repeat(2,1fr); }.oc-build-menu { grid-template-columns: 1fr; }.oc-build-menu > button { min-height: 88px; }.oc-experiment { padding: 12px; border-radius: 20px; }.oc-experiment-slots { gap: 7px; }.oc-experiment-slots > em { font-size: 22px; }.oc-experiment-slot { min-height: 108px; padding: 9px 5px; border-radius: 17px; }.oc-experiment-slot > span { font-size: 34px; }.oc-experiment-slot > b { font-size: 11px; }.oc-experiment-slot > small { font-size: 8px; }.oc-material-palette { grid-template-columns: repeat(3,1fr); max-height: 220px; padding: 7px; }.oc-material-palette button { min-height: 78px; padding: 7px 3px; }.oc-experiment-actions { grid-template-columns: repeat(2,1fr); }.oc-experiment-actions button { grid-template-columns: 28px 1fr; min-height: 48px; text-align: left; }.oc-discoveries { grid-template-columns: 1fr; }.oc-discoveries article { grid-template-columns: 40px 1fr auto; } }
@media(max-width:520px){.oc-avatar-grid{grid-template-columns:repeat(2,1fr)}.ourcraft-create form,.ourcraft-return section{padding:20px 16px}.oc-avatar-grid button{min-height:62px}.oc-return-actions button{min-height:52px}}
@media (max-width: 380px) { .oc-profile-stats { grid-template-columns: repeat(2,1fr); }.oc-future { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ourcraft-shell *, .ourcraft-shell *::before, .ourcraft-shell *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.oc-vitals { position: absolute; z-index: 8; top: max(58px, env(safe-area-inset-top)); left: 12px; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px); min-height: 44px; padding: 7px 12px; border: 1px solid #986a3970; border-radius: 16px; color: #f4f6e9; background: #34261ce8; backdrop-filter: blur(10px); cursor: pointer; }
.oc-vital { display: grid; grid-template-columns: 18px 40px; align-items: center; gap: 0 3px; }.oc-vital i { grid-row: 1/3; font-style: normal; color: #a8dcc1; }.oc-vital b { font-size: 9px; text-align: right; }.oc-vital meter { width: 40px; height: 8px; }.oc-vital.is-low { color: #ffbb8d; }.oc-vital.is-low i { color: #ff825d; }.oc-illness { font-size: 15px; }
.oc-thought { position: absolute; z-index: 8; top: 116px; left: 12px; width: max-content; max-width: min(330px, calc(100% - 24px)); box-sizing: border-box; padding: 10px 14px; border: 1px solid #c6d5c765; border-radius: 4px 18px 18px; color: #fff5df; background: #34261cee; font-size: 12px; line-height: 1.5; pointer-events: none; box-shadow: 0 6px 22px #00000044; }
.oc-vitals[hidden], .oc-thought[hidden] { display: none; }
.oc-condition-stats { display: flex; gap: 12px; flex-wrap: wrap; color: #ead9af; }.oc-condition-stats p { padding: 12px; border: 1px solid #60432a66; border-radius: 12px; }.oc-condition-stats b { display: block; color: #ffffff; font-size: 20px; }
.oc-survival-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 10px; }.oc-survival-actions button { min-height: 48px; padding: 12px; border: 1px solid #986a3966; border-radius: 12px; color: #e8f3ed; background: #34261c; font-size: 12px; text-align: left; cursor: pointer; }.oc-survival-actions button:disabled { opacity: .45; cursor: default; }
.oc-menu-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); }
.oc-place-list { display: grid; gap: 10px; }.oc-place-list > button { display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 78px; border: 1px solid #73aa9766; border-radius: 15px; color: #f0eee1; background: #123029; text-align: left; cursor: pointer; }.oc-place-list > button > span { font-size: 28px; }.oc-place-list small { display: block; margin-top: 4px; color: #ead9af; font-size: 11px; }
.ourcraft-context-actions button.oc-place-action { border-color: #c7c49a; background: linear-gradient(140deg,#375542ed,#34261cf5); }
@media (max-width: 760px) { .oc-menu-tabs button { min-width: 0; }.oc-menu-tabs b { font-size: 9px; overflow-wrap: anywhere; }.oc-vitals { gap: 7px; left: 8px; }.ourcraft-context-actions:has(.oc-place-action) { top: 56%; gap: 6px; }.ourcraft-context-actions:has(.oc-place-action) button { min-height: 58px; padding: 7px 10px; } }
.oc-wallet { margin: 12px 0; padding: 14px 16px; color: #deeadc; background: linear-gradient(135deg,#183833,#34261c); border: 1px solid #a5b98750; border-radius: 16px; }.oc-wallet h3 { margin: 0 0 8px; color: #eedba5; font-size: 16px; }.oc-wallet p { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; font-size: 13px; }.oc-wallet b { white-space: nowrap; }.oc-wallet small { display: block; margin-top: 9px; color: #ead9af; line-height: 1.5; }
.oc-commerce-tabs { display: flex; gap: 8px; margin: 16px 0; }.oc-commerce-tabs button, .oc-map-collection button, .oc-map-open, .oc-job button, .oc-commerce-form button, .oc-offer button { min-height: 44px; padding: 11px 14px; border: 1px solid #a8b78970; border-radius: 12px; color: #f5edcf; background: #254537; font-size: 13px; cursor: pointer; }.oc-commerce-tabs button { flex: 1; }.oc-commerce-tabs button.active { background: #94783e; color: #ffffff; border-color: #edd28e; }.oc-commerce-form button:disabled, .oc-job button:disabled { opacity: .45; cursor: default; }
.oc-commerce-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 16px; border: 1px solid #91a7a14d; border-radius: 16px; background: #34261ce8; }.oc-commerce-form label { display: grid; align-content: start; gap: 7px; color: #cbd9ce; font-size: 12px; }.oc-commerce-form input, .oc-commerce-form select { min-width: 0; width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px; border: 1px solid #8ea79880; border-radius: 9px; color: #fff9e9; background: #34261c; font-size: 16px; }.oc-trade-reference { grid-column: 1/-1; color: #d8cdac; font-size: 13px; line-height: 1.5; }.oc-commerce-form button { grid-column: 1/-1; font-weight: 750; }.oc-commerce-form input:focus-visible, .oc-commerce-form select:focus-visible { outline: 2px solid #eacf8b; outline-offset: 2px; }
.oc-offer { margin-top: 15px; padding: 16px; border: 1px solid #cbb572; border-radius: 16px; background: #354834; color: #fff0d4; line-height: 1.5; }.oc-offer[hidden] { display: none; }.oc-offer > strong { display: block; font-size: 20px; }.oc-offer button { display: block; width: 100%; margin-top: 12px; background: #866b32; }.oc-job-list { display: grid; gap: 12px; }.oc-job { padding: 16px; border: 1px solid #99b28a66; border-radius: 15px; color: #dfebdd; background: #34261c; }.oc-job h3 { margin-top: 0; color: #ead8a8; }.oc-job p { font-size: 13px; line-height: 1.5; }.oc-job small { display: block; margin-top: 8px; }.oc-job progress { width: 100%; accent-color: #b8d091; }
.oc-map-collection { margin: 14px 0; color: #d8e6dd; }.oc-map-collection button { margin: 4px 6px 4px 0; }.oc-region-map { display: block; width: 100%; max-width: 560px; height: auto; margin: 16px auto; box-sizing: border-box; border: 9px solid #ded2ad; border-radius: 8px; box-shadow: 0 8px 32px #00000055; background: #dad0ab; }.oc-map-sites { color: #e7dfc7; padding-left: 24px; }.oc-map-sites li { padding: 7px 0; font-size: 13px; }.oc-map-sites small { display: block; color: #aabcb5; margin-top: 3px; }
.oc-economy-receipt { margin: 12px 0; padding: 14px; border: 1px solid #c3bb87; border-radius: 12px; background: #38583c; color: #f1e8ca; font-size: 13px; line-height: 1.6; }
@media (max-width: 420px) { .oc-commerce-form { padding: 12px; gap: 12px; }.oc-commerce-tabs { gap: 5px; }.oc-commerce-tabs button { padding: 10px 6px; font-size: 12px; } }

/* Keep the player visible above the mobile action dock. */
@media (max-width: 760px) {
  .ourcraft-context-actions, .ourcraft-context-actions:has(.oc-place-action) { top: auto; bottom: max(10px,env(safe-area-inset-bottom)); left: 8px; width: calc(100% - 100px); max-height: 28vh; overflow-y: auto; transform: none; gap: 6px; }
  .ourcraft-context-actions button { min-height: 58px; padding: 8px 10px; }
}

/* Keep actions at the edge of the world and use the landscape's warmer palette. */
.ourcraft-context-actions { top:auto; bottom:max(18px,env(safe-area-inset-bottom)); display:flex; align-items:stretch; width:auto; max-width:calc(100% - 112px); transform:none; gap:8px; }
.ourcraft-context-actions button { width:190px; min-height:68px; padding:10px 12px; grid-template-columns:30px 1fr; gap:8px; border:1px solid #c8d8bc99; border-radius:15px; background:linear-gradient(145deg,#24483fed,#34261cf5); box-shadow:0 5px 18px #10231e45,inset 0 1px #ffffff18; }
.ourcraft-context-actions span { font-size:27px; }
.ourcraft-context-actions b { font-size:12px; line-height:1.3; }
.ourcraft-context-actions small { color:#d1dfcf; font-size:10px; }
.ourcraft-context-actions i { width:18px; height:18px; right:7px; top:6px; background:#d9e7c6; font-size:11px; }
.ourcraft-tools { top:auto; bottom:max(18px,env(safe-area-inset-bottom)); width:76px; transform:none; }
.ourcraft-tools button { width:76px; min-height:68px; border:1px solid #c8d8bc99; border-radius:15px; background:linear-gradient(145deg,#24483fed,#34261cf5); box-shadow:0 5px 18px #10231e45; }
.ourcraft-context-actions button:focus-visible,.ourcraft-tools button:focus-visible { outline:3px solid #f5d99b; outline-offset:3px; }
.ourcraft-context-actions button:disabled { opacity:.7; cursor:wait; }
@media (max-width:760px) {
 .ourcraft-context-actions,.ourcraft-context-actions:has(.oc-place-action) { display:grid; top:auto; bottom:max(10px,env(safe-area-inset-bottom)); width:calc(100% - 98px); max-width:none; max-height:28vh; gap:6px; }
 .ourcraft-context-actions button { width:100%; min-height:58px; box-sizing:border-box; }
 .ourcraft-tools { bottom:max(10px,env(safe-area-inset-bottom)); right:8px; }
}

/* The game uses timber, parchment and aged metal instead of the Hub's blue panels. */
.ourcraft-view { --oc-ink:#f0dfb7; --oc-wood:#463322; --oc-edge:#ae8953; }
.ourcraft-sheet { color:var(--oc-ink); background:repeating-linear-gradient(0deg,#35291f 0 2px,#392d22 2px 18px); border:6px ridge #8e724b; box-sizing:border-box; }
.oc-menu-head h2 { color:#f5e7c8; font-size:clamp(23px,4vw,34px); }
.oc-menu-head small { color:#c2a16b; }
.oc-menu-tabs { background:linear-gradient(#392d22 80%,transparent); gap:7px; }
.oc-menu-tabs button,.oc-menu-head>button,.oc-secondary,.oc-commerce-tabs button { border:2px solid #80633f; border-radius:5px; background:linear-gradient(#604b34,#443322); color:#ead9b7; box-shadow:inset 0 2px #a6864a55,0 2px #1d170f; }
.oc-menu-tabs button.active,.oc-commerce-tabs button.active { background:linear-gradient(#92703e,#6a4d2e); border-color:#d3b576; color:#fff0c9; }
.ourcraft-context-actions button,.ourcraft-context-actions button.oc-place-action,.ourcraft-tools button { background:linear-gradient(#665138f5,#423020fa); border:2px solid #b49663; border-radius:6px; box-shadow:inset 0 2px #e2c28e44,0 3px #211b12,0 5px 12px #0005; color:#fff0d0; backdrop-filter:none; }
.ourcraft-context-actions button:active,.ourcraft-tools button:active { background:#705132; transform:translateY(2px); }
.ourcraft-context-actions button.is-hunt { background:linear-gradient(#774930,#4d2e24); border-color:#c69761; }
.ourcraft-context-actions small { color:#e3cfa7; }
.ourcraft-context-actions i { color:#3d2b1e; background:#e1c38e; border-radius:3px; }
.ourcraft-context-actions button:disabled { cursor:wait; opacity:.72; }
.ourcraft-tools span { font-size:25px; }
.oc-vitals { border:2px solid #aa8c59; border-radius:5px; background:#3e3024ed; box-shadow:inset 0 1px #d5bd7c44,0 2px #201b13; padding:6px 8px; gap:9px; backdrop-filter:none; }
.oc-vital { position:relative; grid-template-columns:15px 51px; gap:1px 3px; }
.oc-vital i { grid-row:1/4; font-size:14px; }
.oc-vital em { color:#ecd9b4; font-size:9px; font-style:normal; line-height:1.2; }
.oc-vital meter { width:51px; height:7px; }
.oc-vital b { font-size:9px; line-height:1; }
.oc-vital.is-low { background:#743923; outline:2px solid #cf8c53; border-radius:3px; }
.oc-vital.is-low em { color:#ffe5b3; }
.oc-thought,.ourcraft-toast { border:2px solid #ad8e5c; border-radius:5px; color:#392b1e; background:#eddfb8f5; box-shadow:0 3px #32281c77; }
body.ourcraft-open .game-back { color:#efdfbc; background:#493725ed; border:1px solid #ad8c56; border-radius:5px; backdrop-filter:none; }
.oc-note,.oc-section-title { color:#e4cba3; }
@media(max-width:760px){ .oc-vitals{gap:6px;left:8px;padding:5px 7px}.oc-vital{grid-template-columns:13px 43px}.oc-vital meter{width:43px}.oc-menu-tabs button{min-height:62px;padding:6px 3px}.ourcraft-sheet{border-width:3px} }

.oc-minimap { position:absolute;z-index:8;right:12px;top:12px;width:100px;padding:4px;border:3px ridge #ad8d54;border-radius:5px;background:#453623;color:#eeddb5;box-shadow:0 3px 8px #0006;cursor:pointer; }
.oc-minimap canvas { display:block;width:86px;height:86px;max-width:100%;margin:auto; }
.oc-minimap b,.oc-minimap small { display:block;font-size:10px;margin-top:3px;line-height:1.2; }
.oc-minimap small { color:#dac292;font-size:9px; }
.oc-field-map { display:block;width:min(480px,100%);height:auto;margin:16px auto;border:6px ridge #ad8b52;box-sizing:border-box;cursor:crosshair;touch-action:manipulation; }
@media(max-width:760px){.oc-minimap{right:8px;top:8px;width:86px}.oc-minimap canvas{width:72px;height:72px}.oc-thought{max-width:calc(100% - 115px)}}

.ourcraft-view,.ourcraft-view button,.ourcraft-view b,.ourcraft-view p,.ourcraft-view h2 { text-shadow:none; }
.oc-wallet { background:linear-gradient(135deg,#56412a,#392d21);border-color:#a78b55;border-radius:6px;color:#eee0bf; }
.oc-menu-tabs b { overflow-wrap:normal;word-break:normal; }
.oc-help { margin:12px 0;padding:13px 16px;border:1px solid #9c7b4b;border-radius:5px;background:#eadbb5;color:#493521;line-height:1.6;font-size:13px; }
.oc-help summary { cursor:pointer;font-weight:700; }
.oc-help p { margin:8px 0; }
.oc-bag>.oc-note { grid-column:1/-1; }
@media(max-width:760px){
 .oc-menu-tabs { display:flex;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#ac8b55 #392d22; }
 .oc-menu-tabs button { flex:0 0 112px;min-width:112px; }
 .oc-menu-tabs b { font-size:11px;white-space:nowrap; }
 .oc-menu-head { padding-top:22px; }
}

/* Field interaction and the expedition journal. */
.oc-inspect { position:absolute;z-index:12;width:max-content;max-width:230px;padding:11px 14px;background:#202920f2;border:1px solid #c5b47d;border-radius:10px;color:#f4ebcf;box-shadow:0 6px 18px #0005;pointer-events:auto;font:13px system-ui; }
.oc-inspect[hidden] { display:none; }
.oc-inspect b { display:block;margin-bottom:5px; }
.oc-inspect button { display:block;border:0;border-top:1px solid #9eac7555;background:transparent;color:#e5ce8c;padding:7px 0 0;cursor:pointer;font:inherit; }
.oc-inspect button:disabled { color:#c1bba8;cursor:default; }
.oc-clock { position:absolute;top:17px;left:50%;transform:translateX(-50%);padding:7px 14px;border:1px solid #c6b47f88;border-radius:20px;color:#f0e7ce;background:#293326dc;font:600 14px system-ui;letter-spacing:.08em;pointer-events:none; }
@media(hover:hover) and (pointer:fine) { .ourcraft-context-actions { display:none; } }
.ourcraft-sheet { background:radial-gradient(ellipse at 0 0,#384436,#1e2926 65%);border:1px solid #7d8b6580;color:#f0e7cd; }
.oc-menu-head { padding:28px 0 12px; }
.oc-menu-head h2 { color:#f5ebce; }
.oc-menu-head small { color:#bcaa77;letter-spacing:.2em; }
.oc-menu-tabs { gap:0;border-bottom:1px solid #99a48255;margin-bottom:20px; }
.oc-menu-tabs button { border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;min-height:70px;color:#b9c4ae; }
.oc-menu-tabs button.active { background:#daca8c12;border-bottom-color:#daca8c;color:#f1dfa5; }
.oc-menu-content { line-height:1.6; }
.oc-guide { display:flex;align-items:center;gap:18px;border:1px solid #b5bc8255;border-radius:16px;padding:22px;margin:0 0 26px;background:linear-gradient(115deg,#54614755,#caba7430); }
.oc-guide-mark { font-size:36px;color:#e0c989; }
.oc-guide>div { flex:1; }
.oc-guide small,.oc-bag-toolbar small { letter-spacing:.14em;font-size:10px;color:#c4bf92; }
.oc-guide h3 { margin:3px 0 6px;color:#f4e8c4;font-size:20px; }
.oc-guide p { margin:0;color:#d0d5c1;font-size:13px; }
.oc-guide button,.oc-map-footer button { flex:none;background:#ded09b;color:#28342a;border:0;border-radius:8px;padding:12px 16px;font-weight:700;cursor:pointer; }
.oc-bag-toolbar { display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px; }
.oc-bag-toolbar h3 { margin:2px 0;color:#f1e7cb; }
.oc-bag-toolbar .oc-secondary { flex:none;padding:10px 18px; }
.oc-bag { display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px; }
.oc-bag>button { display:grid;grid-template-columns:1fr auto;text-align:left;align-items:center;padding:16px;gap:8px;border:1px solid #9ba98255;border-radius:12px;color:#f1e6c8;background:linear-gradient(145deg,#53604a55,#2a3631);cursor:pointer;min-height:168px; }
.oc-bag>button:hover,.oc-bag>button:focus-visible { border-color:#e4cf91;background:#4b5940;outline:2px solid #dbc98a44; }
.oc-bag>button>span { grid-column:1/-1;font-size:38px;margin:4px 0;filter:drop-shadow(0 4px 3px #0004); }
.oc-bag>button>b { font-size:13px; }
.oc-bag>button>em { font-size:13px;color:#e2ce8c;font-style:normal; }
.oc-bag>button>small { grid-column:1/-1;color:#afbea6;font-size:10px; }
.oc-item-detail { display:flex;gap:24px;padding:28px;background:#e6ddbc;color:#28382d;border-radius:16px; }
.oc-item-detail>span { font-size:70px; }
.oc-item-detail .oc-survival-actions { margin-top:20px; }
.oc-help { background:#a6b09215;border:1px solid #a5b08744;color:#d6dcc5;border-radius:10px; }
.oc-note { color:#c9d1bc;background:#81956c12;border-color:#a4b37d33; }
.oc-vitals { border:1px solid #aaba8488;border-radius:14px;background:#253127ed;box-shadow:0 4px 16px #0003;padding:10px 13px;gap:14px; }
.oc-vital { grid-template-columns:19px 65px;gap:3px 6px; }
.oc-vital i { font-size:17px; }
.oc-vital em { font-size:9px;color:#d4ddc5; }
.oc-vital meter { width:65px;height:9px;accent-color:#9bb866; }
.oc-vital meter::-webkit-meter-bar { background:#131f1c;border:0;border-radius:6px; }
.oc-vital meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#6c9e64,#bad58a);border-radius:6px; }
.oc-vital:nth-child(2) meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#b98d44,#e1c777); }
.oc-vital:nth-child(3) meter::-webkit-meter-optimum-value { background:linear-gradient(90deg,#519cb0,#a4d9db); }
.oc-vital b { color:#e6eddb; }
.ourcraft-sheet.is-map { padding:0;overflow:hidden;background:#c9b98e; }
.is-map #oc-sheet-body { width:100%;height:100%;display:flex;flex-direction:column;max-width:none; }
.oc-map-head { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px 12px;background:#253127;color:#f0e4c1; }
.oc-map-head h2 { margin:3px 0;font-size:24px;color:inherit; }
.oc-map-head small { font-size:10px;letter-spacing:.14em; }
.oc-map-head>button { width:44px;height:44px;border:1px solid #b8ba8c;border-radius:8px;background:transparent;color:inherit;font-size:28px;cursor:pointer; }
.oc-map-stage { min-height:0;flex:1;display:flex;justify-content:center;align-items:center;overflow:hidden; }
.is-map .oc-field-map { width:100%;height:100%;max-width:none;max-height:100%;margin:0;border:0;box-shadow:none;object-fit:contain; }
.oc-map-footer { display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 24px;color:#e5e2c5;background:#253127;font-size:12px; }
.oc-survival-actions>button,.oc-secondary { border-color:#a8b98a66;background:#526246;color:#f1e7c8;border-radius:8px; }
.oc-build-menu>button { border:1px solid #a6b78555;background:#3c4c39;border-radius:14px; }
.oc-build-menu>button:disabled { opacity:.55; }
.oc-experiment { background:#d9d6b5;color:#29372b;border-radius:16px; }
@media(max-width:760px){
 .oc-guide{padding:16px;gap:10px;flex-wrap:wrap}.oc-guide-mark{display:none}.oc-guide>div{flex-basis:100%}.oc-guide h3{font-size:18px}.oc-guide button{width:100%}
 .oc-bag-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.oc-bag{grid-template-columns:repeat(2,minmax(0,1fr))}.oc-bag>button{padding:12px}
 .oc-item-detail{padding:16px;gap:12px}.oc-item-detail>span{font-size:38px}
 .oc-clock{top:8px;left:148px;right:100px;transform:none;text-align:center;font-size:10px;line-height:1.2;padding:5px 3px;letter-spacing:0}.oc-vitals{gap:6px;padding:7px}.oc-vital{grid-template-columns:14px 42px}.oc-vital meter{width:42px}
 .oc-map-head{padding:16px 14px}.oc-map-footer{padding:10px 12px;font-size:10px}.oc-map-footer button{padding:10px;font-size:11px}
}

.oc-bag-toolbar>div { flex:1;min-width:180px; }
.oc-bag-toolbar .oc-secondary { width:auto;max-width:55%; }
.oc-menu-tabs { background:transparent; }
body:has(#oc-sheet.is-map:not([hidden])) .game-back,body:has(#oc-sheet:not([hidden])) .ourcraft-toast { visibility:hidden; }
@media(max-width:760px){.oc-bag-toolbar .oc-secondary{max-width:100%;width:100%}}

.oc-map-zoom { display:flex;gap:8px;margin-left:auto; }.oc-map-zoom button { width:40px;height:40px;border:1px solid #a6b78588;border-radius:8px;background:#536247;color:#f5e9c7;font-size:22px;cursor:pointer; }
.oc-touch-motion { display:none;position:absolute;right:18px;bottom:185px;gap:8px;z-index:5; }
.oc-touch-motion button,.oc-village-guide { border:1px solid #afbb87;background:#27382eee;color:#f2e8c5;border-radius:12px;padding:12px;cursor:pointer; }
.oc-village-guide { position:absolute;right:16px;top:182px;max-width:230px;font-size:11px;z-index:4; }
.oc-crafting { margin-bottom:24px; }.oc-crafting>p{color:#e5d6b4;line-height:1.6;}
.oc-craft-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.oc-craft-grid article{display:flex;flex-direction:column;padding:18px;background:#384835;border:1px solid #89976e66;border-radius:12px;gap:10px;}
.oc-craft-grid h4,.oc-craft-grid p{margin:0}.oc-craft-grid p{font-size:12px;line-height:1.5;flex:1;color:#dedbc2}.oc-craft-grid small{color:#d0c499;line-height:1.6}
.oc-craft-grid button{padding:10px;background:#819b57;color:#111f15;border:0;border-radius:7px;font-weight:700;cursor:pointer}.oc-craft-grid button:disabled{background:#4b5743;color:#a6aa94;cursor:default;}
@media(pointer:coarse){.oc-touch-motion{display:flex}.oc-inspect button{min-height:44px}}
@media(max-width:760px){.oc-craft-grid{grid-template-columns:1fr}.oc-village-guide{top:145px;right:8px;max-width:160px;padding:8px}.oc-touch-motion{bottom:185px;right:10px}}

#oc-loading:not([hidden]) {position:absolute;inset:0;z-index:17;display:grid;place-items:center;background:#20312dea;color:#f0e7ce;font:600 20px system-ui;pointer-events:auto;}

#oc-depth-controls:not([hidden]){position:absolute;left:12px;bottom:112px;z-index:12;display:flex;flex-wrap:wrap;gap:5px;max-width:min(440px,85vw);padding:8px;background:#252820ed;color:#ecd9b1;border:1px solid #a48b58;border-radius:8px}#oc-depth-controls b{width:100%;font-size:12px}#oc-depth-controls button{padding:7px;background:#544631;color:#fff1d3;border:1px solid #aa9160;border-radius:5px;font-size:11px}

@media(pointer:coarse){.oc-touch-motion{bottom:245px}#oc-depth-controls:not([hidden]){bottom:12px;max-width:calc(100vw - 108px)}#oc-depth-controls button{min-height:44px}}

/* Menus: opaque surfaces and readable controls, independent of world lighting. */
.ourcraft-sheet:not(.is-map) { background:#191f1d; color:#f3efdf; border:0; padding-top:56px; }
.oc-menu-head { margin-bottom:18px; }
.oc-menu-head h2 { font-size:28px; letter-spacing:-.025em; }
.oc-menu-tabs { margin-bottom:20px; background:#242c28; border:1px solid #495047; border-radius:10px; overflow:hidden; }
.oc-menu-tabs button { min-height:54px; font-size:18px; }
.oc-menu-tabs b { font-size:12px; }
.oc-menu-tabs button.active { background:#384237; color:#ffe2a0; }
.oc-menu-content { font-size:14px; }
.oc-guide { padding:14px 16px; margin-bottom:20px; border:0; border-left:3px solid #ac9460; border-radius:0; background:#252d28; gap:14px; }
.oc-guide-mark { display:none; }
.oc-guide small { color:#c7b782; font-size:10px; }
.oc-guide h3 { font-size:16px; margin:3px 0; }
.oc-guide p { font-size:12px; color:#c8cfc3; margin:0; }
.oc-guide button { flex-shrink:0; min-height:44px; }
.oc-experiment { padding:24px; background:#252d28; color:#f3efdf; border:1px solid #515b4e; border-radius:12px; box-shadow:none; }
.oc-experiment-title h3 { color:#f3efdf; font-size:22px; }
.oc-experiment-title small { color:#d7bd80; }
.oc-experiment-title > b { background:#191f1d; color:#d7bd80; border:0; font-size:12px; white-space:nowrap; }
.oc-step { margin:22px 0 10px; font-size:14px; color:#f3efdf; }
.oc-experiment-slots { margin:0 0 16px; }
.oc-experiment-slot { min-height:96px; border:1px dashed #77816d; border-radius:8px; background:#1b221e; color:#f3efdf; box-shadow:none; }
.oc-experiment-slot.active { border:2px solid #d7bd80; background:#343c2e; box-shadow:none; }
.oc-experiment-slot > span { font-size:30px; }
.oc-experiment-slot > small { font-size:12px; color:#c8cfc3; }
.oc-material-palette { background:#1b221e; padding:10px; border:0; border-radius:8px; max-height:250px; grid-template-columns:repeat(auto-fill,minmax(110px,1fr)); }
.oc-material-palette button { background:#303a32; color:#f3efdf; border:1px solid #515b4e; border-radius:6px; min-height:84px; cursor:pointer; }
.oc-material-palette b { font-size:12px; }
.oc-material-palette small { color:#191f1d; background:#d7bd80; }
.oc-experiment-actions { margin:0; gap:8px; }
.oc-experiment-actions button { background:#1b221e; color:#e6e9dd; border:1px solid #626d59; border-radius:6px; font-size:12px; min-height:58px; }
.oc-experiment-actions button.active { background:#d7bd80; color:#191f1d; border-color:#f6df9d; box-shadow:none; }
.oc-run-experiment { background:#d7bd80; color:#191f1d; border:0; border-radius:7px; box-shadow:none; }
.oc-run-experiment:disabled { background:#41493e; color:#c8cfc3; cursor:default; }
.oc-experiment-result { background:#344934; color:#f3efdf; border-color:#81936b; text-align:left; }
.oc-crafting { margin-top:28px; }
.oc-crafting > p { color:#c8cfc3; font-size:13px; }
.oc-craft-grid article { background:#252d28; border-color:#515b4e; border-radius:8px; padding:16px; }
.oc-craft-grid h4 { margin:0; font-size:15px; }
.oc-craft-grid article small { color:#d6ddce; font-size:12px; }
.oc-craft-grid button { background:#d7bd80; color:#191f1d; }
.oc-craft-grid button:disabled { background:#343d34; color:#c8cfc3; opacity:1; }
.oc-bag { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:10px; }
.oc-bag > button { min-height:140px; background:#252d28; border:1px solid #515b4e; border-radius:8px; box-shadow:none; }
.oc-bag > button > b { font-size:14px; color:#f3efdf; }
.oc-bag > button > small { color:#c8cfc3; font-size:11px; }
.oc-bag > button > em { color:#f2d496; }
.oc-item-detail { background:#252d28; color:#f3efdf; border:1px solid #515b4e; border-radius:10px; }
.oc-item-detail small { color:#c8cfc3; }
.oc-build-menu > button,.oc-tool-list article,.oc-discoveries article,.oc-condition-stats p { background:#252d28; border-color:#515b4e; border-radius:8px; }
.oc-build-menu small,.oc-tool-list small,.oc-discoveries small { color:#c8cfc3; font-size:12px; }
.oc-menu-content button:focus-visible,.oc-menu-tabs button:focus-visible { outline:3px solid #ffe2a0; outline-offset:3px; }
.oc-menu-content button:not(:disabled):hover { border-color:#d7bd80; }
@media(max-width:760px) {
 .ourcraft-sheet:not(.is-map) { padding:52px 12px 24px; }
 .oc-menu-head h2 { font-size:24px; }
 .oc-menu-tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:0; top:0; }
 .oc-menu-tabs button { min-width:0; min-height:54px; }
 .oc-menu-tabs b { font-size:10px; white-space:normal; }
 .oc-guide { padding:12px; gap:8px; }
 .oc-guide button { width:auto; padding:8px 12px; }
 .oc-experiment { padding:14px; }
 .oc-experiment-title { flex-wrap:wrap; gap:8px; }
 .oc-experiment-title h3 { font-size:18px; }
 .oc-experiment-title > b { padding:4px 8px; }
 .oc-material-palette { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .oc-experiment-slot > b,.oc-material-palette b { font-size:11px; }
 .oc-experiment-slot > small { font-size:11px; }
 .oc-experiment-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .oc-bag { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media(min-width:761px) {
 .oc-experiment { display:grid; grid-template-columns:1.25fr 1fr; gap:12px 24px; grid-template-areas:"title title" "materials method" "slots actions" "palette actions" "palette run" "result result"; }
 .oc-experiment-title { grid-area:title; }
 .oc-experiment .oc-step:first-of-type { grid-area:materials; }
 .oc-experiment .oc-step:last-of-type { grid-area:method; }
 .oc-experiment .oc-step { margin:8px 0 0; }
 .oc-experiment-slots { grid-area:slots; margin:0; gap:8px; }
 .oc-material-palette { grid-area:palette; grid-template-columns:repeat(4,minmax(0,1fr)); max-height:220px; }
 .oc-material-palette button { min-height:80px; padding:8px 3px; }
 .oc-experiment-actions { grid-area:actions; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .oc-experiment-actions button { grid-template-columns:26px 1fr; min-height:46px; text-align:left; padding:8px; }
 .oc-run-experiment { grid-area:run; margin:0; align-self:end; }
 .oc-experiment-result { grid-area:result; margin:0; }
}

.oc-equipped { margin:0 0 24px; padding:16px; background:#252d28; border:1px solid #515b4e; border-radius:10px; }
.oc-equipped h3 { margin:0 0 12px; font-size:17px; }
.oc-equipped h3 small { display:block; color:#d7bd80; font-size:13px; margin-top:6px; }
.oc-equipped > div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; }
.oc-equipped button { min-height:76px; padding:10px; border:1px solid #626d59; border-radius:6px; color:#f3efdf; background:#1b221e; text-align:left; }
.oc-equipped button small { display:block; margin-bottom:6px; color:#c8cfc3; }
.oc-equipped button b { font-size:12px; }
.oc-equipped p { margin:12px 0 0; color:#c8cfc3; font-size:12px; }
@media(max-width:760px){.oc-equipped > div {grid-template-columns:repeat(2,minmax(0,1fr));}}

.oc-pack-capacity { margin:0 0 20px; padding:14px 16px; background:#252d28; border:1px solid #515b4e; border-radius:8px; }
.oc-pack-capacity>div { display:flex; justify-content:space-between; gap:16px; color:#f3efdf; }
.oc-pack-capacity meter { width:100%; height:13px; margin:8px 0 4px; accent-color:#d7bd80; }
.oc-pack-capacity small { display:block; color:#c8cfc3; }
.oc-chest-list { display:grid; gap:8px; }
.oc-chest-list article { display:grid; grid-template-columns:42px minmax(130px,1fr) auto; align-items:center; gap:12px; padding:10px 12px; background:#252d28; border:1px solid #515b4e; border-radius:8px; }
.oc-chest-list article>span { font-size:28px; }
.oc-chest-list article small { display:block; color:#c8cfc3; }
.oc-chest-list article>div:last-child { display:flex; gap:6px; }
.oc-chest-list button { min-height:38px; padding:7px 10px; border:1px solid #887b57; border-radius:6px; background:#d7bd80; color:#191f1d; cursor:pointer; }
@media(max-width:760px){.oc-chest-list article{grid-template-columns:34px 1fr}.oc-chest-list article>div:last-child{grid-column:1/-1}.oc-chest-list button{flex:1}}

.oc-sound-toggle { position:absolute; z-index:9; top:14px; right:154px; width:40px; height:40px; border:1px solid #a89b70; border-radius:8px; background:#25352b; color:#f3e4bb; font-size:20px; }
